(0.3ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index -----------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index -----------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::JobsControllerTest: test_should_create_job ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::JobsControllerTest: test_should_destroy_job ----------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Extface::JobsControllerTest: test_should_get_edit -------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- Extface::JobsControllerTest: test_should_get_index --------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ Extface::JobsControllerTest: test_should_get_new ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Extface::JobsControllerTest: test_should_show_job -------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::JobsControllerTest: test_should_update_job ---------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index -----------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index -----------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index -----------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index -----------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index -----------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------  (0.0ms) rollback transaction  (96.8ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)   (74.2ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (82.1ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.2ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)  (74.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.2ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (75.0ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.2ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (97.6ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)   (79.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (82.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (73.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140219175006')  (82.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216110608')  (82.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216131245')  (82.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216134748')  (74.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216131457')  (82.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140216110018')  (74.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140215192111')  (74.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140219091811')  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ----------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index -----------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new ---------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device ---------------------------------------------------------  (0.1ms) rollback transaction  (111.8ms) DROP TABLE "extface_devices"  (82.6ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.6ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (81.7ms) DROP TABLE "extface_fiscal_print_drivers"  (82.6ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.8ms) DROP TABLE "extface_jobs"  (74.0ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (74.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.4ms) DROP TABLE "extface_pbx_cdr_drivers"  (75.6ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_pos_print_drivers"  (82.3ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_raw_drivers"  (82.7ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_serial_configs"  (73.9ms) 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)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:29:03', '2014-02-21 20:29:03', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.0ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.0ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (126.6ms) DROP TABLE "extface_devices"  (74.4ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.9ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.6ms) DROP TABLE "extface_fiscal_print_drivers"  (90.7ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (89.7ms) DROP TABLE "extface_jobs"  (74.2ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.5ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.7ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.4ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_pos_print_drivers"  (99.1ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (83.7ms) DROP TABLE "extface_raw_drivers"  (74.3ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.6ms) DROP TABLE "extface_serial_configs"  (74.2ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.0ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.0ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.0ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (145.2ms) DROP TABLE "extface_devices"  (82.6ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (106.6ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (90.1ms) DROP TABLE "extface_fiscal_print_drivers"  (92.2ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (90.3ms) DROP TABLE "extface_jobs"  (73.9ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (74.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.0ms) DROP TABLE "extface_pbx_cdr_drivers"  (90.7ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_pos_print_drivers"  (82.3ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.1ms) DROP TABLE "extface_raw_drivers"  (107.2ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_serial_configs"  (74.0ms) 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)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "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)  (0.2ms) rollback transaction  (191.2ms) DROP TABLE "extface_devices"  (90.6ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.3ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.7ms) DROP TABLE "extface_fiscal_print_drivers"  (99.2ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.6ms) DROP TABLE "extface_jobs"  (82.1ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (73.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (75.3ms) DROP TABLE "extface_pbx_cdr_drivers"  (98.9ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "extface_pos_print_drivers"  (90.8ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.7ms) DROP TABLE "extface_raw_drivers"  (107.2ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_serial_configs"  (82.3ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "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)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "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)  (0.1ms) rollback transaction  (104.9ms) DROP TABLE "extface_devices"  (98.9ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (92.0ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (82.1ms) DROP TABLE "extface_fiscal_print_drivers"  (82.5ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (82.1ms) DROP TABLE "extface_jobs"  (74.1ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (74.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.6ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.5ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (98.0ms) DROP TABLE "extface_pos_print_drivers"  (99.1ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_raw_drivers"  (82.7ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (75.1ms) DROP TABLE "extface_serial_configs"  (90.6ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) 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)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:33:58', '2014-02-21 20:33:58', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) 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)  (0.1ms) rollback transaction  (103.0ms) DROP TABLE "extface_devices"  (82.2ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.1ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.5ms) DROP TABLE "extface_fiscal_print_drivers"  (82.5ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.8ms) DROP TABLE "extface_jobs"  (75.4ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.5ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.0ms) DROP TABLE "extface_pbx_cdr_drivers"  (90.8ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.2ms) DROP TABLE "extface_pos_print_drivers"  (98.7ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_raw_drivers"  (82.5ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.3ms) DROP TABLE "extface_serial_configs"  (82.3ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (73.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.2ms) SELECT version FROM "schema_migrations"  (80.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20140221203517')  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) 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', 980190962, 'Shop', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:37:27', '2014-02-21 20:37:27', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:37:27', '2014-02-21 20:37:27', 298486374)  (91.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Processing by Extface::DevicesController#destroy as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (117.9ms) DROP TABLE "extface_devices"  (74.0ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (83.6ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (81.4ms) DROP TABLE "extface_fiscal_print_drivers"  (99.1ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.7ms) DROP TABLE "extface_jobs"  (82.2ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.6ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.8ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.7ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (74.2ms) DROP TABLE "extface_pos_print_drivers"  (74.5ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.7ms) DROP TABLE "extface_raw_drivers"  (90.7ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (83.1ms) DROP TABLE "extface_serial_configs"  (82.5ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.7ms) DROP TABLE "shops"  (82.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:39:16', '2014-02-21 20:39:16', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:39:16', '2014-02-21 20:39:16', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:39:16', '2014-02-21 20:39:16', 298486374)  (83.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Processing by Extface::DevicesController#destroy as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (513.3ms) DROP TABLE "extface_devices"  (130.0ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.4ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (90.2ms) DROP TABLE "extface_fiscal_print_drivers"  (74.4ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.8ms) DROP TABLE "extface_jobs"  (82.4ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (98.4ms) DROP TABLE "extface_pbx_cdr_drivers"  (98.8ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (89.6ms) DROP TABLE "extface_pos_print_drivers"  (83.9ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_raw_drivers"  (74.0ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_serial_configs"  (98.7ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "shops"  (82.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.2ms) 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', 298486374) Fixture Delete (0.2ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.2ms) 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', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:40:38', '2014-02-21 20:40:38', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:40:38', '2014-02-21 20:40:38', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:40:38', '2014-02-21 20:40:38', 298486374)  (89.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Processing by Extface::DevicesController#create as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Processing by Extface::DevicesController#destroy as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (120.5ms) DROP TABLE "extface_devices"  (91.0ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (98.8ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.6ms) DROP TABLE "extface_fiscal_print_drivers"  (74.4ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.5ms) DROP TABLE "extface_jobs"  (91.7ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.6ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.5ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.7ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.7ms) DROP TABLE "extface_pos_print_drivers"  (98.9ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.0ms) DROP TABLE "extface_raw_drivers"  (98.9ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (89.8ms) DROP TABLE "extface_serial_configs"  (82.3ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (89.9ms) DROP TABLE "shops"  (90.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:42:36', '2014-02-21 20:42:36', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:42:36', '2014-02-21 20:42:36', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:42:36', '2014-02-21 20:42:36', 298486374)  (87.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (110.3ms) DROP TABLE "extface_devices"  (107.0ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.0ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.6ms) DROP TABLE "extface_fiscal_print_drivers"  (74.1ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (90.5ms) DROP TABLE "extface_jobs"  (90.4ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.7ms) DROP TABLE "extface_pbx_cdr_drivers"  (83.9ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_pos_print_drivers"  (82.6ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (411.3ms) DROP TABLE "extface_raw_drivers"  (74.3ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_serial_configs"  (73.9ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (90.1ms) DROP TABLE "shops"  (82.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:43:06', '2014-02-21 20:43:06', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:43:06', '2014-02-21 20:43:06', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:43:06', '2014-02-21 20:43:06', 298486374)  (91.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Processing by Extface::DevicesController#create as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Processing by Extface::DevicesController#destroy as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (99.5ms) DROP TABLE "extface_devices"  (82.3ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.1ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (82.4ms) DROP TABLE "extface_fiscal_print_drivers"  (74.1ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.5ms) DROP TABLE "extface_jobs"  (82.4ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.4ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.4ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_pos_print_drivers"  (90.9ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_raw_drivers"  (92.3ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.4ms) DROP TABLE "extface_serial_configs"  (82.1ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (90.1ms) DROP TABLE "shops"  (82.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:43:19', '2014-02-21 20:43:19', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:43:19', '2014-02-21 20:43:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:43:19', '2014-02-21 20:43:19', 298486374)  (90.4ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (169.0ms) DROP TABLE "extface_devices"  (82.5ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.4ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.9ms) DROP TABLE "extface_fiscal_print_drivers"  (74.4ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (83.1ms) DROP TABLE "extface_jobs"  (74.1ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (98.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.6ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.6ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_pos_print_drivers"  (82.5ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.6ms) DROP TABLE "extface_raw_drivers"  (90.7ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (98.4ms) DROP TABLE "extface_serial_configs"  (90.6ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (73.2ms) DROP TABLE "shops"  (100.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.3ms) 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) Fixture Insert (0.2ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.2ms) 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', 980190962) Fixture Insert (0.2ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:43:27', '2014-02-21 20:43:27', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:43:27', '2014-02-21 20:43:27', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:43:27', '2014-02-21 20:43:27', 298486374)  (100.4ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (105.5ms) DROP TABLE "extface_devices"  (90.5ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.0ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (81.9ms) DROP TABLE "extface_fiscal_print_drivers"  (82.6ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.4ms) DROP TABLE "extface_jobs"  (82.5ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (73.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.7ms) DROP TABLE "extface_pbx_cdr_drivers"  (74.3ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (98.2ms) DROP TABLE "extface_pos_print_drivers"  (98.8ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_raw_drivers"  (92.0ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.3ms) DROP TABLE "extface_serial_configs"  (82.4ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "shops"  (74.1ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:45:41', '2014-02-21 20:45:41', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:45:41', '2014-02-21 20:45:41', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:45:41', '2014-02-21 20:45:41', 298486374)  (72.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (104.9ms) DROP TABLE "extface_devices"  (90.4ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (98.6ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.8ms) DROP TABLE "extface_fiscal_print_drivers"  (82.4ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (83.3ms) DROP TABLE "extface_jobs"  (82.4ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.7ms) DROP TABLE "extface_pbx_cdr_drivers"  (74.3ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "extface_pos_print_drivers"  (90.7ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (98.4ms) DROP TABLE "extface_raw_drivers"  (82.1ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_serial_configs"  (90.5ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.7ms) DROP TABLE "shops"  (82.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.3ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.2ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962) Fixture Insert (0.2ms) 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', 298486374) Fixture Delete (0.2ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:46:01', '2014-02-21 20:46:01', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:46:01', '2014-02-21 20:46:01', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:46:01', '2014-02-21 20:46:01', 298486374)  (72.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (130.3ms) DROP TABLE "extface_devices"  (82.5ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (98.8ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (90.3ms) DROP TABLE "extface_fiscal_print_drivers"  (82.5ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.8ms) DROP TABLE "extface_jobs"  (75.5ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.6ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (81.9ms) DROP TABLE "extface_pbx_cdr_drivers"  (90.9ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_pos_print_drivers"  (82.4ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.1ms) DROP TABLE "extface_raw_drivers"  (90.7ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (123.9ms) DROP TABLE "extface_serial_configs"  (98.9ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (90.3ms) DROP TABLE "shops"  (100.2ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.3ms) SELECT version FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962) Fixture Insert (0.2ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:46:34', '2014-02-21 20:46:34', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:46:34', '2014-02-21 20:46:34', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:46:34', '2014-02-21 20:46:34', 298486374)  (95.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (104.7ms) DROP TABLE "extface_devices"  (82.5ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (98.8ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (90.1ms) DROP TABLE "extface_fiscal_print_drivers"  (98.9ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.9ms) DROP TABLE "extface_jobs"  (90.7ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (90.3ms) DROP TABLE "extface_pbx_cdr_drivers"  (74.1ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (74.2ms) DROP TABLE "extface_pos_print_drivers"  (82.7ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.3ms) DROP TABLE "extface_raw_drivers"  (82.6ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (89.9ms) DROP TABLE "extface_serial_configs"  (98.9ms) 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)  (89.6ms) DROP TABLE "shops"  (74.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:46:44', '2014-02-21 20:46:44', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:46:44', '2014-02-21 20:46:44', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:46:44', '2014-02-21 20:46:44', 298486374)  (94.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (110.5ms) DROP TABLE "extface_devices"  (91.1ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.2ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.7ms) DROP TABLE "extface_fiscal_print_drivers"  (82.4ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (74.5ms) DROP TABLE "extface_jobs"  (90.8ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (73.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.0ms) DROP TABLE "extface_pbx_cdr_drivers"  (90.7ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "extface_pos_print_drivers"  (90.9ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_raw_drivers"  (82.3ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_serial_configs"  (82.3ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (98.1ms) DROP TABLE "shops"  (75.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:50:14', '2014-02-21 20:50:14', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:50:14', '2014-02-21 20:50:14', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:50:14', '2014-02-21 20:50:14', 298486374)  (88.3ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1  (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Processing by Extface::DevicesController#destroy as HTML Parameters: {"id"=>"980190962"} Shop Load (0.5ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 9ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (116.3ms) DROP TABLE "extface_devices"  (82.4ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.0ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (90.2ms) DROP TABLE "extface_fiscal_print_drivers"  (91.0ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.3ms) DROP TABLE "extface_jobs"  (90.6ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (83.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.4ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.6ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.3ms) DROP TABLE "extface_pos_print_drivers"  (90.8ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.3ms) DROP TABLE "extface_raw_drivers"  (82.6ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.4ms) DROP TABLE "extface_serial_configs"  (90.4ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (90.1ms) DROP TABLE "shops"  (90.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.2ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:51:22', '2014-02-21 20:51:22', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:51:22', '2014-02-21 20:51:22', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:51:22', '2014-02-21 20:51:22', 298486374)  (91.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.2ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (20.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 24ms (ActiveRecord: 20.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 7ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 34ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 6ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (106.4ms) DROP TABLE "extface_devices"  (90.6ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (74.1ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (81.8ms) DROP TABLE "extface_fiscal_print_drivers"  (90.8ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.1ms) DROP TABLE "extface_jobs"  (90.8ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (81.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (83.6ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.5ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_pos_print_drivers"  (73.9ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_raw_drivers"  (90.8ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "extface_serial_configs"  (90.4ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "shops"  (82.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:52:31', '2014-02-21 20:52:31', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:52:31', '2014-02-21 20:52:31', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:52:31', '2014-02-21 20:52:31', 298486374)  (80.8ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}} Completed 500 Internal Server Error in 0ms  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (118.4ms) DROP TABLE "extface_devices"  (90.8ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (106.7ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (82.0ms) DROP TABLE "extface_fiscal_print_drivers"  (82.6ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.5ms) DROP TABLE "extface_jobs"  (90.7ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (90.2ms) DROP TABLE "extface_pbx_cdr_drivers"  (90.8ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_pos_print_drivers"  (82.7ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (75.2ms) DROP TABLE "extface_raw_drivers"  (90.8ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "extface_serial_configs"  (82.2ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "shops"  (82.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:52:46', '2014-02-21 20:52:46', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:52:46', '2014-02-21 20:52:46', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:52:46', '2014-02-21 20:52:46', 298486374)  (84.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1  (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (20.0ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 24ms (ActiveRecord: 20.4ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 8ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 35ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (301.6ms) DROP TABLE "extface_devices"  (99.0ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.8ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (287.5ms) DROP TABLE "extface_fiscal_print_drivers"  (74.3ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (98.6ms) DROP TABLE "extface_jobs"  (90.5ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (83.7ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (74.0ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.7ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_pos_print_drivers"  (82.5ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_raw_drivers"  (74.2ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.9ms) DROP TABLE "extface_serial_configs"  (74.0ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (90.5ms) DROP TABLE "shops"  (90.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.4ms) SELECT version FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:55:02', '2014-02-21 20:55:02', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962) Fixture Insert (0.2ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:55:02', '2014-02-21 20:55:02', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:55:02', '2014-02-21 20:55:02', 298486374)  (78.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.2ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (20.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 25ms (ActiveRecord: 20.8ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 9ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 35ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (179.9ms) DROP TABLE "extface_devices"  (73.8ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (81.7ms) DROP TABLE "extface_fiscal_print_drivers"  (74.3ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.8ms) DROP TABLE "extface_jobs"  (90.5ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.6ms) DROP TABLE "extface_pbx_cdr_drivers"  (90.8ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (83.0ms) DROP TABLE "extface_pos_print_drivers"  (82.4ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.4ms) DROP TABLE "extface_raw_drivers"  (82.3ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.3ms) DROP TABLE "extface_serial_configs"  (90.5ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "shops"  (82.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:55:27', '2014-02-21 20:55:27', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:55:27', '2014-02-21 20:55:27', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:55:27', '2014-02-21 20:55:27', 298486374)  (78.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.2ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 28ms (ActiveRecord: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 7ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 34ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (102.3ms) DROP TABLE "extface_devices"  (74.1ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.5ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.6ms) DROP TABLE "extface_fiscal_print_drivers"  (82.6ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.7ms) DROP TABLE "extface_jobs"  (90.4ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.8ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.3ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.6ms) DROP TABLE "extface_pos_print_drivers"  (75.6ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "extface_raw_drivers"  (90.7ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_serial_configs"  (82.4ms) 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)  (164.0ms) DROP TABLE "shops"  (98.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 20:56:04', '2014-02-21 20:56:04', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:56:04', '2014-02-21 20:56:04', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 20:56:04', '2014-02-21 20:56:04', 298486374)  (91.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.2ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 31ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 8ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 41ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 6ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (100.5ms) DROP TABLE "extface_devices"  (74.0ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (148.1ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (90.2ms) DROP TABLE "extface_fiscal_print_drivers"  (90.8ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (75.2ms) DROP TABLE "extface_jobs"  (82.5ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.5ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.5ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.0ms) DROP TABLE "extface_pos_print_drivers"  (90.7ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.2ms) DROP TABLE "extface_raw_drivers"  (74.4ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "extface_serial_configs"  (90.7ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (98.7ms) DROP TABLE "shops"  (82.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:00:14', '2014-02-21 21:00:14', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:00:14', '2014-02-21 21:00:14', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:00:14', '2014-02-21 21:00:14', 298486374)  (83.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial", "name"=>"MyString", "uuid"=>"MyString"}} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1  (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 5ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 35ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.4ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 37ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 6ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (120.6ms) DROP TABLE "extface_devices"  (74.2ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.5ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (81.9ms) DROP TABLE "extface_fiscal_print_drivers"  (90.7ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.8ms) DROP TABLE "extface_jobs"  (82.4ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (98.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (91.6ms) DROP TABLE "extface_pbx_cdr_drivers"  (90.6ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "extface_pos_print_drivers"  (90.9ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_raw_drivers"  (90.7ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "extface_serial_configs"  (90.5ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (82.6ms) DROP TABLE "shops"  (82.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:00:48', '2014-02-21 21:00:48', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.0ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:00:48', '2014-02-21 21:00:48', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:00:48', '2014-02-21 21:00:48', 298486374)  (93.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial", "name"=>"MyString", "uuid"=>"MyString"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.2ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.2ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 32ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (29.6ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 41ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 6ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (107.4ms) DROP TABLE "extface_devices"  (90.6ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.1ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (82.1ms) DROP TABLE "extface_fiscal_print_drivers"  (90.6ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.7ms) DROP TABLE "extface_jobs"  (82.3ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (81.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.7ms) DROP TABLE "extface_pbx_cdr_drivers"  (74.3ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.5ms) DROP TABLE "extface_pos_print_drivers"  (73.9ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (83.5ms) DROP TABLE "extface_raw_drivers"  (91.0ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.5ms) DROP TABLE "extface_serial_configs"  (90.7ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "shops"  (82.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:01:08', '2014-02-21 21:01:08', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:01:08', '2014-02-21 21:01:08', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:01:08', '2014-02-21 21:01:08', 298486374)  (79.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial", "name"=>"MyString", "uuid"=>"MyString"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.2ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1  (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 500 Internal Server Error in 27ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 35ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (111.1ms) DROP TABLE "extface_devices"  (90.6ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.4ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (82.2ms) DROP TABLE "extface_fiscal_print_drivers"  (82.5ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.6ms) DROP TABLE "extface_jobs"  (82.1ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (74.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.0ms) DROP TABLE "extface_pbx_cdr_drivers"  (90.9ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "extface_pos_print_drivers"  (90.8ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (83.0ms) DROP TABLE "extface_raw_drivers"  (82.6ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (74.0ms) DROP TABLE "extface_serial_configs"  (82.6ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (90.6ms) DROP TABLE "shops"  (82.8ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:01:49', '2014-02-21 21:01:49', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:01:49', '2014-02-21 21:01:49', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:01:49', '2014-02-21 21:01:49', 298486374)  (77.5ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 51ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms) Completed 500 Internal Server Error in 19ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 48ms (Views: 46.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 6ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (104.8ms) DROP TABLE "extface_devices"  (124.8ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (97.3ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.8ms) DROP TABLE "extface_fiscal_print_drivers"  (82.6ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (75.3ms) DROP TABLE "extface_jobs"  (90.5ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.2ms) DROP TABLE "extface_pbx_cdr_drivers"  (74.3ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "extface_pos_print_drivers"  (74.0ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.1ms) DROP TABLE "extface_raw_drivers"  (90.9ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.7ms) DROP TABLE "extface_serial_configs"  (82.1ms) 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)  (82.5ms) DROP TABLE "shops"  (98.8ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962, 'Shop', 980190962, 'PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:02:01', '2014-02-21 21:02:01', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:02:01', '2014-02-21 21:02:01', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:02:01', '2014-02-21 21:02:01', 298486374)  (73.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.2ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) INSERT INTO "extface_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]] SQL (0.3ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 50ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Completed 500 Internal Server Error in 20ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 7ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 47ms (Views: 45.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 5ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (169.9ms) DROP TABLE "extface_devices"  (74.1ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.5ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (98.4ms) DROP TABLE "extface_fiscal_print_drivers"  (99.0ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.3ms) DROP TABLE "extface_jobs"  (82.3ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.6ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.6ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_pos_print_drivers"  (82.5ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.2ms) DROP TABLE "extface_raw_drivers"  (92.3ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "extface_serial_configs"  (99.1ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.6ms) DROP TABLE "shops"  (82.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.2ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:04:19', '2014-02-21 21:04:19', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:04:19', '2014-02-21 21:04:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:04:19', '2014-02-21 21:04:19', 298486374)  (81.4ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.9ms) 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]] SQL (0.3ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 50ms (ActiveRecord: 1.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 21ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 48ms (Views: 46.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 6ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (98.7ms) DROP TABLE "extface_devices"  (82.2ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.1ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (90.1ms) DROP TABLE "extface_fiscal_print_drivers"  (74.1ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (90.4ms) DROP TABLE "extface_jobs"  (92.0ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (98.7ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.6ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.3ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_pos_print_drivers"  (90.7ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "extface_raw_drivers"  (74.4ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.9ms) DROP TABLE "extface_serial_configs"  (73.8ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "shops"  (82.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:04:26', '2014-02-21 21:04:26', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:04:26', '2014-02-21 21:04:26', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:04:26', '2014-02-21 21:04:26', 298486374)  (90.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 49ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.7ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 21ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 7ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 48ms (Views: 45.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 6ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (157.3ms) DROP TABLE "extface_devices"  (82.3ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (74.1ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (82.1ms) DROP TABLE "extface_fiscal_print_drivers"  (82.8ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.6ms) DROP TABLE "extface_jobs"  (90.5ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.4ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.8ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.4ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (83.2ms) DROP TABLE "extface_pos_print_drivers"  (107.3ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "extface_raw_drivers"  (74.5ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.4ms) DROP TABLE "extface_serial_configs"  (90.5ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (98.5ms) DROP TABLE "shops"  (82.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:05:09', '2014-02-21 21:05:09', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:05:09', '2014-02-21 21:05:09', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:05:09', '2014-02-21 21:05:09', 298486374)  (96.3ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 27ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.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)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Job Load (0.1ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (124.6ms) DROP TABLE "extface_devices"  (90.4ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.5ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (90.4ms) DROP TABLE "extface_fiscal_print_drivers"  (98.9ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (89.9ms) DROP TABLE "extface_jobs"  (90.5ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (81.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.7ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.7ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.6ms) DROP TABLE "extface_pos_print_drivers"  (82.5ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.2ms) DROP TABLE "extface_raw_drivers"  (75.5ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_serial_configs"  (90.5ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (89.8ms) DROP TABLE "shops"  (90.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:06:08', '2014-02-21 21:06:08', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:06:08', '2014-02-21 21:06:08', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Drive::RawSerial', '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:06:08', '2014-02-21 21:06:08', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:06:08', '2014-02-21 21:06:08', 298486374)  (93.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 26ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (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)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 8ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Job Load (0.2ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (121.2ms) DROP TABLE "extface_devices"  (114.9ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.5ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.2ms) DROP TABLE "extface_fiscal_print_drivers"  (92.1ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.7ms) DROP TABLE "extface_jobs"  (82.0ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.7ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.7ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.0ms) DROP TABLE "extface_pos_print_drivers"  (90.8ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_raw_drivers"  (74.3ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_serial_configs"  (74.1ms) 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)  (89.7ms) DROP TABLE "shops"  (84.2ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.3ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:06:19', '2014-02-21 21:06:19', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:06:19', '2014-02-21 21:06:19', 298486374, 'Shop', 980190962, 'RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Drive::RawSerial', '2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:06:19', '2014-02-21 21:06:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:06:19', '2014-02-21 21:06:19', 298486374)  (84.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 26ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.6ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (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)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 10ms  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Job Load (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (86.2ms) DROP TABLE "extface_devices"  (74.4ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.5ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (82.0ms) DROP TABLE "extface_fiscal_print_drivers"  (90.9ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.8ms) DROP TABLE "extface_jobs"  (83.7ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.5ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.6ms) DROP TABLE "extface_pbx_cdr_drivers"  (90.7ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.0ms) DROP TABLE "extface_pos_print_drivers"  (82.1ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_raw_drivers"  (90.5ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_serial_configs"  (90.4ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (90.0ms) DROP TABLE "shops"  (82.3ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:07:19', '2014-02-21 21:07:19', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:07:19', '2014-02-21 21:07:19', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Drive::RawSerial', '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:07:19', '2014-02-21 21:07:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:07:19', '2014-02-21 21:07:19', 298486374)  (80.6ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 27ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (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)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::RawDriver Load (0.1ms) SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 500 Internal Server Error in 9ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Job Load (0.2ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (112.1ms) DROP TABLE "extface_devices"  (74.1ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (90.1ms) DROP TABLE "extface_fiscal_print_drivers"  (90.7ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (89.6ms) DROP TABLE "extface_jobs"  (90.8ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.5ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.3ms) DROP TABLE "extface_pbx_cdr_drivers"  (231.8ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (80.8ms) DROP TABLE "extface_pos_print_drivers"  (92.1ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.3ms) DROP TABLE "extface_raw_drivers"  (74.5ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_serial_configs"  (90.6ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (107.0ms) DROP TABLE "shops"  (82.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.3ms) 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) Fixture Insert (0.2ms) INSERT 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) Fixture Delete (0.2ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:07:41', '2014-02-21 21:07:41', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:07:41', '2014-02-21 21:07:41', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:07:41', '2014-02-21 21:07:41', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:07:41', '2014-02-21 21:07:41', 298486374)  (80.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.2ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 26ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (49.1ms) Completed 200 OK in 91ms (Views: 88.9ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::RawDriver Load (0.1ms) SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Job Load (0.2ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" IS NULL LIMIT 1 Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (101.1ms) DROP TABLE "extface_devices"  (82.4ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (75.3ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (98.4ms) DROP TABLE "extface_fiscal_print_drivers"  (107.2ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.7ms) DROP TABLE "extface_jobs"  (90.4ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.1ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.6ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.1ms) DROP TABLE "extface_pos_print_drivers"  (82.5ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.4ms) DROP TABLE "extface_raw_drivers"  (82.5ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (72.6ms) DROP TABLE "extface_serial_configs"  (75.7ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (89.9ms) DROP TABLE "shops"  (82.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:08:17', '2014-02-21 21:08:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:08:17', '2014-02-21 21:08:17', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:08:17', '2014-02-21 21:08:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:08:17', '2014-02-21 21:08:17', 298486374)  (80.5ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 25ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.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)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::RawDriver Load (0.1ms) SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 200 OK in 13ms (Views: 9.9ms | ActiveRecord: 0.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Job Load (0.2ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"MyString", "uuid"=>"MyString"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'MyString' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] 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)  (0.1ms) rollback transaction  (126.8ms) DROP TABLE "extface_devices"  (82.1ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.9ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.8ms) DROP TABLE "extface_fiscal_print_drivers"  (74.3ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.2ms) DROP TABLE "extface_jobs"  (83.8ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.4ms) DROP TABLE "extface_pbx_cdr_drivers"  (156.5ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "extface_pos_print_drivers"  (82.5ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_raw_drivers"  (74.2ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.9ms) DROP TABLE "extface_serial_configs"  (74.3ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (82.1ms) DROP TABLE "shops"  (82.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:08:40', '2014-02-21 21:08:40', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:08:40', '2014-02-21 21:08:40', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:08:40', '2014-02-21 21:08:40', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:08:40', '2014-02-21 21:08:40', 298486374)  (110.3ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 25ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (52.2ms) Completed 200 OK in 92ms (Views: 90.5ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::RawDriver Load (0.1ms) SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 200 OK in 13ms (Views: 10.4ms | ActiveRecord: 0.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Job Load (0.2ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.4ms) Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] 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)  (0.1ms) rollback transaction  (147.6ms) DROP TABLE "extface_devices"  (74.0ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (91.0ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (98.3ms) DROP TABLE "extface_fiscal_print_drivers"  (90.5ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.3ms) DROP TABLE "extface_jobs"  (99.0ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (81.8ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.2ms) DROP TABLE "extface_pbx_cdr_drivers"  (83.8ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "extface_pos_print_drivers"  (74.0ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_raw_drivers"  (73.8ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.0ms) DROP TABLE "extface_serial_configs"  (90.3ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (90.2ms) DROP TABLE "shops"  (107.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:09:19', '2014-02-21 21:09:19', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyString', 'MyString', '2014-02-21 21:09:19', '2014-02-21 21:09:19', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:09:19', '2014-02-21 21:09:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:09:19', '2014-02-21 21:09:19', 298486374)  (102.1ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 25ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.8ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (49.4ms) Completed 200 OK in 96ms (Views: 93.6ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::RawDriver Load (0.2ms) SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Job Load (0.2ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyString' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.3ms) Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] 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)  (0.1ms) rollback transaction  (108.7ms) DROP TABLE "extface_devices"  (74.3ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (98.8ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (82.2ms) DROP TABLE "extface_fiscal_print_drivers"  (90.8ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (90.1ms) DROP TABLE "extface_jobs"  (98.8ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (90.6ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.4ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.5ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_pos_print_drivers"  (82.6ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (75.1ms) DROP TABLE "extface_raw_drivers"  (90.8ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.0ms) DROP TABLE "extface_serial_configs"  (90.4ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.6ms) DROP TABLE "shops"  (82.5ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:10:02', '2014-02-21 21:10:02', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:10:02', '2014-02-21 21:10:02', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.2ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.2ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:10:02', '2014-02-21 21:10:02', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:10:02', '2014-02-21 21:10:02', 298486374)  (88.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 25ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (48.6ms) Completed 200 OK in 90ms (Views: 88.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::RawDriver Load (0.1ms) SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Job Load (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Fri, 21 Feb 2014 21:10:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 7ms (ActiveRecord: 0.8ms)  (0.1ms) rollback transaction  (110.7ms) DROP TABLE "extface_devices"  (74.3ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.2ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (90.2ms) DROP TABLE "extface_fiscal_print_drivers"  (92.2ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.6ms) DROP TABLE "extface_jobs"  (82.2ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.2ms) DROP TABLE "extface_pbx_cdr_drivers"  (82.6ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_pos_print_drivers"  (82.5ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_raw_drivers"  (90.8ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_serial_configs"  (90.7ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.5ms) DROP TABLE "shops"  (83.9ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.2ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.2ms) 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', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:10:20', '2014-02-21 21:10:20', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:10:20', '2014-02-21 21:10:20', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:10:20', '2014-02-21 21:10:20', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:10:20', '2014-02-21 21:10:20', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:20', '2014-02-21 21:10:20', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:10:20', '2014-02-21 21:10:20', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:10:20', '2014-02-21 21:10:20', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:10:20', '2014-02-21 21:10:20', 298486374)  (81.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.8ms) INSERT INTO "extface_raw_drivers" ("created_at", "type", "updated_at") VALUES (?, ?, ?) [["created_at", 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 25ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (49.8ms) Completed 200 OK in 90ms (Views: 88.4ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::RawDriver Load (0.2ms) SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.0ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Job Load (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (116.2ms) DROP TABLE "extface_devices"  (73.9ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (91.0ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (89.0ms) DROP TABLE "extface_fiscal_print_drivers"  (99.2ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.8ms) DROP TABLE "extface_jobs"  (90.7ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (83.1ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (74.0ms) DROP TABLE "extface_pbx_cdr_drivers"  (99.0ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_pos_print_drivers"  (74.2ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.5ms) DROP TABLE "extface_raw_drivers"  (90.8ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.8ms) DROP TABLE "extface_serial_configs"  (90.6ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (90.4ms) DROP TABLE "shops"  (82.7ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.1ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:11:10', '2014-02-21 21:11:10', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:11:10', '2014-02-21 21:11:10', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:11:10', '2014-02-21 21:11:10', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:11:10', '2014-02-21 21:11:10', 298486374)  (82.5ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (1.0ms) 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]] SQL (0.3ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 27ms (ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 4ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (48.6ms) Completed 200 OK in 90ms (Views: 87.7ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::RawDriver Load (0.1ms) SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Job Load (0.2ms) 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)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.3ms) UPDATE "extface_devices" SET "name" = ?, "updated_at" = ? WHERE "extface_devices"."id" = 980190962 [["name", "new_name"], ["updated_at", Fri, 21 Feb 2014 21:11:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (166.1ms) DROP TABLE "extface_devices"  (74.1ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (73.8ms) DROP TABLE "extface_fiscal_print_drivers"  (90.4ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.8ms) DROP TABLE "extface_jobs"  (98.6ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (106.9ms) DROP TABLE "extface_pbx_cdr_drivers"  (386.9ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.7ms) DROP TABLE "extface_pos_print_drivers"  (82.5ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (83.6ms) DROP TABLE "extface_raw_drivers"  (74.2ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.3ms) DROP TABLE "extface_serial_configs"  (90.4ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (98.5ms) DROP TABLE "shops"  (82.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:11:22', '2014-02-21 21:11:22', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:11:22', '2014-02-21 21:11:22', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.2ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:11:22', '2014-02-21 21:11:22', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:11:22', '2014-02-21 21:11:22', 298486374)  (84.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------- Extface::JobsControllerTest: test_should_create_job ---------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- Extface::JobsControllerTest: test_should_destroy_job ----------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Extface::JobsControllerTest: test_should_get_edit -------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- Extface::JobsControllerTest: test_should_get_index --------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ Extface::JobsControllerTest: test_should_get_new ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Extface::JobsControllerTest: test_should_show_job -------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::JobsControllerTest: test_should_update_job ---------------------------------------------------  (0.1ms) rollback transaction  (124.9ms) DROP TABLE "extface_devices"  (90.4ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.3ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (81.9ms) DROP TABLE "extface_fiscal_print_drivers"  (82.4ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.6ms) DROP TABLE "extface_jobs"  (82.1ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.2ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.6ms) DROP TABLE "extface_pbx_cdr_drivers"  (74.0ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.0ms) DROP TABLE "extface_pos_print_drivers"  (90.8ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.9ms) DROP TABLE "extface_raw_drivers"  (83.7ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.7ms) DROP TABLE "extface_serial_configs"  (82.2ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (89.9ms) DROP TABLE "shops"  (74.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:13:43', '2014-02-21 21:13:43', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:13:43', '2014-02-21 21:13:43', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:13:43', '2014-02-21 21:13:43', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:13:43', '2014-02-21 21:13:43', 298486374)  (82.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------- Extface::JobsControllerTest: test_should_show_job -------------------------------------------------  (0.1ms) rollback transaction  (165.5ms) DROP TABLE "extface_devices"  (73.7ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.4ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (82.0ms) DROP TABLE "extface_fiscal_print_drivers"  (82.4ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (75.4ms) DROP TABLE "extface_jobs"  (82.3ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.3ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (74.0ms) DROP TABLE "extface_pbx_cdr_drivers"  (74.4ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.8ms) DROP TABLE "extface_pos_print_drivers"  (74.2ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (90.3ms) DROP TABLE "extface_raw_drivers"  (90.8ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.6ms) DROP TABLE "extface_serial_configs"  (82.2ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (81.3ms) DROP TABLE "shops"  (84.0ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:14:03', '2014-02-21 21:14:03', 298486374) Fixture Delete (0.2ms) DELETE FROM "extface_devices" Fixture Insert (0.2ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "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) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:14:03', '2014-02-21 21:14:03', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.2ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.2ms) 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) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:14:03', '2014-02-21 21:14:03', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:14:03', '2014-02-21 21:14:03', 298486374)  (145.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------- Extface::JobsControllerTest: test_should_show_job ------------------------------------------------- Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]  (0.1ms) rollback transaction Completed in 3ms  (107.1ms) DROP TABLE "extface_devices"  (74.0ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (181.0ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (98.4ms) DROP TABLE "extface_fiscal_print_drivers"  (90.7ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (73.6ms) DROP TABLE "extface_jobs"  (82.4ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (82.0ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (82.0ms) DROP TABLE "extface_pbx_cdr_drivers"  (90.9ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (74.8ms) DROP TABLE "extface_pos_print_drivers"  (74.1ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (106.4ms) DROP TABLE "extface_raw_drivers"  (90.6ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (98.3ms) DROP TABLE "extface_serial_configs"  (90.8ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (82.1ms) DROP TABLE "shops"  (82.4ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:14:18', '2014-02-21 21:14:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:14:18', '2014-02-21 21:14:18', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.2ms) 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', 980190962) Fixture Insert (0.2ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:14:18', '2014-02-21 21:14:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:14:18', '2014-02-21 21:14:18', 298486374)  (94.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------- Extface::JobsControllerTest: test_should_show_job ------------------------------------------------- Extface::Job Load (0.3ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]  (0.1ms) rollback transaction Completed in 3ms  (117.0ms) DROP TABLE "extface_devices"  (82.7ms) CREATE TABLE "extface_devices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uuid" varchar(255), "name" varchar(255), "extfaceable_id" integer, "extfaceable_type" varchar(255), "driveable_id" integer, "driveable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (82.0ms) CREATE INDEX "index_extface_devices_on_driveable_id_and_driveable_type" ON "extface_devices" ("driveable_id", "driveable_type")  (75.0ms) DROP TABLE "extface_fiscal_print_drivers"  (90.6ms) CREATE TABLE "extface_fiscal_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)   (81.7ms) DROP TABLE "extface_jobs"  (107.1ms) CREATE TABLE "extface_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "device_id" integer, "created_at" datetime, "updated_at" datetime, "description" varchar(255), "error" varchar(255), "failed_at" datetime, "completed_at" datetime, "connected_at" datetime)   (81.9ms) CREATE INDEX "index_extface_jobs_on_device_id" ON "extface_jobs" ("device_id")  (73.5ms) DROP TABLE "extface_pbx_cdr_drivers"  (90.7ms) CREATE TABLE "extface_pbx_cdr_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.6ms) DROP TABLE "extface_pos_print_drivers"  (82.5ms) CREATE TABLE "extface_pos_print_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (73.4ms) DROP TABLE "extface_raw_drivers"  (82.6ms) CREATE TABLE "extface_raw_drivers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "created_at" datetime, "updated_at" datetime)  (81.4ms) DROP TABLE "extface_serial_configs"  (82.2ms) CREATE TABLE "extface_serial_configs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "s_configureable_id" integer, "s_configureable_type" varchar(255), "serial_boud_rate" integer, "serial_data_length" integer, "serial_parity_check" integer, "serial_stop_bits" integer, "serial_handshake" integer, "created_at" datetime, "updated_at" datetime)  (75.1ms) DROP TABLE "shops"  (82.6ms) CREATE TABLE "shops" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) SELECT version FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "extface_pos_print_drivers" Fixture Insert (0.2ms) INSERT INTO "extface_pos_print_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::StarScp700', '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "extface_pbx_cdr_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_pbx_cdr_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_serial_configs" Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_serial_configs" ("s_configureable_id", "serial_boud_rate", "serial_data_length", "serial_parity_check", "serial_stop_bits", "serial_handshake", "created_at", "updated_at", "id") VALUES (NULL, 1, 1, 1, 1, 1, '2014-02-21 21:14:29', '2014-02-21 21:14:29', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_devices" Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID1', 'MyString1', '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962, 'Shop', 980190962, 'Extface::PosPrintDriver', 980190962) Fixture Insert (0.1ms) INSERT INTO "extface_devices" ("uuid", "name", "created_at", "updated_at", "id", "extfaceable_type", "extfaceable_id", "driveable_type", "driveable_id") VALUES ('MyUUID2', 'MyString2', '2014-02-21 21:14:29', '2014-02-21 21:14:29', 298486374, 'Shop', 980190962, 'Extface::RawDriver', 980190962) Fixture Delete (0.1ms) DELETE FROM "extface_raw_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_raw_drivers" ("type", "created_at", "updated_at", "id") VALUES ('Extface::Driver::RawSerial', '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.1ms) DELETE FROM "extface_fiscal_print_drivers" Fixture Insert (0.1ms) INSERT INTO "extface_fiscal_print_drivers" ("type", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "extface_jobs" Fixture Insert (0.1ms) INSERT INTO "extface_jobs" ("device_id", "created_at", "updated_at", "id") VALUES (NULL, '2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962) Fixture Insert (0.1ms) 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', 298486374) Fixture Delete (0.0ms) DELETE FROM "shops" Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:14:29', '2014-02-21 21:14:29', 980190962) Fixture Insert (0.1ms) INSERT INTO "shops" ("created_at", "updated_at", "id") VALUES ('2014-02-21 21:14:29', '2014-02-21 21:14:29', 298486374)  (94.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_create_device --------------------------------------------------------- Extface::Device Load (0.3ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.2ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#create as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"driver"=>"Extface::Driver::RawSerial"}} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" IS NULL AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.9ms) 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]] SQL (0.2ms) INSERT INTO "extface_devices" ("created_at", "driveable_id", "driveable_type", "extfaceable_id", "extfaceable_type", "name", "updated_at", "uuid") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190963 Completed 302 Found in 25ms (ActiveRecord: 1.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- Extface::DevicesControllerTest: test_should_destroy_device ---------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT COUNT(*) FROM "extface_devices" Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#destroy as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.2ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "extface_devices" WHERE "extface_devices"."id" = ? [["id", 980190962]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices Completed 302 Found in 3ms (ActiveRecord: 0.6ms)  (0.1ms) SELECT COUNT(*) FROM "extface_devices"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- Extface::DevicesControllerTest: test_should_get_edit ---------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#edit as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.5ms) Extface::PosPrintDriver Load (0.2ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Rendered /home/alex/workspace/extface/app/views/extface/driver/star_scp700/_settings.html.erb (0.4ms) Rendered /home/alex/workspace/extface/app/views/extface/serial_configs/_settings.html.erb (2.9ms) Completed 200 OK in 68ms (Views: 66.4ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- Extface::DevicesControllerTest: test_should_get_index ----------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#index as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::RawDriver Load (0.1ms) SELECT "extface_raw_drivers".* FROM "extface_raw_drivers" WHERE "extface_raw_drivers"."id" = ? ORDER BY "extface_raw_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- Extface::DevicesControllerTest: test_should_get_new --------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#new as HTML Parameters: {"shop_id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Rendered /home/alex/workspace/extface/app/views/extface/application/_object_errors.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- Extface::DevicesControllerTest: test_should_show_device ------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#show as HTML Parameters: {"shop_id"=>"980190962", "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]] Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Extface::PosPrintDriver Load (0.1ms) SELECT "extface_pos_print_drivers".* FROM "extface_pos_print_drivers" WHERE "extface_pos_print_drivers"."id" = ? ORDER BY "extface_pos_print_drivers"."id" ASC LIMIT 1 [["id", 980190962]] Extface::Job Load (0.2ms) 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)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- Extface::DevicesControllerTest: test_should_update_device --------------------------------------------------------- Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."id" = ? LIMIT 1 [["id", 980190962]] Shop Load (0.0ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = ? ORDER BY "shops"."id" ASC LIMIT 1 [["id", 980190962]] Processing by Extface::DevicesController#update as HTML Parameters: {"shop_id"=>"980190962", "device"=>{"name"=>"new_name"}, "id"=>"980190962"} Shop Load (0.1ms) SELECT "shops".* FROM "shops" WHERE "shops"."id" = 980190962 LIMIT 1 Extface::Device Load (0.1ms) SELECT "extface_devices".* FROM "extface_devices" WHERE "extface_devices"."extfaceable_id" = ? AND "extface_devices"."extfaceable_type" = ? AND "extface_devices"."id" = ? LIMIT 1 [["extfaceable_id", 980190962], ["extfaceable_type", "Shop"], ["id", "980190962"]]  (0.0ms) SAVEPOINT active_record_1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."name" = 'new_name' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 Extface::Device Exists (0.1ms) SELECT 1 AS one FROM "extface_devices" WHERE ("extface_devices"."uuid" = 'MyUUID1' AND "extface_devices"."id" != 980190962 AND "extface_devices"."extfaceable_id" = 980190962 AND "extface_devices"."extfaceable_type" = 'Shop') LIMIT 1 SQL (0.3ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/shop_extface/devices/980190962 Completed 302 Found in 6ms (ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Extface::JobsControllerTest: test_should_show_job ------------------------------------------------- Extface::Job Load (0.2ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", 980190962]] Processing by Extface::JobsController#show as HTML Parameters: {"id"=>"980190962"} Extface::Job Load (0.1ms) SELECT "extface_jobs".* FROM "extface_jobs" WHERE "extface_jobs"."id" = ? LIMIT 1 [["id", "980190962"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ExtfaceTest: test_truth -----------------------  (0.1ms) rollback transaction Completed in 6ms