test/dummy/log/test.log in extface-0.1.0 vs test/dummy/log/test.log in extface-0.1.1
- old
+ new
@@ -1,2039 +1,450 @@
- [1m[36m (0.3ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------
-ExtfaceTest: test_truth
------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.3ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
-Extface::JobsControllerTest: test_should_create_job
----------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
-Extface::JobsControllerTest: test_should_destroy_job
-----------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
-Extface::JobsControllerTest: test_should_get_edit
--------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
-Extface::JobsControllerTest: test_should_get_index
---------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------
-Extface::JobsControllerTest: test_should_get_new
-------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------
-Extface::JobsControllerTest: test_should_show_job
--------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
-Extface::JobsControllerTest: test_should_update_job
----------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------
-ExtfaceTest: test_truth
------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.3ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.3ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.3ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.3ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.3ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[35m (0.0ms)[0m rollback transaction
- [1m[36m (96.8ms)[0m [1mCREATE 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) [0m
- [1m[35m (74.2ms)[0m CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")
- [1m[36m (82.1ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.2ms)[0m 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)
- [1m[36m (74.0ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
- [1m[35m (81.2ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (75.0ms)[0m [1mCREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.2ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (97.6ms)[0m [1mCREATE 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) [0m
- [1m[35m (79.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
- [1m[36m (82.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
- [1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (73.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140219175006')[0m
- [1m[35m (82.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140216110608')
- [1m[36m (82.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216131245')[0m
- [1m[35m (82.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140216134748')
- [1m[36m (74.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216131457')[0m
- [1m[35m (82.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140216110018')
- [1m[36m (74.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140215192111')[0m
- [1m[35m (74.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140219091811')
- [1m[36m (0.2ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (111.8ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.6ms)[0m 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)
- [1m[36m (82.6ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (81.7ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.6ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.8ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (74.0ms)[0m [1mCREATE 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) [0m
- [1m[35m (74.2ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.4ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (75.6ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.3ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (73.9ms)[0m 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)
+ [1m[36m (92.1ms)[0m [1mCREATE 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) [0m
+ [1m[35m (73.8ms)[0m CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")
+ [1m[36m (73.4ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (73.5ms)[0m 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)
+ [1m[36m (73.9ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (90.1ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (98.2ms)[0m [1mCREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (81.5ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (81.5ms)[0m [1mCREATE 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) [0m
+ [1m[35m (81.4ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (81.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [1m[35m (90.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)[0m
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
- [1m[35m (0.1ms)[0m rollback transaction
+ [1m[35m (82.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140221203517')
+ [1m[36m (82.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216110608')[0m
+ [1m[35m (82.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140216131245')
+ [1m[36m (82.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216134748')[0m
+ [1m[35m (82.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140216131457')
+ [1m[36m (91.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216110018')[0m
+ [1m[35m (99.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140215192111')
+ [1m[36m (82.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140219175006')[0m
+ [1m[35m (82.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140219091811')
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)[0m
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
- [1m[35m (0.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)[0m
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 298486374)
- [1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 298486374)[0m
- [1m[35mFixture Delete (0.0ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)[0m
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (126.6ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.4ms)[0m 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)
- [1m[36m (73.9ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.6ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (90.7ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (89.7ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (74.2ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.5ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (81.7ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.4ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (99.1ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (83.7ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (74.3ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.6ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (74.2ms)[0m 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)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)[0m
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)[0m
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 298486374)[0m
- [1m[35mFixture Delete (0.0ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)[0m
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 298486374)
- [1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:39', '2014-02-21 20:29:39', 298486374)[0m
- [1m[35mFixture Delete (0.0ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)[0m
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:29:39', '2014-02-21 20:29:39', 980190962)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (145.2ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.6ms)[0m 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)
- [1m[36m (106.6ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (90.1ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (92.2ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (90.3ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (73.9ms)[0m [1mCREATE 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) [0m
- [1m[35m (74.0ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.3ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (90.1ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (107.2ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (74.0ms)[0m 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)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
- [1m[36m (0.2ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:03', '2014-02-21 20:30:03', 980190962)
- [1m[36m (0.2ms)[0m [1mrollback transaction[0m
- [1m[36m (191.2ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (90.6ms)[0m 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)
- [1m[36m (90.3ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.7ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (99.2ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.6ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.1ms)[0m [1mCREATE 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) [0m
- [1m[35m (73.9ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (75.3ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (98.9ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.7ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (107.2ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.3ms)[0m 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)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
- [1m[36m (0.2ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
-SQLite3::SQLException: table extface_pos_print_drivers has no column named fiscal: INSERT INTO "extface_pos_print_drivers" ("type", "fiscal", "autocutter", "created_at", "updated_at", "id") VALUES (NULL, 'f', 'f', '2014-02-21 20:30:33', '2014-02-21 20:30:33', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (104.9ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (98.9ms)[0m 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)
- [1m[36m (92.0ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (82.1ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.5ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (82.1ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (74.1ms)[0m [1mCREATE 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) [0m
- [1m[35m (74.1ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (98.0ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (99.1ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (75.1ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.6ms)[0m 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)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
-SQLite3::SQLException: table extface_devices has no column named interfaceable_id: INSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pbx_cdr_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
-SQLite3::SQLException: table extface_devices has no column named interfaceable_id: INSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
-SQLite3::SQLException: table extface_devices has no column named interfaceable_id: INSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[35m (0.2ms)[0m rollback transaction
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_raw_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_fiscal_print_drivers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:22:20', '2014-03-03 09:22:20', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:22:20', '2014-03-03 09:22:20', 298486374)[0m
+ [1m[35m (100.2ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pbx_cdr_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
-SQLite3::SQLException: table extface_devices has no column named interfaceable_id: INSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
-SQLite3::SQLException: table extface_devices has no column named interfaceable_id: INSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pos_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pbx_cdr_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
-SQLite3::SQLException: table extface_devices has no column named interfaceable_id: INSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:33:58', '2014-02-21 20:33:58', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)[0m
-SQLite3::SQLException: table extface_devices has no column named interfaceable_id: INSERT INTO "extface_devices" ("uuid", "name", "interfaceable_id", "driveable_id", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', NULL, NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (103.0ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.2ms)[0m 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)
- [1m[36m (82.1ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.5ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.5ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.8ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (75.4ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.5ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (90.2ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (98.7ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.3ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.3ms)[0m 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)
- [1m[36m (73.5ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
- [1m[36m (80.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140221203517')[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:37:27', '2014-02-21 20:37:27', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:37:27', '2014-02-21 20:37:27', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "driveable_id", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id") VALUES ('MyString', 'MyString', NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962, 'Shop', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "driveable_id", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id") VALUES ('MyString', 'MyString', NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 298486374, 'Shop', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:37:27', '2014-02-21 20:37:27', 298486374)
- [1m[36m (91.9ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#destroy as HTML
- Parameters: {"id"=>"980190962"}
+ Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
Completed 500 Internal Server Error in 0ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#edit as HTML
- Parameters: {"id"=>"980190962"}
+ Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
Completed 500 Internal Server Error in 0ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
+ Parameters: {"shop_id"=>"980190962"}
Completed 500 Internal Server Error in 0ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#new as HTML
+ Parameters: {"shop_id"=>"980190962"}
Completed 500 Internal Server Error in 0ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
- Parameters: {"id"=>"980190962"}
+ Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
Completed 500 Internal Server Error in 0ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (117.9ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.0ms)[0m 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)
- [1m[36m (83.6ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (81.4ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (99.1ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.7ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.2ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.6ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (74.2ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (74.5ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.7ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (83.1ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.5ms)[0m 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)
- [1m[36m (81.7ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:39:16', '2014-02-21 20:39:16', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:39:16', '2014-02-21 20:39:16', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:39:16', '2014-02-21 20:39:16', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:39:16', '2014-02-21 20:39:16', 298486374)
- [1m[36m (83.9ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
-Processing by Extface::DevicesController#destroy as HTML
- Parameters: {"id"=>"980190962"}
-Completed 500 Internal Server Error in 0ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::DevicesController#edit as HTML
- Parameters: {"id"=>"980190962"}
-Completed 500 Internal Server Error in 0ms
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
-Processing by Extface::DevicesController#index as HTML
-Completed 500 Internal Server Error in 0ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::DevicesController#new as HTML
-Completed 500 Internal Server Error in 0ms
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
-Processing by Extface::DevicesController#show as HTML
- Parameters: {"id"=>"980190962"}
-Completed 500 Internal Server Error in 0ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (513.3ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (130.0ms)[0m 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)
- [1m[36m (73.4ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (90.2ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (74.4ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.8ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.4ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.0ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (98.4ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (98.8ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (89.6ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (83.9ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (74.0ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (98.7ms)[0m 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)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962)
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 298486374)[0m
- [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:40:38', '2014-02-21 20:40:38', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:40:38', '2014-02-21 20:40:38', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:40:38', '2014-02-21 20:40:38', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:40:38', '2014-02-21 20:40:38', 298486374)
- [1m[36m (89.0ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
-Processing by Extface::DevicesController#create as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}}
-Completed 500 Internal Server Error in 0ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
-Processing by Extface::DevicesController#destroy as HTML
- Parameters: {"id"=>"980190962"}
-Completed 500 Internal Server Error in 0ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::DevicesController#edit as HTML
- Parameters: {"id"=>"980190962"}
-Completed 500 Internal Server Error in 0ms
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
-Processing by Extface::DevicesController#index as HTML
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["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
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::DevicesController#new as HTML
-Completed 500 Internal Server Error in 0ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
-Processing by Extface::DevicesController#show as HTML
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m 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
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
-Completed 500 Internal Server Error in 0ms
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (120.5ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (91.0ms)[0m 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)
- [1m[36m (98.8ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.6ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (74.4ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.5ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (91.7ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.6ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.7ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (98.9ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (90.0ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (98.9ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (89.8ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.3ms)[0m 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)
- [1m[36m (89.9ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (90.9ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:42:36', '2014-02-21 20:42:36', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:42:36', '2014-02-21 20:42:36', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:42:36', '2014-02-21 20:42:36', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:42:36', '2014-02-21 20:42:36', 298486374)
- [1m[36m (87.1ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+
+NoMethodError (undefined method `call_on_error' for #<ActionDispatch::Response::Buffer:0x00000004b6ce80>):
+ /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'
+
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m 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'
+
+
+ [1m[36m (104.6ms)[0m [1mCREATE 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) [0m
+ [1m[35m (81.5ms)[0m CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")
+ [1m[36m (82.0ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (81.9ms)[0m 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)
+ [1m[36m (92.1ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (89.8ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (89.9ms)[0m [1mCREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (81.3ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (81.5ms)[0m [1mCREATE 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) [0m
+ [1m[35m (81.8ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (80.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [1m[35m (90.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (90.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140221203517')
+ [1m[36m (82.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216110608')[0m
+ [1m[35m (82.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140216131245')
+ [1m[36m (74.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216134748')[0m
+ [1m[35m (74.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140216131457')
+ [1m[36m (92.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216110018')[0m
+ [1m[35m (82.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140215192111')
+ [1m[36m (82.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140219175006')[0m
+ [1m[35m (82.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140219091811')
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m rollback transaction
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_pos_print_drivers"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pbx_cdr_drivers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_raw_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_fiscal_print_drivers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:26:20', '2014-03-03 09:26:20', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:26:20', '2014-03-03 09:26:20', 298486374)[0m
+ [1m[35m (85.9ms)[0m commit transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (110.3ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (107.0ms)[0m 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)
- [1m[36m (82.0ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.6ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (74.1ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (90.5ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.4ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.3ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (81.7ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (83.9ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (411.3ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (74.3ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (73.9ms)[0m 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)
- [1m[36m (90.1ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:43:06', '2014-02-21 20:43:06', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:43:06', '2014-02-21 20:43:06', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:43:06', '2014-02-21 20:43:06', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:43:06', '2014-02-21 20:43:06', 298486374)
- [1m[36m (91.1ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
Processing by Extface::DevicesController#create as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}}
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}}
Completed 500 Internal Server Error in 0ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#destroy as HTML
- Parameters: {"id"=>"980190962"}
+ Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
Completed 500 Internal Server Error in 0ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#edit as HTML
- Parameters: {"id"=>"980190962"}
+ Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
Completed 500 Internal Server Error in 0ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
+ Parameters: {"shop_id"=>"980190962"}
Completed 500 Internal Server Error in 0ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#new as HTML
+ Parameters: {"shop_id"=>"980190962"}
Completed 500 Internal Server Error in 0ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
- Parameters: {"id"=>"980190962"}
+ Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
Completed 500 Internal Server Error in 0ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
-Completed 500 Internal Server Error in 0ms
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (99.5ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.3ms)[0m 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)
- [1m[36m (90.1ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (82.4ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (74.1ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.5ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.4ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.3ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.4ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.4ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (90.9ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (92.3ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.4ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.1ms)[0m 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)
- [1m[36m (90.1ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:43:19', '2014-02-21 20:43:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:43:19', '2014-02-21 20:43:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:43:19', '2014-02-21 20:43:19', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:43:19', '2014-02-21 20:43:19', 298486374)
- [1m[36m (90.4ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (169.0ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.5ms)[0m 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)
- [1m[36m (82.4ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.9ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (74.4ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (83.1ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (74.1ms)[0m [1mCREATE 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) [0m
- [1m[35m (98.4ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.6ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (98.4ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.6ms)[0m 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)
- [1m[36m (73.2ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (100.4ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962)
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962)[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:43:27', '2014-02-21 20:43:27', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:43:27', '2014-02-21 20:43:27', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:43:27', '2014-02-21 20:43:27', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:43:27', '2014-02-21 20:43:27', 298486374)
- [1m[36m (100.4ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (105.5ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (90.5ms)[0m 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)
- [1m[36m (82.0ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (81.9ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.6ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.4ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.5ms)[0m [1mCREATE 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) [0m
- [1m[35m (73.9ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (74.3ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (98.2ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (98.8ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (92.0ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.3ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.4ms)[0m 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)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (74.1ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:45:41', '2014-02-21 20:45:41', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:45:41', '2014-02-21 20:45:41', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:45:41', '2014-02-21 20:45:41', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:45:41', '2014-02-21 20:45:41', 298486374)
- [1m[36m (72.6ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (104.9ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (90.4ms)[0m 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)
- [1m[36m (98.6ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.8ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.4ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (83.3ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.4ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.3ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (74.3ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.9ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (98.4ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (82.1ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.5ms)[0m 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)
- [1m[36m (81.7ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 298486374)[0m
- [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:46:01', '2014-02-21 20:46:01', 980190962)
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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-02-21 20:46:01', '2014-02-21 20:46:01', 298486374)[0m
- [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:46:01', '2014-02-21 20:46:01', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:46:01', '2014-02-21 20:46:01', 298486374)
- [1m[36m (72.2ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+Processing by Extface::DevicesController#update as HTML
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+Completed 500 Internal Server Error in 0ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m 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
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (130.3ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.5ms)[0m 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)
- [1m[36m (98.8ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (90.3ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.5ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.8ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (75.5ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.6ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (81.9ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (90.9ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.4ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (90.1ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (123.9ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (98.9ms)[0m 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)
- [1m[36m (90.3ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (100.2ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.2ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962)
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:46:34', '2014-02-21 20:46:34', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:46:34', '2014-02-21 20:46:34', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:46:34', '2014-02-21 20:46:34', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:46:34', '2014-02-21 20:46:34', 298486374)
- [1m[36m (95.2ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (104.7ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.5ms)[0m 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)
- [1m[36m (98.8ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (90.1ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (98.9ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.9ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.7ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.3ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (90.3ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (74.1ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (74.2ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
+
+NoMethodError (undefined method `call_on_error' for #<ActionDispatch::Response::Buffer:0x00000004950e80>):
+ /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'
+
+
+ [1m[36m (124.5ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (91.0ms)[0m 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)
+ [1m[36m (73.5ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
+ [1m[35m (106.4ms)[0m DROP TABLE "extface_fiscal_print_drivers"
+ [1m[36m (90.6ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (106.1ms)[0m DROP TABLE "extface_jobs"
+ [1m[36m (92.0ms)[0m [1mCREATE 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) [0m
+ [1m[35m (82.0ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
+ [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
+ [1m[35m (82.5ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (89.8ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
[1m[35m (82.7ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.3ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (89.9ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (98.9ms)[0m 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)
- [1m[36m (89.6ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (74.5ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
+ [1m[35m (82.4ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (123.8ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
+ [1m[35m (106.7ms)[0m 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)
+ [1m[36m (106.9ms)[0m [1mDROP TABLE "shops"[0m
+ [1m[35m (98.9ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
[1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 298486374)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:46:44', '2014-02-21 20:46:44', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:46:44', '2014-02-21 20:46:44', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:46:44', '2014-02-21 20:46:44', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 298486374)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:46:44', '2014-02-21 20:46:44', 298486374)
- [1m[36m (94.9ms)[0m [1mcommit transaction[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.0ms)[0m DELETE FROM "shops"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:26:37', '2014-03-03 09:26:37', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:26:37', '2014-03-03 09:26:37', 298486374)
+ [1m[36m (80.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (110.5ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (91.1ms)[0m 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)
- [1m[36m (90.2ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.7ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.4ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (74.5ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.8ms)[0m [1mCREATE 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) [0m
- [1m[35m (73.9ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.9ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (90.9ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (82.3ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.3ms)[0m 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)
- [1m[36m (98.1ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (75.6ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:50:14', '2014-02-21 20:50:14', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:50:14', '2014-02-21 20:50:14', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:50:14', '2014-02-21 20:50:14', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:50:14', '2014-02-21 20:50:14', 298486374)
- [1m[36m (88.3ms)[0m [1mcommit transaction[0m
- [1m[35m (0.2ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
[1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
+ [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#create as HTML
- Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}}
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
- [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (1.0ms)
- Rendered /home/alex/workspace/extface/app/views/extface/devices/form.html.erb within layouts/extface/application (21.2ms)
-Completed 200 OK in 101ms (Views: 59.4ms | ActiveRecord: 0.5ms)
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (13.0ms)[0m 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]]
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190963
+Completed 302 Found in 37ms (ActiveRecord: 13.8ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
-Processing by Extface::DevicesController#destroy as HTML
- Parameters: {"id"=>"980190962"}
- [1m[36mShop Load (0.5ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1[0m
-Completed 500 Internal Server Error in 2ms
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::DevicesController#edit as HTML
- Parameters: {"id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m 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"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 9ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Processing by Extface::DevicesController#new as HTML
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1[0m
-Completed 500 Internal Server Error in 1ms
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::DevicesController#show as HTML
- Parameters: {"id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1[0m
-Completed 500 Internal Server Error in 1ms
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (116.3ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.4ms)[0m 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)
- [1m[36m (82.0ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (90.2ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (91.0ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.3ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.6ms)[0m [1mCREATE 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) [0m
- [1m[35m (83.8ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.4ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.3ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.3ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.4ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.4ms)[0m 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)
- [1m[36m (90.1ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (90.5ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962)
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:51:22', '2014-02-21 20:51:22', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:51:22', '2014-02-21 20:51:22', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:51:22', '2014-02-21 20:51:22', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:51:22', '2014-02-21 20:51:22', 298486374)
- [1m[36m (91.2ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::DevicesController#create as HTML
- Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}}
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.2ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
- [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (1.0ms)
- Rendered /home/alex/workspace/extface/app/views/extface/devices/form.html.erb within layouts/extface/application (19.6ms)
-Completed 200 OK in 79ms (Views: 33.5ms | ActiveRecord: 0.6ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (20.0ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 24ms (ActiveRecord: 20.5ms)
+Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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.1ms)
-Completed 500 Internal Server Error in 7ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms)
+ [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["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)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 34ms
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::RawDriver Load (0.1ms)[0m SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::PosPrintDriver Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.1ms)
+Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
@@ -2042,218 +453,132 @@
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 6ms
+ [1m[36mExtface::PosPrintDriver Load (0.0ms)[0m [1mSELECT "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[0m [["id", 980190962]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35mExtface::Job Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (106.4ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (90.6ms)[0m 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)
- [1m[36m (74.1ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (81.8ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (90.8ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.1ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.8ms)[0m [1mCREATE 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) [0m
- [1m[35m (81.9ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (83.6ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (73.9ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.9ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.4ms)[0m 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)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.4ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.2ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:52:31', '2014-02-21 20:52:31', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:52:31', '2014-02-21 20:52:31', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:52:31', '2014-02-21 20:52:31', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:52:31', '2014-02-21 20:52:31', 298486374)
- [1m[36m (80.8ms)[0m [1mcommit transaction[0m
- [1m[35m (0.2ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_create_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::DevicesController#create as HTML
- Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}}
-Completed 500 Internal Server Error in 0ms
- [1m[35m (0.3ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_destroy_device
-----------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35mShop Load (0.0ms)[0m 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
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_edit
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m 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
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
------------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_index
------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m 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
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
-Extface::DevicesControllerTest: test_should_get_new
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m 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
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------------
-Extface::DevicesControllerTest: test_should_show_device
--------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m 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
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
-Extface::DevicesControllerTest: test_should_update_device
----------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
-Completed 500 Internal Server Error in 0ms
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (118.4ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (90.8ms)[0m 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)
- [1m[36m (106.7ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (82.0ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.6ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.5ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.7ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.4ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (90.2ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (75.2ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.2ms)[0m 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)
- [1m[36m (81.9ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.1ms)[0m rollback transaction
+Completed in 7ms
+ [1m[36m (112.7ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (91.1ms)[0m 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)
+ [1m[36m (90.2ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
+ [1m[35m (90.4ms)[0m DROP TABLE "extface_fiscal_print_drivers"
+ [1m[36m (82.8ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (90.1ms)[0m DROP TABLE "extface_jobs"
+ [1m[36m (98.9ms)[0m [1mCREATE 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) [0m
+ [1m[35m (90.3ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
+ [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
+ [1m[35m (90.9ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (91.4ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
+ [1m[35m (82.5ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (89.9ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
+ [1m[35m (90.6ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
+ [1m[36m (90.2ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
+ [1m[35m (82.3ms)[0m 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)
+ [1m[36m (90.3ms)[0m [1mDROP TABLE "shops"[0m
+ [1m[35m (99.1ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 298486374)[0m
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
+ [1m[35mFixture Insert (0.2ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 298486374)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:52:46', '2014-02-21 20:52:46', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:52:46', '2014-02-21 20:52:46', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:52:46', '2014-02-21 20:52:46', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 298486374)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:52:46', '2014-02-21 20:52:46', 298486374)
- [1m[36m (84.6ms)[0m [1mcommit transaction[0m
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:31:17', '2014-03-03 09:31:17', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 09:31:17', '2014-03-03 09:31:17', 298486374)
+ [1m[36m (83.2ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#create as HTML
- Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}}
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
- [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (1.0ms)
- Rendered /home/alex/workspace/extface/app/views/extface/devices/form.html.erb within layouts/extface/application (20.7ms)
-Completed 200 OK in 77ms (Views: 34.8ms | ActiveRecord: 0.5ms)
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (0.8ms)[0m 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]]
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190963
+Completed 302 Found in 24ms (ActiveRecord: 1.4ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (20.0ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 24ms (ActiveRecord: 20.4ms)
+Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
@@ -2262,458 +587,1377 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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.1ms)
-Completed 500 Internal Server Error in 8ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms)
+ [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["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)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 35ms
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::RawDriver Load (0.1ms)[0m SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::PosPrintDriver Load (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
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.1ms)
+Completed 200 OK in 35ms (Views: 33.4ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 5ms
+ [1m[36mExtface::PosPrintDriver Load (0.1ms)[0m [1mSELECT "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[0m [["id", 980190962]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35mExtface::Job Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (301.6ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (99.0ms)[0m 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)
- [1m[36m (73.8ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (287.5ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (74.3ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (98.6ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.5ms)[0m [1mCREATE 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) [0m
- [1m[35m (83.7ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (74.0ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (74.2ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.9ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (74.0ms)[0m 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)
- [1m[36m (90.5ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.4ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.2ms)[0m begin transaction
- [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 298486374)[0m
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.1ms)[0m rollback transaction
+Completed in 7ms
+ [1m[36m (125.1ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (98.8ms)[0m 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)
+ [1m[36m (148.4ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
+ [1m[35m (74.1ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (74.1ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (84.0ms)[0m 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)
+ [1m[36m (107.3ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (82.4ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.6ms)[0m [1mCREATE 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) [0m
+ [1m[35m (99.0ms)[0m DROP TABLE "shops"
+ [1m[36m (82.7ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (81.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140303113217')[0m
+ [1m[35m (74.6ms)[0m 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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+ [1m[36m (393.1ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (82.3ms)[0m 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)
+ [1m[36m (82.1ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
+ [1m[35m (106.7ms)[0m DROP TABLE "extface_drivers"
+ [1m[36m (90.7ms)[0m [1mCREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (82.1ms)[0m DROP TABLE "extface_jobs"
+ [1m[36m (82.6ms)[0m [1mCREATE 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) [0m
+ [1m[35m (82.2ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
+ [1m[36m (81.7ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
+ [1m[35m (98.8ms)[0m 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)
+ [1m[36m (81.7ms)[0m [1mDROP TABLE "shops"[0m
+ [1m[35m (100.4ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type") VALUES ('Extface::Driver::StarScp700')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type") VALUES ('Extface::Driver::StarTsp700')[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 298486374)
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:55:02', '2014-02-21 20:55:02', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:55:02', '2014-02-21 20:55:02', 298486374)[0m
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type") VALUES (NULL)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type") VALUES (NULL)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:55:02', '2014-02-21 20:55:02', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type") VALUES ('Extface::Driver::RawSerial')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type") VALUES ('Extface::Driver::RawSerial')[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962)[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 298486374)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type") VALUES (NULL)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type") VALUES (NULL)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:55:02', '2014-02-21 20:55:02', 298486374)
- [1m[36m (78.1ms)[0m [1mcommit transaction[0m
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:09:06', '2014-03-03 12:09:06', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:09:06', '2014-03-03 12:09:06', 298486374)
+ [1m[36m (86.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#create as HTML
- Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}}
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.2ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (1.3ms)
- Rendered /home/alex/workspace/extface/app/views/extface/devices/form.html.erb within layouts/extface/application (23.5ms)
-Completed 200 OK in 77ms (Views: 36.4ms | ActiveRecord: 0.5ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.2ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Completed 500 Internal Server Error in 15ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#destroy as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (20.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "extface_devices" WHERE "extface_devices"."id" = ?[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 25ms (ActiveRecord: 20.8ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.2ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#edit as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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.1ms)
-Completed 500 Internal Server Error in 9ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["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
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 35ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+Completed 500 Internal Server Error in 8ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#new as HTML
Parameters: {"shop_id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mShop Load (0.1ms)[0m 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 10ms (Views: 8.4ms | ActiveRecord: 0.1ms)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Completed 500 Internal Server Error in 11ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Completed 500 Internal Server Error in 8ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 12:09:06 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 7ms (ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (179.9ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (73.8ms)[0m 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)
- [1m[36m (73.7ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (81.7ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (74.3ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.8ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.5ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.3ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (83.0ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.4ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.4ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (82.3ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (82.3ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.5ms)[0m 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)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.4ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
+ [1m[35m (0.1ms)[0m begin transaction
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Completed in 9ms
+ [1m[36m (186.8ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (82.3ms)[0m 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)
+ [1m[36m (90.3ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
+ [1m[35m (81.9ms)[0m DROP TABLE "extface_drivers"
+ [1m[36m (90.6ms)[0m [1mCREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (82.4ms)[0m DROP TABLE "extface_jobs"
+ [1m[36m (82.5ms)[0m [1mCREATE 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) [0m
+ [1m[35m (83.5ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
+ [1m[36m (81.6ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
+ [1m[35m (82.2ms)[0m 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)
+ [1m[36m (98.1ms)[0m [1mDROP TABLE "shops"[0m
+ [1m[35m (82.8ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
+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 `<class:TestCase>'
+/home/alex/workspace/extface/test/test_helper.rb:16:in `<top (required)>'
+/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 `<top (required)>'
+/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 <main>'
+/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 <main>'
+/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 `<main>'
[1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 298486374)[0m
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type") VALUES ('Extface::Driver::StarScp700')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type") VALUES ('Extface::Driver::StarTsp700')[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 298486374)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type") VALUES (NULL)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type") VALUES (NULL)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:55:27', '2014-02-21 20:55:27', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:55:27', '2014-02-21 20:55:27', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:55:27', '2014-02-21 20:55:27', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type") VALUES ('Extface::Driver::RawSerial')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type") VALUES ('Extface::Driver::RawSerial')[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 298486374)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type") VALUES (NULL)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type") VALUES (NULL)
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:55:27', '2014-02-21 20:55:27', 298486374)
- [1m[36m (78.0ms)[0m [1mcommit transaction[0m
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:10:04', '2014-03-03 12:10:04', 980190962)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:10:04', '2014-03-03 12:10:04', 298486374)
+ [1m[36m (83.1ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#create as HTML
- Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}}
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}}
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.2ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (1.0ms)
- Rendered /home/alex/workspace/extface/app/views/extface/devices/form.html.erb within layouts/extface/application (21.7ms)
-Completed 200 OK in 78ms (Views: 35.8ms | ActiveRecord: 0.7ms)
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Completed 500 Internal Server Error in 14ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#destroy as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mDELETE FROM "extface_devices" WHERE "extface_devices"."id" = ?[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 28ms (ActiveRecord: 0.9ms)
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+Completed 302 Found in 4ms (ActiveRecord: 0.8ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#edit as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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.1ms)
-Completed 500 Internal Server Error in 7ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["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
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 34ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+Completed 500 Internal Server Error in 7ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#new as HTML
Parameters: {"shop_id"=>"980190962"}
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mShop Load (0.2ms)[0m 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 11ms (Views: 8.7ms | ActiveRecord: 0.2ms)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+Completed 500 Internal Server Error in 11ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 5ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+Completed 500 Internal Server Error in 7ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 12:10:04 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 7ms (ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (102.3ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.1ms)[0m 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)
- [1m[36m (90.5ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.6ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.6ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.7ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.4ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.2ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.3ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.6ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (75.6ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.4ms)[0m 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)
- [1m[36m (164.0ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (98.9ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
+ [1m[35m (0.1ms)[0m begin transaction
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Completed in 8ms
+ [1m[36m (114.7ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (90.8ms)[0m 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)
+ [1m[36m (81.9ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (82.8ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (91.7ms)[0m 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)
+ [1m[36m (123.9ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (82.5ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.6ms)[0m [1mCREATE 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) [0m
+ [1m[35m (90.3ms)[0m DROP TABLE "shops"
+ [1m[36m (91.0ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (96.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140303123022')[0m
+ [1m[35m (83.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140303122506')
+ [1m[36m (114.1ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (82.5ms)[0m 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)
+ [1m[36m (90.2ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (82.4ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (98.9ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (82.4ms)[0m 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)
+ [1m[36m (73.9ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (73.7ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (90.6ms)[0m [1mCREATE 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) [0m
+ [1m[35m (81.7ms)[0m DROP TABLE "shops"
+ [1m[36m (90.8ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (108.2ms)[0m [1mCREATE 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) [0m
+ [1m[35m (73.7ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (73.3ms)[0m [1mCREATE 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) [0m
+ [1m[35m (74.4ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
+ [1m[36m (81.9ms)[0m [1mCREATE 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) [0m
+ [1m[35m (73.6ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (72.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [1m[35m (73.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (82.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140303123022')
+ [1m[36m (76.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216110608')[0m
+ [1m[35m (82.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140216131245')
+ [1m[36m (74.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216134748')[0m
+ [1m[35m (82.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140303112124')
+ [1m[36m (74.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216131457')[0m
+ [1m[35m (82.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140216110018')
+ [1m[36m (82.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140215192111')[0m
+ [1m[35m (74.6ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140219175006')
+ [1m[36m (74.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140303113217')[0m
+ [1m[35m (91.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140219091811')
+ [1m[36m (82.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140303122506')[0m
[1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 298486374)
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 20:56:04', '2014-02-21 20:56:04', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 20:56:04', '2014-02-21 20:56:04', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
[1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:56:04', '2014-02-21 20:56:04', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:56:04', '2014-02-21 20:56:04', 298486374)
- [1m[36m (91.8ms)[0m [1mcommit transaction[0m
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.0ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[36m (109.2ms)[0m [1mCREATE 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) [0m
+ [1m[35m (73.8ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (81.7ms)[0m [1mCREATE 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) [0m
+ [1m[35m (74.2ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
+ [1m[36m (89.8ms)[0m [1mCREATE 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) [0m
+ [1m[35m (81.9ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (80.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
+ [1m[35m (82.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35m (83.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140303123022')
+ [1m[36m (91.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216110608')[0m
+ [1m[35m (99.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140216131245')
+ [1m[36m (74.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216134748')[0m
+ [1m[35m (90.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140303112124')
+ [1m[36m (82.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140216131457')[0m
+ [1m[35m (82.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140216110018')
+ [1m[36m (82.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140215192111')[0m
+ [1m[35m (82.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140219175006')
+ [1m[36m (82.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140303113217')[0m
+ [1m[35m (82.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140219091811')
+ [1m[36m (82.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140303122506')[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.2ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.0ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.0ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[36m (113.1ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (82.4ms)[0m 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)
+ [1m[36m (82.2ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.2ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (74.1ms)[0m 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)
+ [1m[36m (75.4ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (89.9ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.3ms)[0m [1mCREATE 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) [0m
+ [1m[35m (90.1ms)[0m DROP TABLE "shops"
+ [1m[36m (107.4ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:54:06', '2014-03-03 12:54:06', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:54:06', '2014-03-03 12:54:06', 298486374)[0m
+ [1m[35m (81.1ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::DevicesController#create as HTML
- Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.2ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
- [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (1.1ms)
- Rendered /home/alex/workspace/extface/app/views/extface/devices/form.html.erb within layouts/extface/application (20.0ms)
-Completed 200 OK in 81ms (Views: 32.9ms | ActiveRecord: 0.6ms)
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.2ms)[0m rollback transaction
+ [1m[35mShop Load (0.2ms)[0m 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"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.2ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+Completed 500 Internal Server Error in 16ms
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 31ms (ActiveRecord: 0.6ms)
+Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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.1ms)
-Completed 500 Internal Server Error in 8ms
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.8ms)
+Completed 500 Internal Server Error in 70ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 41ms
+Completed 500 Internal Server Error in 7ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
@@ -2721,299 +1965,317 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
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.1ms)
+Completed 500 Internal Server Error in 5ms
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 6ms
+Completed 500 Internal Server Error in 7ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (100.5ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.0ms)[0m 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)
- [1m[36m (148.1ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (90.2ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (90.8ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (75.2ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.5ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.3ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.2ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (74.4ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.9ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.7ms)[0m 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)
- [1m[36m (98.7ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:00:14', '2014-02-21 21:00:14', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:00:14', '2014-02-21 21:00:14', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:00:14', '2014-02-21 21:00:14', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:00:14', '2014-02-21 21:00:14', 298486374)
- [1m[36m (83.2ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (0.8ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 7ms (ActiveRecord: 1.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.1ms)[0m rollback transaction
+Completed in 28ms
+ [1m[36m (102.8ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (82.6ms)[0m 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)
+ [1m[36m (73.2ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (82.9ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (74.0ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (74.0ms)[0m 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)
+ [1m[36m (73.8ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.8ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (98.9ms)[0m [1mCREATE 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) [0m
+ [1m[35m (106.6ms)[0m DROP TABLE "shops"
+ [1m[36m (82.8ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:55:37', '2014-03-03 12:55:37', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:55:37', '2014-03-03 12:55:37', 298486374)[0m
+ [1m[35m (95.1ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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", "name"=>"MyString", "uuid"=>"MyString"}}
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
- [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (1.4ms)
- Rendered /home/alex/workspace/extface/app/views/extface/devices/form.html.erb within layouts/extface/application (21.7ms)
-Completed 200 OK in 79ms (Views: 35.1ms | ActiveRecord: 0.6ms)
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_type"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_type
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190963
+Completed 302 Found in 18ms (ActiveRecord: 1.4ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 5ms (ActiveRecord: 0.7ms)
+Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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.1ms)
-Completed 500 Internal Server Error in 35ms
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.4ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 37ms
+Completed 500 Internal Server Error in 8ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.1ms)[0m 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"}
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.2ms)
+Completed 500 Internal Server Error in 6ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 6ms
+Completed 500 Internal Server Error in 7ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (120.6ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.2ms)[0m 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)
- [1m[36m (90.5ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (81.9ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (90.7ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.8ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.4ms)[0m [1mCREATE 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) [0m
- [1m[35m (98.8ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (91.6ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (90.6ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (90.9ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.5ms)[0m 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)
- [1m[36m (82.6ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:00:48', '2014-02-21 21:00:48', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:00:48', '2014-02-21 21:00:48', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:00:48', '2014-02-21 21:00:48', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 298486374)[0m
- [1m[35mFixture Delete (0.0ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:00:48', '2014-02-21 21:00:48', 298486374)
- [1m[36m (93.6ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.1ms)[0m rollback transaction
+Completed in 8ms
+ [1m[36m (104.4ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (84.7ms)[0m 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)
+ [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.5ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (81.9ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (252.2ms)[0m 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)
+ [1m[36m (85.1ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (90.0ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (90.7ms)[0m [1mCREATE 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) [0m
+ [1m[35m (65.5ms)[0m DROP TABLE "shops"
+ [1m[36m (90.7ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:57:15', '2014-03-03 12:57:15', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:57:15', '2014-03-03 12:57:15', 298486374)[0m
+ [1m[35m (78.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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", "name"=>"MyString", "uuid"=>"MyString"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.2ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
- [1m[36mExtface::Device Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
- [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (1.0ms)
- Rendered /home/alex/workspace/extface/app/views/extface/devices/form.html.erb within layouts/extface/application (23.5ms)
-Completed 200 OK in 81ms (Views: 36.7ms | ActiveRecord: 0.7ms)
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190963
+Completed 302 Found in 18ms (ActiveRecord: 1.4ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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.1ms)
-Completed 500 Internal Server Error in 32ms
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms)
+Completed 500 Internal Server Error in 46ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.0ms)[0m 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"}
- [1m[36mShop Load (29.6ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 41ms
+Completed 500 Internal Server Error in 9ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.1ms)
+Completed 500 Internal Server Error in 5ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
@@ -3022,247 +2284,264 @@
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 6ms
+Completed 500 Internal Server Error in 8ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (107.4ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (90.6ms)[0m 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)
- [1m[36m (90.1ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (82.1ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (90.6ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.7ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.3ms)[0m [1mCREATE 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) [0m
- [1m[35m (81.9ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (74.3ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.5ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (73.9ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (83.5ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (91.0ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.5ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.7ms)[0m 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)
- [1m[36m (81.9ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:01:08', '2014-02-21 21:01:08', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:01:08', '2014-02-21 21:01:08', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:01:08', '2014-02-21 21:01:08', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:01:08', '2014-02-21 21:01:08', 298486374)
- [1m[36m (79.1ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.1ms)[0m rollback transaction
+Completed in 7ms
+ [1m[36m (116.0ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (82.6ms)[0m 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)
+ [1m[36m (73.9ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (75.8ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (82.1ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (82.7ms)[0m 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)
+ [1m[36m (73.9ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.6ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.8ms)[0m [1mCREATE 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) [0m
+ [1m[35m (98.3ms)[0m DROP TABLE "shops"
+ [1m[36m (90.8ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:58:20', '2014-03-03 12:58:20', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:58:20', '2014-03-03 12:58:20', 298486374)[0m
+ [1m[35m (82.4ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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", "name"=>"MyString", "uuid"=>"MyString"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.2ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
- [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (1.0ms)
- Rendered /home/alex/workspace/extface/app/views/extface/devices/form.html.erb within layouts/extface/application (21.1ms)
-Completed 200 OK in 77ms (Views: 34.8ms | ActiveRecord: 0.6ms)
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190963
+Completed 302 Found in 16ms (ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.2ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
+Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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.1ms)
-Completed 500 Internal Server Error in 27ms
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 35ms
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+Completed 500 Internal Server Error in 8ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
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.1ms)
+Completed 500 Internal Server Error in 5ms
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 5ms
+Completed 500 Internal Server Error in 7ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (111.1ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (90.6ms)[0m 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)
- [1m[36m (82.4ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (82.2ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.5ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.6ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.1ms)[0m [1mCREATE 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) [0m
- [1m[35m (74.1ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (90.9ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.9ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (83.0ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (74.0ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.6ms)[0m 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)
- [1m[36m (90.6ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.8ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:01:49', '2014-02-21 21:01:49', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:01:49', '2014-02-21 21:01:49', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:01:49', '2014-02-21 21:01:49', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:01:49', '2014-02-21 21:01:49', 298486374)
- [1m[36m (77.5ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.2ms)[0m rollback transaction
+Completed in 7ms
+ [1m[36m (121.8ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (74.2ms)[0m 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)
+ [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (82.7ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (90.0ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (90.6ms)[0m 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)
+ [1m[36m (73.8ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.7ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.5ms)[0m [1mCREATE 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) [0m
+ [1m[35m (82.2ms)[0m DROP TABLE "shops"
+ [1m[36m (90.9ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:58:43', '2014-03-03 12:58:43', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:58:43', '2014-03-03 12:58:43', 298486374)[0m
+ [1m[35m (87.7ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.4ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:01:50 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:01:50 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:01:50 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "17bbefbed7d189e1d0d38f4e7f3fefa9"], ["updated_at", Fri, 21 Feb 2014 21:01:50 UTC +00:00], ["uuid", "17bbefbed7d189e1d0d38f4e7f3fefa9"]]
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.2ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 51ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 19ms (ActiveRecord: 1.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.2ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
+Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
@@ -3271,12 +2550,12 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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 19ms
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms)
+Completed 500 Internal Server Error in 47ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
@@ -3293,283 +2572,299 @@
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 48ms (Views: 46.6ms | ActiveRecord: 0.1ms)
+Completed 500 Internal Server Error in 5ms
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 6ms
+Completed 500 Internal Server Error in 7ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (104.8ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (124.8ms)[0m 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)
- [1m[36m (97.3ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.8ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.6ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (75.3ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.5ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.2ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (82.2ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (74.3ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.9ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (74.0ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (82.1ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.9ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.7ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.1ms)[0m 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)
- [1m[36m (82.5ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (98.8ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:02:01', '2014-02-21 21:02:01', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:02:01', '2014-02-21 21:02:01', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:02:01', '2014-02-21 21:02:01', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:02:01', '2014-02-21 21:02:01', 298486374)
- [1m[36m (73.2ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.1ms)[0m rollback transaction
+Completed in 7ms
+ [1m[36m (101.5ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (90.4ms)[0m 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)
+ [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.1ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (73.9ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (90.7ms)[0m 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)
+ [1m[36m (82.1ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.9ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (74.1ms)[0m [1mCREATE 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) [0m
+ [1m[35m (73.9ms)[0m DROP TABLE "shops"
+ [1m[36m (84.3ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:58:55', '2014-03-03 12:58:55', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:58:55', '2014-03-03 12:58:55', 298486374)[0m
+ [1m[35m (81.4ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.2ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:02:01 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:02:01 UTC +00:00]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:02:01 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "83b20535d535a0b203252861d015463b"], ["updated_at", Fri, 21 Feb 2014 21:02:01 UTC +00:00], ["uuid", "83b20535d535a0b203252861d015463b"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 50ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 16ms (ActiveRecord: 1.3ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
+Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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 20ms
+Completed 500 Internal Server Error in 44ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 7ms
+Completed 500 Internal Server Error in 8ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 47ms (Views: 45.8ms | ActiveRecord: 0.1ms)
+Completed 500 Internal Server Error in 5ms
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 5ms
+Completed 500 Internal Server Error in 7ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (169.9ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.1ms)[0m 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)
- [1m[36m (90.5ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (98.4ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (99.0ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.3ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.3ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.2ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (82.2ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (92.3ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (99.1ms)[0m 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)
- [1m[36m (81.6ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Driver::StarScp700', '2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Driver::StarTsp700', '2014-02-21 21:04:19', '2014-02-21 21:04:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 298486374)
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:04:19', '2014-02-21 21:04:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:04:19', '2014-02-21 21:04:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:04:19', '2014-02-21 21:04:19', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:04:19', '2014-02-21 21:04:19', 298486374)
- [1m[36m (81.4ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.1ms)[0m rollback transaction
+Completed in 8ms
+ [1m[36m (116.0ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (82.4ms)[0m 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)
+ [1m[36m (73.4ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.5ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (74.1ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (74.2ms)[0m 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)
+ [1m[36m (73.9ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (99.6ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (66.0ms)[0m [1mCREATE 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) [0m
+ [1m[35m (81.8ms)[0m DROP TABLE "shops"
+ [1m[36m (82.6ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:59:40', '2014-03-03 12:59:40', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 12:59:40', '2014-03-03 12:59:40', 298486374)[0m
+ [1m[35m (84.0ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:04:19 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:04:19 UTC +00:00]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:04:19 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "bfc297da6a50cb79a9e273a4c4c71dbe"], ["updated_at", Fri, 21 Feb 2014 21:04:19 UTC +00:00], ["uuid", "bfc297da6a50cb79a9e273a4c4c71dbe"]]
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.2ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 50ms (ActiveRecord: 1.6ms)
+Completed 302 Found in 18ms (ActiveRecord: 1.4ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.2ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
+Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["id", 980190962]]
-Completed 500 Internal Server Error in 21ms
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+Completed 500 Internal Server Error in 55ms
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
@@ -3577,23 +2872,23 @@
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
-Completed 500 Internal Server Error in 8ms
+Completed 500 Internal Server Error in 7ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#new as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m 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 48ms (Views: 46.6ms | ActiveRecord: 0.1ms)
+Completed 500 Internal Server Error in 9ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
@@ -3602,86 +2897,94 @@
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.1ms)[0m 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 500 Internal Server Error in 6ms
+ [1m[35mExtface::Driver Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (98.7ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.2ms)[0m 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)
- [1m[36m (82.1ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (90.1ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (74.1ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (90.4ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (92.0ms)[0m [1mCREATE 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) [0m
- [1m[35m (98.7ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.3ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (74.4ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.9ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (73.8ms)[0m 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)
- [1m[36m (81.9ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Driver::StarScp700', '2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Driver::StarTsp700', '2014-02-21 21:04:26', '2014-02-21 21:04:26', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:04:26', '2014-02-21 21:04:26', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:04:26', '2014-02-21 21:04:26', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:04:26', '2014-02-21 21:04:26', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:04:26', '2014-02-21 21:04:26', 298486374)
- [1m[36m (90.9ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.1ms)[0m rollback transaction
+Completed in 6ms
+ [1m[36m (113.2ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (75.8ms)[0m 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)
+ [1m[36m (90.3ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (82.6ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (74.2ms)[0m 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)
+ [1m[36m (73.9ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.8ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.6ms)[0m [1mCREATE 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) [0m
+ [1m[35m (81.9ms)[0m DROP TABLE "shops"
+ [1m[36m (82.4ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:00:43', '2014-03-03 13:00:43', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:00:43', '2014-03-03 13:00:43', 298486374)[0m
+ [1m[35m (80.6ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.4ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:04:26 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:04:26 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:04:26 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "b28106c09cbc656a91930dd56da2412b"], ["updated_at", Fri, 21 Feb 2014 21:04:26 UTC +00:00], ["uuid", "b28106c09cbc656a91930dd56da2412b"]]
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 49ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 17ms (ActiveRecord: 1.3ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
@@ -3691,11 +2994,11 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
@@ -3708,24 +3011,24 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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.7ms)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["id", 980190962]]
-Completed 500 Internal Server Error in 21ms
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+Completed 500 Internal Server Error in 55ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Completed 500 Internal Server Error in 7ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
@@ -3736,11 +3039,11 @@
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#new as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m 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 48ms (Views: 45.9ms | ActiveRecord: 0.1ms)
+Completed 500 Internal Server Error in 9ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
@@ -3749,104 +3052,112 @@
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.1ms)[0m 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 500 Internal Server Error in 6ms
+ [1m[35mExtface::Driver Load (0.1ms)[0m 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
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (157.3ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.3ms)[0m 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)
- [1m[36m (74.1ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (82.1ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.8ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.6ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.5ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.4ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.4ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (83.2ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (107.3ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (74.5ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.4ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.5ms)[0m 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)
- [1m[36m (98.5ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:05:09', '2014-02-21 21:05:09', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:05:09', '2014-02-21 21:05:09', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:05:09', '2014-02-21 21:05:09', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:05:09', '2014-02-21 21:05:09', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:05:09', '2014-02-21 21:05:09', 298486374)
- [1m[36m (96.3ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Exists (0.2ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.1ms)[0m rollback transaction
+Completed in 8ms
+ [1m[36m (106.9ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (74.2ms)[0m 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)
+ [1m[36m (81.7ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.3ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (82.3ms)[0m 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)
+ [1m[36m (73.8ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.7ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.4ms)[0m [1mCREATE 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) [0m
+ [1m[35m (82.0ms)[0m DROP TABLE "shops"
+ [1m[36m (123.6ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:01:41', '2014-03-03 13:01:41', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:01:41', '2014-03-03 13:01:41', 298486374)[0m
+ [1m[35m (77.9ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:05:09 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:05:09 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:05:09 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "a914439f80a10e6b3bbfad0fb336cc1f"], ["updated_at", Fri, 21 Feb 2014 21:05:09 UTC +00:00], ["uuid", "a914439f80a10e6b3bbfad0fb336cc1f"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 27ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 17ms (ActiveRecord: 1.3ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
+Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
@@ -3855,28 +3166,28 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.6ms)
- Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (48.2ms)
-Completed 200 OK in 89ms (Views: 87.3ms | ActiveRecord: 0.3ms)
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Completed 500 Internal Server Error in 8ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
@@ -3885,102 +3196,109 @@
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#new as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m 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 11ms (Views: 9.8ms | ActiveRecord: 0.1ms)
+Completed 500 Internal Server Error in 9ms
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.0ms)[0m 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]]
- [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ?[0m [["device_id", 980190962]]
-Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mExtface::Driver Load (0.0ms)[0m 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
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1[0m
-Completed 500 Internal Server Error in 1ms
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (124.6ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (90.4ms)[0m 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)
- [1m[36m (90.5ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (90.4ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (98.9ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (89.9ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.5ms)[0m [1mCREATE 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) [0m
- [1m[35m (81.9ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.6ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.2ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (75.5ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.5ms)[0m 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)
- [1m[36m (89.8ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:06:08', '2014-02-21 21:06:08', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:08', '2014-02-21 21:06:08', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:06:08', '2014-02-21 21:06:08', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:06:08', '2014-02-21 21:06:08', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:06:08', '2014-02-21 21:06:08', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Drive::RawSerial', '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Drive::RawSerial', '2014-02-21 21:06:08', '2014-02-21 21:06:08', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:08', '2014-02-21 21:06:08', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:08', '2014-02-21 21:06:08', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:06:08', '2014-02-21 21:06:08', 298486374)
- [1m[36m (93.9ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.1ms)[0m rollback transaction
+Completed in 7ms
+ [1m[36m (102.9ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (82.5ms)[0m 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)
+ [1m[36m (98.5ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (75.7ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (90.8ms)[0m 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)
+ [1m[36m (82.5ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.7ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.5ms)[0m [1mCREATE 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) [0m
+ [1m[35m (81.9ms)[0m DROP TABLE "shops"
+ [1m[36m (82.7ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:02:40', '2014-03-03 13:02:40', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:02:40', '2014-03-03 13:02:40', 298486374)[0m
+ [1m[35m (81.7ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:06:08 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:06:08 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:06:08 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "f46cd560600fe96ec71c8e5ac71408a3"], ["updated_at", Fri, 21 Feb 2014 21:06:08 UTC +00:00], ["uuid", "f46cd560600fe96ec71c8e5ac71408a3"]]
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 26ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 17ms (ActiveRecord: 1.3ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.2ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
@@ -3995,299 +3313,319 @@
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (20.7ms)
- Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (28.8ms)
-Completed 200 OK in 89ms (Views: 87.2ms | ActiveRecord: 0.3ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.0ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
-Completed 500 Internal Server Error in 8ms
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mExtface::Driver Load (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.1ms)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+Completed 500 Internal Server Error in 33ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.0ms)[0m 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]]
- [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ?[0m [["device_id", 980190962]]
-Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[36mExtface::Driver Load (0.0ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+Completed 500 Internal Server Error in 8ms
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1[0m
-Completed 500 Internal Server Error in 1ms
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (121.2ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (114.9ms)[0m 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)
- [1m[36m (82.5ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.2ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (92.1ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.7ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.0ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.2ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.0ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (74.3ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (74.1ms)[0m 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)
- [1m[36m (89.7ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (84.2ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:02:40 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 8ms (ActiveRecord: 0.9ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:06:19', '2014-02-21 21:06:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:19', '2014-02-21 21:06:19', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:06:19', '2014-02-21 21:06:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:06:19', '2014-02-21 21:06:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:06:19', '2014-02-21 21:06:19', 298486374, 'Shop', 980190962, 'RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Drive::RawSerial', '2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Drive::RawSerial', '2014-02-21 21:06:19', '2014-02-21 21:06:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:19', '2014-02-21 21:06:19', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:19', '2014-02-21 21:06:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:06:19', '2014-02-21 21:06:19', 298486374)
- [1m[36m (84.7ms)[0m [1mcommit transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Completed in 6ms
+ [1m[36m (95.5ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (98.8ms)[0m 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)
+ [1m[36m (81.7ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.2ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (81.7ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (74.4ms)[0m 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)
+ [1m[36m (74.1ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.9ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (84.2ms)[0m [1mCREATE 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) [0m
+ [1m[35m (82.2ms)[0m DROP TABLE "shops"
+ [1m[36m (82.5ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:03:37', '2014-03-03 13:03:37', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:03:37', '2014-03-03 13:03:37', 298486374)[0m
+ [1m[35m (121.7ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.4ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:06:19 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:06:19 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:06:19 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "954969a05ae5133086179325eb8b7253"], ["updated_at", Fri, 21 Feb 2014 21:06:19 UTC +00:00], ["uuid", "954969a05ae5133086179325eb8b7253"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.2ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 26ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 19ms (ActiveRecord: 1.4ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.2ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.2ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (22.7ms)
- Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (28.5ms)
-Completed 200 OK in 96ms (Views: 94.5ms | ActiveRecord: 0.4ms)
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
-Completed 500 Internal Server Error in 10ms
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mExtface::Driver Load (0.0ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.1ms)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+Completed 500 Internal Server Error in 32ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.0ms)[0m 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]]
- [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ?[0m [["device_id", 980190962]]
-Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[36mExtface::Driver Load (0.1ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+Completed 500 Internal Server Error in 8ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1[0m
-Completed 500 Internal Server Error in 1ms
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (86.2ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.4ms)[0m 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)
- [1m[36m (90.5ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (82.0ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (90.9ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.8ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (83.7ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.5ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (90.0ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.1ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.5ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.4ms)[0m 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)
- [1m[36m (90.0ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.3ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.2ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:07:19', '2014-02-21 21:07:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:19', '2014-02-21 21:07:19', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:07:19', '2014-02-21 21:07:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:07:19', '2014-02-21 21:07:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:07:19', '2014-02-21 21:07:19', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Drive::RawSerial', '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Drive::RawSerial', '2014-02-21 21:07:19', '2014-02-21 21:07:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:19', '2014-02-21 21:07:19', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:19', '2014-02-21 21:07:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:07:19', '2014-02-21 21:07:19', 298486374)
- [1m[36m (80.6ms)[0m [1mcommit transaction[0m
- [1m[35m (0.2ms)[0m begin transaction
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:03:37 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Completed in 7ms
+ [1m[36m (106.6ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (82.3ms)[0m 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)
+ [1m[36m (81.8ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.1ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (73.9ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (74.1ms)[0m 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)
+ [1m[36m (82.3ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.8ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (90.6ms)[0m [1mCREATE 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) [0m
+ [1m[35m (82.2ms)[0m DROP TABLE "shops"
+ [1m[36m (82.5ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:06:37', '2014-03-03 13:06:37', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:06:37', '2014-03-03 13:06:37', 298486374)[0m
+ [1m[35m (101.2ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:07:19 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:07:19 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:07:19 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "613618c13571f8ddb3bbb175eab950d8"], ["updated_at", Fri, 21 Feb 2014 21:07:19 UTC +00:00], ["uuid", "613618c13571f8ddb3bbb175eab950d8"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 27ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 16ms (ActiveRecord: 1.3ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
@@ -4305,166 +3643,175 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (20.2ms)
- Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (28.1ms)
-Completed 200 OK in 90ms (Views: 87.8ms | ActiveRecord: 0.4ms)
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::RawDriver Load (0.1ms)[0m SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]]
-Completed 500 Internal Server Error in 9ms
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.0ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.1ms)
+Completed 500 Internal Server Error in 32ms
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36mExtface::PosPrintDriver Load (0.0ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]]
-Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.6ms)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mExtface::Driver Load (0.1ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+Completed 500 Internal Server Error in 9ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:06:37 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 8ms (ActiveRecord: 1.0ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (112.1ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.1ms)[0m 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)
- [1m[36m (73.7ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (90.1ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (90.7ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (89.6ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.8ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.5ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.3ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (231.8ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (80.8ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (92.1ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.3ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (74.5ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.6ms)[0m 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)
- [1m[36m (107.0ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
[1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962)
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:07:41', '2014-02-21 21:07:41', 298486374)[0m
- [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:41', '2014-02-21 21:07:41', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.2ms)[0m 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-02-21 21:07:41', '2014-02-21 21:07:41', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:07:41', '2014-02-21 21:07:41', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:07:41', '2014-02-21 21:07:41', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:07:41', '2014-02-21 21:07:41', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:41', '2014-02-21 21:07:41', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:41', '2014-02-21 21:07:41', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:07:41', '2014-02-21 21:07:41', 298486374)
- [1m[36m (80.6ms)[0m [1mcommit transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Completed in 7ms
+ [1m[36m (130.4ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (74.1ms)[0m 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)
+ [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.4ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (73.4ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (74.4ms)[0m 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)
+ [1m[36m (82.1ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.7ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.3ms)[0m [1mCREATE 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) [0m
+ [1m[35m (82.0ms)[0m DROP TABLE "shops"
+ [1m[36m (82.6ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:06:44', '2014-03-03 13:06:44', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:06:44', '2014-03-03 13:06:44', 298486374)[0m
+ [1m[35m (260.6ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.4ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.2ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:07:41 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:07:41 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:07:41 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "b931263f716c536008790ccb9c9d3d85"], ["updated_at", Fri, 21 Feb 2014 21:07:41 UTC +00:00], ["uuid", "b931263f716c536008790ccb9c9d3d85"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.2ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 26ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 21ms (ActiveRecord: 1.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mSQL (0.3ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36m (0.2ms)[0m [1mrollback transaction[0m
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["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 (49.1ms)
-Completed 200 OK in 91ms (Views: 88.9ms | ActiveRecord: 0.4ms)
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
@@ -4473,15 +3820,15 @@
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.0ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::RawDriver Load (0.1ms)[0m SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.1ms)[0m 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 14ms (Views: 11.7ms | ActiveRecord: 0.7ms)
+ [1m[35mExtface::Driver Load (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
@@ -4489,152 +3836,159 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.1ms)
+Completed 500 Internal Server Error in 32ms
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36mExtface::PosPrintDriver Load (0.0ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]]
-Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mExtface::Driver Load (0.1ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+Completed 500 Internal Server Error in 9ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1
-Completed 500 Internal Server Error in 1ms
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:06:44 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (101.1ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.4ms)[0m 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)
- [1m[36m (75.3ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (98.4ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (107.2ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.7ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.4ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.1ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.1ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.1ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.4ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (72.6ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (75.7ms)[0m 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)
- [1m[36m (89.9ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.4ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.2ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:08:17', '2014-02-21 21:08:17', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:17', '2014-02-21 21:08:17', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:08:17', '2014-02-21 21:08:17', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:08:17', '2014-02-21 21:08:17', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:08:17', '2014-02-21 21:08:17', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:08:17', '2014-02-21 21:08:17', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:17', '2014-02-21 21:08:17', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:17', '2014-02-21 21:08:17', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:08:17', '2014-02-21 21:08:17', 298486374)
- [1m[36m (80.5ms)[0m [1mcommit transaction[0m
[1m[35m (0.1ms)[0m begin transaction
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Completed in 6ms
+ [1m[36m (100.5ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (74.3ms)[0m 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)
+ [1m[36m (370.0ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (82.5ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (73.9ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (74.1ms)[0m 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)
+ [1m[36m (82.1ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (73.8ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.3ms)[0m [1mCREATE 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) [0m
+ [1m[35m (83.2ms)[0m DROP TABLE "shops"
+ [1m[36m (98.9ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:07:20', '2014-03-03 13:07:20', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:07:20', '2014-03-03 13:07:20', 298486374)[0m
+ [1m[35m (101.2ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.4ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:08:18 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:08:18 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:08:18 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "e71e6316e6752b146c94c8eeef1986ad"], ["updated_at", Fri, 21 Feb 2014 21:08:18 UTC +00:00], ["uuid", "e71e6316e6752b146c94c8eeef1986ad"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.2ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 25ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 20ms (ActiveRecord: 1.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.1ms)[0m rollback transaction
+ [1m[35m (0.2ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
+Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.6ms)
- Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (50.8ms)
-Completed 200 OK in 91ms (Views: 89.3ms | ActiveRecord: 0.4ms)
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.9ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::RawDriver Load (0.1ms)[0m SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.0ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.0ms)[0m 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 13ms (Views: 9.9ms | ActiveRecord: 0.8ms)
+ [1m[35mExtface::Driver Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
@@ -4642,110 +3996,107 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.1ms)
+Completed 200 OK in 30ms (Views: 28.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36mExtface::PosPrintDriver Load (0.0ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]]
-Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mExtface::Driver Load (0.0ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+Completed 500 Internal Server Error in 8ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
- Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
- [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms)
- [1m[36mExtface::PosPrintDriver Load (0.1ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.1ms)
- Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (22.3ms)
-Completed 200 OK in 34ms (Views: 29.0ms | ActiveRecord: 0.6ms)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (126.8ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.1ms)[0m 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)
- [1m[36m (73.9ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.8ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (74.3ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.2ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (83.8ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.0ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.4ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (156.5ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (74.2ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.9ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (74.3ms)[0m 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)
- [1m[36m (82.1ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:07:20 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:08:40', '2014-02-21 21:08:40', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:40', '2014-02-21 21:08:40', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:08:40', '2014-02-21 21:08:40', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:08:40', '2014-02-21 21:08:40', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:08:40', '2014-02-21 21:08:40', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:08:40', '2014-02-21 21:08:40', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:40', '2014-02-21 21:08:40', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:40', '2014-02-21 21:08:40', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:08:40', '2014-02-21 21:08:40', 298486374)
- [1m[36m (110.3ms)[0m [1mcommit transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Completed in 6ms
+ [1m[36m (124.0ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (92.2ms)[0m 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)
+ [1m[36m (98.1ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (90.6ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (74.1ms)[0m 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)
+ [1m[36m (74.1ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (90.2ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.4ms)[0m [1mCREATE 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) [0m
+ [1m[35m (81.9ms)[0m DROP TABLE "shops"
+ [1m[36m (82.6ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:08:30', '2014-03-03 13:08:30', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:08:30', '2014-03-03 13:08:30', 298486374)[0m
+ [1m[35m (86.6ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:08:40 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:08:40 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:08:40 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "03fd2852ae2b8143dcafb40003d16a9e"], ["updated_at", Fri, 21 Feb 2014 21:08:40 UTC +00:00], ["uuid", "03fd2852ae2b8143dcafb40003d16a9e"]]
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.2ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 25ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 17ms (ActiveRecord: 1.3ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
@@ -4772,32 +4123,32 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["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 (52.2ms)
-Completed 200 OK in 92ms (Views: 90.5ms | ActiveRecord: 0.4ms)
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.0ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::RawDriver Load (0.1ms)[0m SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.1ms)[0m 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 13ms (Views: 10.4ms | ActiveRecord: 0.8ms)
+ [1m[35mExtface::Driver Load (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
@@ -4805,162 +4156,163 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.1ms)
+Completed 200 OK in 31ms (Views: 29.1ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36mExtface::PosPrintDriver Load (0.0ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]]
-Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mExtface::Driver Load (0.1ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+Completed 500 Internal Server Error in 15ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
- [1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms)
- [1m[36mExtface::PosPrintDriver Load (0.1ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.1ms)
- Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (22.3ms)
-Completed 200 OK in 35ms (Views: 29.1ms | ActiveRecord: 0.7ms)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (147.6ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.0ms)[0m 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)
- [1m[36m (91.0ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (98.3ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (90.5ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.3ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (99.0ms)[0m [1mCREATE 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) [0m
- [1m[35m (81.8ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.2ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (83.8ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.9ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (74.0ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (73.8ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.3ms)[0m 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)
- [1m[36m (90.2ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (107.4ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:08:30 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:09:19', '2014-02-21 21:09:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:09:19', '2014-02-21 21:09:19', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:09:19', '2014-02-21 21:09:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:09:19', '2014-02-21 21:09:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:09:19', '2014-02-21 21:09:19', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:09:19', '2014-02-21 21:09:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:09:19', '2014-02-21 21:09:19', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:09:19', '2014-02-21 21:09:19', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:09:19', '2014-02-21 21:09:19', 298486374)
- [1m[36m (102.1ms)[0m [1mcommit transaction[0m
- [1m[35m (0.2ms)[0m begin transaction
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Completed in 7ms
+ [1m[36m (107.9ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (74.4ms)[0m 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)
+ [1m[36m (90.3ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.4ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (98.4ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (90.5ms)[0m 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)
+ [1m[36m (75.3ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (90.3ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.3ms)[0m [1mCREATE 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) [0m
+ [1m[35m (82.0ms)[0m DROP TABLE "shops"
+ [1m[36m (156.7ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:09:55', '2014-03-03 13:09:55', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:09:55', '2014-03-03 13:09:55', 298486374)[0m
+ [1m[35m (83.4ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.4ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:09:20 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:09:20 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:09:20 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "ac42a7a028ec04ffed72ef1a33d6705e"], ["updated_at", Fri, 21 Feb 2014 21:09:20 UTC +00:00], ["uuid", "ac42a7a028ec04ffed72ef1a33d6705e"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.2ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.9ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 25ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 20ms (ActiveRecord: 1.5ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.2ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
+Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["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 (49.4ms)
-Completed 200 OK in 96ms (Views: 93.6ms | ActiveRecord: 0.4ms)
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::RawDriver Load (0.2ms)[0m SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.0ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.1ms)[0m 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.4ms | ActiveRecord: 0.7ms)
+ [1m[35mExtface::Driver Load (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
@@ -4968,119 +4320,120 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.1ms)
+Completed 200 OK in 30ms (Views: 28.8ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36mExtface::PosPrintDriver Load (0.1ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]]
-Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.6ms)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mExtface::Driver Load (0.0ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+Completed 500 Internal Server Error in 15ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1[0m
- [1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
- Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.3ms)
- [1m[36mExtface::PosPrintDriver Load (0.1ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.1ms)
- Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (21.6ms)
-Completed 200 OK in 33ms (Views: 27.7ms | ActiveRecord: 0.6ms)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (108.7ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.3ms)[0m 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)
- [1m[36m (98.8ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (82.2ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (90.8ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (90.1ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (98.8ms)[0m [1mCREATE 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) [0m
- [1m[35m (90.6ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.4ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (75.1ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.4ms)[0m 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)
- [1m[36m (81.6ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:09:55 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:10:02', '2014-02-21 21:10:02', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:02', '2014-02-21 21:10:02', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:10:02', '2014-02-21 21:10:02', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:10:02', '2014-02-21 21:10:02', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:10:02', '2014-02-21 21:10:02', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:10:02', '2014-02-21 21:10:02', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:02', '2014-02-21 21:10:02', 298486374)
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:02', '2014-02-21 21:10:02', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:10:02', '2014-02-21 21:10:02', 298486374)
- [1m[36m (88.0ms)[0m [1mcommit transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Completed in 6ms
+ [1m[36m (99.9ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (74.2ms)[0m 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)
+ [1m[36m (83.0ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.3ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (74.3ms)[0m 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)
+ [1m[36m (73.8ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (82.3ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (90.8ms)[0m [1mCREATE 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) [0m
+ [1m[35m (82.1ms)[0m DROP TABLE "shops"
+ [1m[36m (82.4ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.0ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:10:32', '2014-03-03 13:10:32', 980190962)
+ [1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:10:32', '2014-03-03 13:10:32', 298486374)[0m
+ [1m[35m (94.3ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:10:03 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:10:03 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:10:03 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "e95f914b317e848127741034f40ac5cf"], ["updated_at", Fri, 21 Feb 2014 21:10:03 UTC +00:00], ["uuid", "e95f914b317e848127741034f40ac5cf"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 25ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 16ms (ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35m (0.2ms)[0m rollback transaction
+ [1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
----------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
@@ -5088,42 +4441,42 @@
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["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 (48.6ms)
-Completed 200 OK in 90ms (Views: 88.5ms | ActiveRecord: 0.3ms)
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::RawDriver Load (0.1ms)[0m SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.0ms)[0m 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 11ms (Views: 9.4ms | ActiveRecord: 0.7ms)
+ [1m[35mExtface::Driver Load (0.1ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
@@ -5131,108 +4484,112 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.1ms)
+Completed 200 OK in 31ms (Views: 29.1ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36mExtface::PosPrintDriver Load (0.0ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]]
-Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.5ms)
+ [1m[36mExtface::Driver Load (0.1ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35mExtface::Job Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mExtface::Device Exists (0.1ms)[0m 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
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.3ms)[0m UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Fri, 21 Feb 2014 21:10:03 UTC +00:00]]
- [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices/980190962
-Completed 302 Found in 7ms (ActiveRecord: 0.8ms)
+Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (110.7ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.3ms)[0m 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)
- [1m[36m (82.2ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (90.2ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (92.2ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.6ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.2ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.0ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.2ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.7ms)[0m 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)
- [1m[36m (81.5ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (83.9ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:10:20', '2014-02-21 21:10:20', 980190962)
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:10:20', '2014-02-21 21:10:20', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:20', '2014-02-21 21:10:20', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:20', '2014-02-21 21:10:20', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.2ms)[0m 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-02-21 21:10:20', '2014-02-21 21:10:20', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:10:20', '2014-02-21 21:10:20', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:10:20', '2014-02-21 21:10:20', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:10:20', '2014-02-21 21:10:20', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:10:20', '2014-02-21 21:10:20', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:10:20', '2014-02-21 21:10:20', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:20', '2014-02-21 21:10:20', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:20', '2014-02-21 21:10:20', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:20', '2014-02-21 21:10:20', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:20', '2014-02-21 21:10:20', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:10:20', '2014-02-21 21:10:20', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:10:20', '2014-02-21 21:10:20', 298486374)
- [1m[36m (81.0ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.1ms)[0m rollback transaction
+Completed in 6ms
+ [1m[36m (110.1ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (74.2ms)[0m 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)
+ [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.2ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (81.9ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (99.1ms)[0m 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)
+ [1m[36m (98.7ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (89.9ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (73.9ms)[0m [1mCREATE 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) [0m
+ [1m[35m (82.4ms)[0m DROP TABLE "shops"
+ [1m[36m (92.2ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:11:34', '2014-03-03 13:11:34', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:11:34', '2014-03-03 13:11:34', 298486374)[0m
+ [1m[35m (85.1ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.8ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:10:20 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:10:20 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:10:20 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "d8c112938af089a2b9f00c05857902c2"], ["updated_at", Fri, 21 Feb 2014 21:10:20 UTC +00:00], ["uuid", "d8c112938af089a2b9f00c05857902c2"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 25ms (ActiveRecord: 1.5ms)
+Completed 302 Found in 16ms (ActiveRecord: 1.2ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
@@ -5240,160 +4597,163 @@
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35mShop Load (0.0ms)[0m 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"}
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
+Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["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 (49.8ms)
-Completed 200 OK in 90ms (Views: 88.4ms | ActiveRecord: 0.4ms)
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::RawDriver Load (0.2ms)[0m SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.1ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.1ms)[0m 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 14ms (Views: 11.7ms | ActiveRecord: 0.9ms)
+ [1m[35mExtface::Driver Load (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[35m (0.1ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.1ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.1ms)
+Completed 200 OK in 29ms (Views: 27.9ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36mExtface::PosPrintDriver Load (0.0ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]]
-Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.5ms)
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mExtface::Driver Load (0.0ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+Completed 500 Internal Server Error in 15ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.0ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#update as HTML
Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
- [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.3ms)[0m UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Fri, 21 Feb 2014 21:10:20 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 13:11:34 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190962
-Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
- [1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (116.2ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (73.9ms)[0m 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)
- [1m[36m (91.0ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (89.0ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (99.2ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.8ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (90.7ms)[0m [1mCREATE 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) [0m
- [1m[35m (83.1ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (74.0ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (99.0ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (74.2ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.8ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.6ms)[0m 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)
- [1m[36m (90.4ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.7ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
+Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:11:10', '2014-02-21 21:11:10', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:10', '2014-02-21 21:11:10', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:11:10', '2014-02-21 21:11:10', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:11:10', '2014-02-21 21:11:10', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:11:10', '2014-02-21 21:11:10', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:11:10', '2014-02-21 21:11:10', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:10', '2014-02-21 21:11:10', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:10', '2014-02-21 21:11:10', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:11:10', '2014-02-21 21:11:10', 298486374)
- [1m[36m (82.5ms)[0m [1mcommit transaction[0m
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.1ms)[0m begin transaction
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Completed in 6ms
+ [1m[36m (106.0ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (90.6ms)[0m 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)
+ [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.4ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (74.0ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (75.3ms)[0m 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)
+ [1m[36m (73.8ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.8ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (90.6ms)[0m [1mCREATE 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) [0m
+ [1m[35m (82.2ms)[0m DROP TABLE "shops"
+ [1m[36m (90.9ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:12:07', '2014-03-03 13:12:07', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:12:07', '2014-03-03 13:12:07', 298486374)[0m
+ [1m[35m (89.4ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (1.0ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:11:10 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:11:10 UTC +00:00]]
- [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:11:10 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "90ebc366442ebba9be7f86709c862356"], ["updated_at", Fri, 21 Feb 2014 21:11:10 UTC +00:00], ["uuid", "90ebc366442ebba9be7f86709c862356"]]
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.2ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.7ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 27ms (ActiveRecord: 1.7ms)
+Completed 302 Found in 16ms (ActiveRecord: 1.3ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
@@ -5407,72 +4767,76 @@
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 4ms (ActiveRecord: 0.6ms)
+Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
----------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["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 (48.6ms)
-Completed 200 OK in 90ms (Views: 87.7ms | ActiveRecord: 0.4ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::RawDriver Load (0.1ms)[0m SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.0ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.1ms)[0m 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: 10.3ms | ActiveRecord: 0.7ms)
+ [1m[35mExtface::Driver Load (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
- [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.1ms)
+Completed 200 OK in 31ms (Views: 29.2ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
- [1m[35mShop Load (0.2ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36mExtface::PosPrintDriver Load (0.1ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]]
-Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)
+ [1m[36mExtface::Driver Load (0.0ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35mExtface::Job Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
@@ -5480,321 +4844,93 @@
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mExtface::Device Exists (0.1ms)[0m 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
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.3ms)[0m UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Fri, 21 Feb 2014 21:11:11 UTC +00:00]]
- [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices/980190962
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
- [1m[36m (166.1ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.1ms)[0m 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)
- [1m[36m (73.7ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (73.8ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (90.4ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.8ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (98.6ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.2ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (106.9ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (386.9ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.7ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (83.6ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (74.2ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.3ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.4ms)[0m 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)
- [1m[36m (98.5ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.4ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:11:22', '2014-02-21 21:11:22', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:22', '2014-02-21 21:11:22', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:11:22', '2014-02-21 21:11:22', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:11:22', '2014-02-21 21:11:22', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:11:22', '2014-02-21 21:11:22', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:11:22', '2014-02-21 21:11:22', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:22', '2014-02-21 21:11:22', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:22', '2014-02-21 21:11:22', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:11:22', '2014-02-21 21:11:22', 298486374)
- [1m[36m (84.7ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
----------------------------------------------------
-Extface::JobsControllerTest: test_should_create_job
----------------------------------------------------
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
-----------------------------------------------------
-Extface::JobsControllerTest: test_should_destroy_job
-----------------------------------------------------
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
-------------------------------------------------
-Extface::JobsControllerTest: test_should_get_edit
--------------------------------------------------
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
-Extface::JobsControllerTest: test_should_get_index
---------------------------------------------------
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
-------------------------------------------------
-Extface::JobsControllerTest: test_should_get_new
-------------------------------------------------
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
--------------------------------------------------
Extface::JobsControllerTest: test_should_show_job
-------------------------------------------------
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
-Extface::JobsControllerTest: test_should_update_job
----------------------------------------------------
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (124.9ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (90.4ms)[0m 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)
- [1m[36m (82.3ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (81.9ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.4ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.6ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.1ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.2ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (74.0ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (90.0ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.9ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (83.7ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.7ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.2ms)[0m 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)
- [1m[36m (89.9ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (74.4ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:13:43', '2014-02-21 21:13:43', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:13:43', '2014-02-21 21:13:43', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:13:43', '2014-02-21 21:13:43', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:13:43', '2014-02-21 21:13:43', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:13:43', '2014-02-21 21:13:43', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:13:43', '2014-02-21 21:13:43', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:13:43', '2014-02-21 21:13:43', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:13:43', '2014-02-21 21:13:43', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:13:43', '2014-02-21 21:13:43', 298486374)
- [1m[36m (82.6ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
-Extface::JobsControllerTest: test_should_show_job
--------------------------------------------------
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[36m (165.5ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (73.7ms)[0m 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)
- [1m[36m (90.4ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (82.0ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (82.4ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (75.4ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.3ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.3ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (74.0ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (74.4ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (74.2ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (90.3ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.8ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.6ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.2ms)[0m 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)
- [1m[36m (81.3ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (84.0ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:14:03', '2014-02-21 21:14:03', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:03', '2014-02-21 21:14:03', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:14:03', '2014-02-21 21:14:03', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:14:03', '2014-02-21 21:14:03', 298486374)[0m
- [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:14:03', '2014-02-21 21:14:03', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:14:03', '2014-02-21 21:14:03', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:03', '2014-02-21 21:14:03', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:03', '2014-02-21 21:14:03', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:14:03', '2014-02-21 21:14:03', 298486374)
- [1m[36m (145.8ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
-Extface::JobsControllerTest: test_should_show_job
--------------------------------------------------
- [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]]
Processing by Extface::JobsController#show as HTML
Parameters: {"id"=>"980190962"}
- [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
-Completed in 3ms
- [1m[36m (107.1ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (74.0ms)[0m 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)
- [1m[36m (181.0ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (98.4ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (90.7ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (73.6ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (82.4ms)[0m [1mCREATE 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) [0m
- [1m[35m (82.0ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (82.0ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (90.9ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (74.8ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (74.1ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (106.4ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (90.6ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (98.3ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (90.8ms)[0m 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)
- [1m[36m (82.1ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.4ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:14:18', '2014-02-21 21:14:18', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:18', '2014-02-21 21:14:18', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:14:18', '2014-02-21 21:14:18', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:14:18', '2014-02-21 21:14:18', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:14:18', '2014-02-21 21:14:18', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:14:18', '2014-02-21 21:14:18', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962)[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:18', '2014-02-21 21:14:18', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:18', '2014-02-21 21:14:18', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:14:18', '2014-02-21 21:14:18', 298486374)
- [1m[36m (94.8ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
--------------------------------------------------
-Extface::JobsControllerTest: test_should_show_job
--------------------------------------------------
- [1m[36mExtface::Job Load (0.3ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
-Processing by Extface::JobsController#show as HTML
- Parameters: {"id"=>"980190962"}
- [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
- [1m[36m (0.1ms)[0m [1mrollback transaction[0m
-Completed in 3ms
- [1m[36m (117.0ms)[0m [1mDROP TABLE "extface_devices"[0m
- [1m[35m (82.7ms)[0m 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)
- [1m[36m (82.0ms)[0m [1mCREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")[0m
- [1m[35m (75.0ms)[0m DROP TABLE "extface_fiscal_print_drivers"
- [1m[36m (90.6ms)[0m [1mCREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
- [1m[35m (81.7ms)[0m DROP TABLE "extface_jobs"
- [1m[36m (107.1ms)[0m [1mCREATE 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) [0m
- [1m[35m (81.9ms)[0m CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")
- [1m[36m (73.5ms)[0m [1mDROP TABLE "extface_pbx_cdr_drivers"[0m
- [1m[35m (90.7ms)[0m CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.6ms)[0m [1mDROP TABLE "extface_pos_print_drivers"[0m
- [1m[35m (82.5ms)[0m CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (73.4ms)[0m [1mDROP TABLE "extface_raw_drivers"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)
- [1m[36m (81.4ms)[0m [1mDROP TABLE "extface_serial_configs"[0m
- [1m[35m (82.2ms)[0m 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)
- [1m[36m (75.1ms)[0m [1mDROP TABLE "shops"[0m
- [1m[35m (82.6ms)[0m CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
- [1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
- [1m[35m (0.1ms)[0m begin transaction
- [1m[36mFixture Delete (0.2ms)[0m [1mDELETE FROM "extface_pos_print_drivers"[0m
- [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarTsp700', '2014-02-21 21:14:29', '2014-02-21 21:14:29', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_pbx_cdr_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:29', '2014-02-21 21:14:29', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_serial_configs"[0m
- [1m[35mFixture Insert (0.1ms)[0m 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-02-21 21:14:29', '2014-02-21 21:14:29', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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-02-21 21:14:29', '2014-02-21 21:14:29', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_devices"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:14:29', '2014-02-21 21:14:29', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_raw_drivers"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:14:29', '2014-02-21 21:14:29', 298486374)[0m
- [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_fiscal_print_drivers"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:29', '2014-02-21 21:14:29', 298486374)
- [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_jobs"[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962)
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:29', '2014-02-21 21:14:29', 298486374)[0m
- [1m[35mFixture Delete (0.0ms)[0m DELETE FROM "shops"
- [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962)[0m
- [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:14:29', '2014-02-21 21:14:29', 298486374)
- [1m[36m (94.9ms)[0m [1mcommit transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mExtface::Job Load (0.1ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", "980190962"]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[35m (0.1ms)[0m rollback transaction
+Completed in 6ms
+ [1m[36m (104.2ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (74.0ms)[0m 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)
+ [1m[36m (73.3ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.5ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (98.5ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (92.0ms)[0m 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)
+ [1m[36m (98.5ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (98.1ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.4ms)[0m [1mCREATE 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) [0m
+ [1m[35m (90.4ms)[0m DROP TABLE "shops"
+ [1m[36m (82.7ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.3ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (105.1ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (82.1ms)[0m 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)
+ [1m[36m (81.5ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (74.2ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (73.8ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (82.3ms)[0m 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)
+ [1m[36m (82.2ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.9ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (107.1ms)[0m [1mCREATE 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) [0m
+ [1m[35m (98.1ms)[0m DROP TABLE "shops"
+ [1m[36m (92.0ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:51:13', '2014-03-03 13:51:13', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 13:51:13', '2014-03-03 13:51:13', 298486374)[0m
+ [1m[35m (93.4ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_create_device
---------------------------------------------------------
- [1m[36mExtface::Device Load (0.3ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
- [1m[36mShop Load (0.2ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
- [1m[35mExtface::Device Exists (0.1ms)[0m 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
- [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.9ms)[0m INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 21 Feb 2014 21:14:30 UTC +00:00], ["type", "Extface::Driver::RawSerial"], ["updated_at", Fri, 21 Feb 2014 21:14:30 UTC +00:00]]
- [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 21 Feb 2014 21:14:30 UTC +00:00], ["driveable_id", 980190963], ["driveable_type", "Extface::RawDriver"], ["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["name", "f511500cc34b500a08e3abfbbafa04fa"], ["updated_at", Fri, 21 Feb 2014 21:14:30 UTC +00:00], ["uuid", "f511500cc34b500a08e3abfbbafa04fa"]]
- [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ Parameters: {"shop_id"=>"980190962", "device"=>{"driver_class"=>"Extface::Driver::GenericPos"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+Unpermitted parameters: driver_class
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_devices" ("created_at", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/shop_extface/devices/980190963
-Completed 302 Found in 25ms (ActiveRecord: 1.6ms)
+Completed 302 Found in 16ms (ActiveRecord: 1.3ms)
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
----------------------------------------------------------
Extface::DevicesControllerTest: test_should_destroy_device
@@ -5803,16 +4939,16 @@
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
- [1m[35mExtface::Device Load (0.2ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.2ms)[0m DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices
-Completed 302 Found in 3ms (ActiveRecord: 0.6ms)
+Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_edit
@@ -5822,73 +4958,77 @@
Processing by Extface::DevicesController#edit as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" 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)
- [1m[36mExtface::PosPrintDriver Load (0.2ms)[0m [1mSELECT "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[0m [["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.9ms)
-Completed 200 OK in 68ms (Views: 66.4ms | ActiveRecord: 0.4ms)
+ [1m[36mExtface::Driver Load (0.2ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["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)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-----------------------------------------------------
Extface::DevicesControllerTest: test_should_get_index
-----------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#index as HTML
Parameters: {"shop_id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
- [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
[1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::RawDriver Load (0.1ms)[0m SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.0ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 599072141]]
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
- [1m[35mExtface::PosPrintDriver Load (0.1ms)[0m 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 11ms (Views: 9.1ms | ActiveRecord: 0.7ms)
+ [1m[35mExtface::Driver Load (0.0ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
[1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------
Extface::DevicesControllerTest: test_should_get_new
---------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
- [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms)
-Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.1ms)
+Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
-------------------------------------------------------
Extface::DevicesControllerTest: test_should_show_device
-------------------------------------------------------
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
- [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
Processing by Extface::DevicesController#show as HTML
Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
[1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
- [1m[36mExtface::PosPrintDriver Load (0.1ms)[0m [1mSELECT "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[0m [["id", 980190962]]
- [1m[35mExtface::Job Load (0.2ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? [["device_id", 980190962]]
-Completed 200 OK in 30ms (Views: 27.8ms | ActiveRecord: 0.5ms)
+ [1m[36mExtface::Driver Load (0.0ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35mExtface::Job Load (0.1ms)[0m 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)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
- [1m[35m (0.1ms)[0m begin transaction
+ [1m[35m (0.0ms)[0m begin transaction
---------------------------------------------------------
Extface::DevicesControllerTest: test_should_update_device
---------------------------------------------------------
[1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
[1m[35mShop Load (0.0ms)[0m 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"}
[1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
[1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
- [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mExtface::Device Exists (0.1ms)[0m 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
[1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
- [1m[35mSQL (0.3ms)[0m UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Fri, 21 Feb 2014 21:14:30 UTC +00:00]]
+ [1m[35mSQL (0.3ms)[0m 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]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/shop_extface/devices/980190962
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
[1m[35m (0.1ms)[0m rollback transaction
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
@@ -5904,5 +5044,170 @@
-----------------------
ExtfaceTest: test_truth
-----------------------
[1m[35m (0.1ms)[0m rollback transaction
Completed in 6ms
+ [1m[36m (99.6ms)[0m [1mDROP TABLE "extface_devices"[0m
+ [1m[35m (90.8ms)[0m 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)
+ [1m[36m (89.9ms)[0m [1mDROP TABLE "extface_drivers"[0m
+ [1m[35m (90.9ms)[0m CREATE TABLE "extface_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "settings" text, "created_at" datetime, "updated_at" datetime)
+ [1m[36m (81.7ms)[0m [1mDROP TABLE "extface_jobs"[0m
+ [1m[35m (74.3ms)[0m 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)
+ [1m[36m (73.8ms)[0m [1mCREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")[0m
+ [1m[35m (81.8ms)[0m DROP TABLE "extface_serial_configs"
+ [1m[36m (82.3ms)[0m [1mCREATE 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) [0m
+ [1m[35m (81.8ms)[0m DROP TABLE "shops"
+ [1m[36m (90.9ms)[0m [1mCREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_serial_configs"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "extface_serial_configs" ("serial_boud_rate", "serial_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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "extface_devices"[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.2ms)[0m DELETE FROM "extface_drivers"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Delete (0.1ms)[0m DELETE FROM "extface_jobs"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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)[0m
+ [1m[35mFixture Insert (0.1ms)[0m 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)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "shops"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 14:25:19', '2014-03-03 14:25:19', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-03-03 14:25:19', '2014-03-03 14:25:19', 298486374)[0m
+ [1m[35m (85.6ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------
+Extface::DevicesControllerTest: test_should_create_device
+---------------------------------------------------------
+ [1m[35mExtface::Device Load (0.3ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35mShop Load (0.2ms)[0m 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"}}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.2ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.8ms)[0m [1mINSERT INTO "extface_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?)[0m [["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]]
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/shop_extface/devices/980190963
+Completed 302 Found in 28ms (ActiveRecord: 1.6ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+----------------------------------------------------------
+Extface::DevicesControllerTest: test_should_destroy_device
+----------------------------------------------------------
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_devices"
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::DevicesController#destroy as HTML
+ Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.2ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "extface_devices" WHERE "extface_devices"."id" = ?[0m [["id", 980190962]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices
+Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "extface_devices"[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+----------------------------------------------------
+Extface::DevicesControllerTest: test_should_get_edit
+----------------------------------------------------
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::DevicesController#edit as HTML
+ Parameters: {"shop_id"=>"980190962", "id"=>"980190962"}
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms)
+ [1m[35mExtface::Driver Load (0.2ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+-----------------------------------------------------
+Extface::DevicesControllerTest: test_should_get_index
+-----------------------------------------------------
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ?[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]]
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[36mExtface::Driver Load (0.0ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 599072141]]
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]
+ [1m[36mExtface::Driver Load (0.1ms)[0m [1mSELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1[0m [["id", 258259918]]
+Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 0.6ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------
+Extface::DevicesControllerTest: test_should_get_new
+---------------------------------------------------
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::DevicesController#new as HTML
+ Parameters: {"shop_id"=>"980190962"}
+ [1m[35mShop Load (0.1ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (21.5ms)[0m begin transaction
+-------------------------------------------------------
+Extface::DevicesControllerTest: test_should_show_device
+-------------------------------------------------------
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1[0m [["id", 980190962]]
+ [1m[35mShop Load (0.0ms)[0m 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"}
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1[0m
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[36mShop Load (0.1ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+ [1m[35mExtface::Driver Load (0.1ms)[0m SELECT "extface_drivers".* FROM "extface_drivers" WHERE "extface_drivers"."id" = ? ORDER BY "extface_drivers"."id" ASC LIMIT 1 [["id", 258259918]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."completed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL)[0m [["device_id", 980190962]]
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ? AND ("extface_jobs"."failed_at" IS NOT NULL) [["device_id", 980190962]]
+ [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."device_id" = ?[0m [["device_id", 980190962]]
+Completed 200 OK in 16ms (Views: 13.1ms | ActiveRecord: 1.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+---------------------------------------------------------
+Extface::DevicesControllerTest: test_should_update_device
+---------------------------------------------------------
+ [1m[35mExtface::Device Load (0.1ms)[0m SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]
+ [1m[36mShop Load (0.0ms)[0m [1mSELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::DevicesController#update as HTML
+ Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"}
+ [1m[35mShop Load (0.1ms)[0m SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1
+ [1m[36mExtface::Device Load (0.1ms)[0m [1mSELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1[0m [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mExtface::Device Exists (0.1ms)[0m [1mSELECT 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[0m
+ [1m[35mExtface::Device Exists (0.1ms)[0m 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
+ [1m[36mSQL (0.3ms)[0m [1mUPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962[0m [["name", "new_name"], ["updated_at", Mon, 03 Mar 2014 14:25:19 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/shop_extface/devices/980190962
+Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-------------------------------------------------
+Extface::JobsControllerTest: test_should_show_job
+-------------------------------------------------
+ [1m[36mExtface::Job Load (0.2ms)[0m [1mSELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1[0m [["id", 980190962]]
+Processing by Extface::JobsController#show as HTML
+ Parameters: {"id"=>"980190962"}
+ [1m[35mExtface::Job Load (0.1ms)[0m SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+-----------------------
+ExtfaceTest: test_truth
+-----------------------
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Completed in 7ms