(0.2ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (9.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateFoos (20140714145102)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attribute_one" varchar(255), "attribute_two" integer, "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140714145102"]]  (0.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attribute_one" varchar(255), "attribute_two" integer, "created_at" datetime, "updated_at" datetime)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140714145102') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------- ReportTest: test_the_truth --------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------- ReportsControllerTest: test_the_truth -------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth -------------------------------------------- Processing by Admin::ReportsController#index as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth -------------------------------------------- Processing by Admin::ReportsController#index as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth -------------------------------------------- Processing by Admin::ReportsController#index as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth -------------------------------------------- Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (7.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Completed 500 Internal Server Error in 53ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth -------------------------------------------- Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Completed 500 Internal Server Error in 37ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth -------------------------------------------- Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Report Load (0.2ms) SELECT "reports".* FROM "reports" ORDER BY created_at DESC, id DESC LIMIT 30 OFFSET 0 Completed 500 Internal Server Error in 289ms  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth -------------------------------------------- Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Report Load (0.2ms) SELECT "reports".* FROM "reports" ORDER BY created_at DESC, id DESC LIMIT 30 OFFSET 0 Completed 500 Internal Server Error in 30ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth -------------------------------------------- Processing by Admin::ReportsController#index as HTML  (0.3ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.7ms) Report Load (0.2ms) SELECT "reports".* FROM "reports" ORDER BY created_at DESC, id DESC LIMIT 30 OFFSET 0 Completed 500 Internal Server Error in 41ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth --------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth -------------------------------------------- Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (7.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Report Load (0.2ms) SELECT "reports".* FROM "reports" ORDER BY created_at DESC, id DESC LIMIT 30 OFFSET 0 Completed 500 Internal Server Error in 76ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth -------------------------------------------- Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Report Load (0.2ms) SELECT "reports".* FROM "reports" ORDER BY created_at DESC, id DESC LIMIT 30 OFFSET 0 Completed 500 Internal Server Error in 58ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------- Admin::ReportsControllerTest: test_the_truth -------------------------------------------- Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (2.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (1.1ms) Completed 200 OK in 37ms (Views: 35.2ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Report Load (0.3ms) SELECT "reports".* FROM "reports" ORDER BY created_at DESC, id DESC LIMIT 30 OFFSET 0 Completed 500 Internal Server Error in 72ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (2.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Report Load (0.2ms) SELECT "reports".* FROM "reports" ORDER BY created_at DESC, id DESC LIMIT 30 OFFSET 0 Completed 500 Internal Server Error in 62ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.6ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Report Load (0.2ms) SELECT "reports".* FROM "reports" ORDER BY created_at DESC, id DESC LIMIT 30 OFFSET 0 Completed 500 Internal Server Error in 64ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (2.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.9ms) Completed 200 OK in 30ms (Views: 28.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 27ms (Views: 23.4ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.0ms) Completed 500 Internal Server Error in 33ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.2ms) Completed 500 Internal Server Error in 33ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 52ms (Views: 50.2ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (37.2ms) Completed 500 Internal Server Error in 43ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 63ms (Views: 61.1ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 36ms (Views: 33.7ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 28ms (Views: 25.1ms | ActiveRecord: 1.5ms) Report Load (0.2ms) SELECT "reports".* FROM "reports" ORDER BY created_at DESC, id DESC LIMIT 30 OFFSET 0  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 22ms (Views: 19.7ms | ActiveRecord: 0.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.9ms) Completed 200 OK in 26ms (Views: 24.1ms | ActiveRecord: 0.9ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 33ms (Views: 29.8ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (67.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 77ms (Views: 76.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 28ms (Views: 25.2ms | ActiveRecord: 1.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"order_presenter", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (30.4ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 14:47:05 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "order_presenter"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 14:47:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 34ms (ActiveRecord: 30.5ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (30.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 58ms (Views: 55.5ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (18.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 26ms (Views: 25.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"order_presenter", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 15:06:36 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "order_presenter"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 15:06:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 7ms (ActiveRecord: 2.5ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in [:foo]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.1ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"order_presenter", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (5.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in [:foo]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (27.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 51ms (Views: 47.7ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (21.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 29.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"order_presenter", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (5.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in [:foo]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.6ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (18.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 25.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"order_presenter", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (5.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in [:foo]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (30.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 53ms (Views: 50.3ms | ActiveRecord: 1.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (22.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 28.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 15:16:41 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 15:16:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in [:foo]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.7ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 32ms (Views: 31.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 15:17:34 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 15:17:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 6ms (ActiveRecord: 2.1ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in [:foo]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.0ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (18.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 24.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 15:18:23 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 15:18:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in [:foo]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 52ms (Views: 48.9ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (18.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 24.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (6.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in [:foo]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 51ms (Views: 47.0ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (18.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 25ms (Views: 24.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 15:19:47 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 15:19:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in [:foo]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 53ms (Views: 50.4ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 15:31:20 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 15:31:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 2.1ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (1.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 56ms (Views: 53.1ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 22.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 15:31:52 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 15:31:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 47ms (Views: 45.0ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 15:36:37 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 15:36:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (34.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 58ms (Views: 53.7ms | ActiveRecord: 2.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (18.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:14:04 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 16:14:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.3ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:15:09 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 16:15:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.2ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:16:38 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 16:16:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (30.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 55ms (Views: 52.0ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (18.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 25ms (Views: 24.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:17:13 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 16:17:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 6ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.4ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:17:42 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 16:17:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (30.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 52ms (Views: 49.1ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (19.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 28ms (Views: 27.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:25:19 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 16:25:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (27.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 46ms (Views: 44.0ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (21.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 28.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:25:57 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 16:25:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 7ms (ActiveRecord: 2.3ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 51ms (Views: 47.2ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (18.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:27:26 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 16:27:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (27.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 47ms (Views: 44.7ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:28:08 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 16:28:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.0ms) SELECT COUNT(*) FROM "reports"  (7.7ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "report_type", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:28:08 UTC +00:00], ["report_type", "foo"], ["updated_at", Thu, 17 Jul 2014 16:28:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.0ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:35:48 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 16:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "reports" ("created_at", "report_type", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:35:48 UTC +00:00], ["report_type", "foo"], ["updated_at", Thu, 17 Jul 2014 16:35:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (5.5ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.5ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 24ms (Views: 23.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:36:05 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 16:36:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "report_type", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Jul 2014 16:36:05 UTC +00:00], ["report_type", "foo"], ["updated_at", Thu, 17 Jul 2014 16:36:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (27.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 46ms (Views: 44.0ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 17:08:51 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 17:08:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.0ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "report_type", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Jul 2014 17:08:51 UTC +00:00], ["report_type", "foo"], ["updated_at", Thu, 17 Jul 2014 17:08:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML Completed 500 Internal Server Error in 3ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 71ms (Views: 70.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 18:02:22 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 18:02:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 6ms (ActiveRecord: 2.1ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "report_type", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Jul 2014 18:02:22 UTC +00:00], ["report_type", "foo"], ["updated_at", Thu, 17 Jul 2014 18:02:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.7ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 27ms (Views: 26.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 18:02:59 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 18:02:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 7ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "report_type", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Jul 2014 18:02:59 UTC +00:00], ["report_type", "foo"], ["updated_at", Thu, 17 Jul 2014 18:02:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (28.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.3ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 18:03:16 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 18:03:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- ReportTest: test_: Report should serialize :fields. ----------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "report_type", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Jul 2014 18:03:16 UTC +00:00], ["report_type", "foo"], ["updated_at", Thu, 17 Jul 2014 18:03:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (32.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 55ms (Views: 51.1ms | ActiveRecord: 1.5ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (24.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 33ms (Views: 31.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Thu, 17 Jul 2014 18:08:30 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Thu, 17 Jul 2014 18:08:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 6ms (ActiveRecord: 2.2ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- ReportTest: test_: Report should serialize :fields. ----------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "report_type", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 17 Jul 2014 18:08:30 UTC +00:00], ["report_type", "foo"], ["updated_at", Thu, 17 Jul 2014 18:08:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.5ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (31.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 67ms (Views: 63.8ms | ActiveRecord: 1.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (25.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 36ms (Views: 35.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 12:15:55 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 12:15:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 2.1ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "report_type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 18 Jul 2014 12:15:55 UTC +00:00], ["report_type", "foo"], ["updated_at", Fri, 18 Jul 2014 12:15:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (30.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 52ms (Views: 49.4ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (18.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 25.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 14:08:58 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 14:08:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["foo"]. -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "reports" ("created_at", "report_type", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 18 Jul 2014 14:08:58 UTC +00:00], ["report_type", "foo"], ["updated_at", Fri, 18 Jul 2014 14:08:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 ----------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of report_type in ["FooReport"]. -----------------------------------------------------------------------------------  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_2  (0.0ms) ROLLBACK TO SAVEPOINT active_record_2  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) SAVEPOINT active_record_1 ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_2 SQL (2.2ms) INSERT INTO "reports" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 18 Jul 2014 16:03:25 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 16:03:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_2  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "reports" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 18 Jul 2014 16:05:17 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 16:05:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (19.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 78ms (Views: 75.8ms | ActiveRecord: 0.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 16:09:37 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 16:09:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 18 Jul 2014 16:09:37 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 16:09:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (19.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 68ms (Views: 65.8ms | ActiveRecord: 0.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 16:10:00 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 16:10:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 18 Jul 2014 16:10:00 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 16:10:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (31.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 51ms (Views: 48.8ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (22.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 32ms (Views: 31.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 16:10:18 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 16:10:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 7ms (ActiveRecord: 2.5ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 18 Jul 2014 16:10:18 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 16:10:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 51ms (Views: 47.9ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (18.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 16:18:02 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 16:18:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 18 Jul 2014 16:18:02 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 16:18:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.9ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo_report", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "report_type", "to_date", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 18 Jul 2014 16:18:23 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["report_type", "foo_report"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 16:18:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=Report id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Fri, 18 Jul 2014 16:18:23 UTC +00:00], ["updated_at", Fri, 18 Jul 2014 16:18:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 49ms (Views: 46.0ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo_report", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.9ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo_report", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.7ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo_report", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 2ms  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.7ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 22.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo_report", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (30.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 50ms (Views: 47.3ms | ActiveRecord: 1.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"report_type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 24ms (Views: 23.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"report_type"=>"foo_report", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (30.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 51ms (Views: 48.7ms | ActiveRecord: 1.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (15.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 21.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"foo_report", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 48ms (Views: 45.7ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 21.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 60ms (Views: 58.2ms | ActiveRecord: 1.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 22.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 62ms (Views: 59.3ms | ActiveRecord: 1.6ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (19.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 26.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.5ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 69ms (Views: 65.2ms | ActiveRecord: 2.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (37.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 47ms (Views: 46.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 59ms (Views: 56.1ms | ActiveRecord: 1.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (8.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 73ms (Views: 69.4ms | ActiveRecord: 2.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (30.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 40ms (Views: 39.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- ReportTest: test_: a Report should know what class it's reporting on. ----------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.9ms) Completed 200 OK in 56ms (Views: 53.7ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 22.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (11.6ms) Completed 500 Internal Server Error in 42ms  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (22.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 40ms (Views: 38.5ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 56ms (Views: 53.5ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 27.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 54ms (Views: 52.0ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 22.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.9ms) Completed 200 OK in 71ms (Views: 67.9ms | ActiveRecord: 2.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (35.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 46ms (Views: 45.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReports"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReports"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (32.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 63ms (Views: 60.5ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (32.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 41ms (Views: 40.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 2ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReports"]. -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 50ms (Views: 47.7ms | ActiveRecord: 0.9ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 22.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 12ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReports"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 49ms (Views: 46.1ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (7.9ms) Completed 500 Internal Server Error in 11ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReports"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (1.4ms) Completed 200 OK in 60ms (Views: 57.3ms | ActiveRecord: 1.8ms)  (0.2ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (7.8ms) Completed 500 Internal Server Error in 11ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"Admin::ReportsControllerTest::FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (37.8ms) Completed 500 Internal Server Error in 49ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReports"]. -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 56ms (Views: 53.5ms | ActiveRecord: 1.5ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (3.4ms) Completed 500 Internal Server Error in 6ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"Admin::ReportsControllerTest::FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (2.3ms) Completed 500 Internal Server Error in 21ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReports"]. -----------------------------------------------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 59ms (Views: 57.0ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (7.7ms) Completed 500 Internal Server Error in 11ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"Admin::ReportsControllerTest::FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (37.4ms) Completed 500 Internal Server Error in 48ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReports"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.9ms) Completed 200 OK in 59ms (Views: 56.0ms | ActiveRecord: 1.6ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Parameters: {"type"=>"foo_report"} Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (8.6ms) Completed 500 Internal Server Error in 12ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"Admin::ReportsControllerTest::FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (38.6ms) Completed 500 Internal Server Error in 48ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReports"]. -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 53ms (Views: 50.9ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.0ms) Completed 500 Internal Server Error in 23ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"Admin::ReportsControllerTest::FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (38.5ms) Completed 500 Internal Server Error in 47ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReports"]. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 52ms (Views: 49.6ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (13.4ms) Completed 500 Internal Server Error in 17ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"Admin::ReportsControllerTest::FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (37.6ms) Completed 500 Internal Server Error in 45ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 52ms (Views: 50.1ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (13.8ms) Completed 500 Internal Server Error in 18ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"Admin::ReportsControllerTest::FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (37.7ms) Completed 500 Internal Server Error in 46ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 53ms (Views: 50.4ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (12.9ms) Completed 500 Internal Server Error in 17ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"Admin::ReportsControllerTest::FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (37.7ms) Completed 500 Internal Server Error in 46ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 51ms (Views: 49.0ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (12.3ms) Completed 500 Internal Server Error in 17ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"Admin::ReportsControllerTest::FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (37.9ms) Completed 500 Internal Server Error in 45ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (32.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 59ms (Views: 55.9ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 31ms (Views: 30.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (30.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 50ms (Views: 46.9ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 22.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (30.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 51ms (Views: 47.9ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (18.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 25ms (Views: 24.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (29.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 50ms (Views: 47.8ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 22.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (31.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 52ms (Views: 48.3ms | ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 22.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (31.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 51ms (Views: 48.6ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (19.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 25.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "reports" ("created_at", "from_date", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 14:46:56 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 14:46:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ Admin::ReportsControllerTest: test_get_to_#index ------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.0ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 56ms (Views: 53.1ms | ActiveRecord: 1.0ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- Admin::ReportsControllerTest: test_get_to_#new_with_report_type --------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 24ms (Views: 23.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- Admin::ReportsControllerTest: test_post_to_create -------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 14:47:50 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 14:47:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 8ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.8ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 56ms (Views: 53.6ms | ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (16.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 23ms (Views: 22.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "reports" ("created_at", "from_date", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 14:57:33 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 14:57:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 10ms (ActiveRecord: 2.2ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 53ms (Views: 50.6ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (17.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 24.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "reports" ("created_at", "from_date", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 14:59:06 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 14:59:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 9ms (ActiveRecord: 2.2ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 32ms (Views: 29.7ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (50.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 60ms (Views: 59.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "reports" ("created_at", "from_date", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 15:13:27 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 15:13:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 10ms (ActiveRecord: 2.1ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (1.3ms) Completed 200 OK in 35ms (Views: 32.3ms | ActiveRecord: 1.5ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (62.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 69ms (Views: 68.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 15:43:02 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 15:43:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 11ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 29ms (Views: 26.7ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (54.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 61ms (Views: 60.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 15:44:16 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 15:44:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 11ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.9ms) Completed 200 OK in 31ms (Views: 28.2ms | ActiveRecord: 1.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (50.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 58ms (Views: 57.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 15:44:56 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 15:44:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 11ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (7.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 39ms (Views: 36.2ms | ActiveRecord: 2.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (53.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.0/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 60ms (Views: 59.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 16:16:50 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 16:16:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 11ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 60ms (Views: 57.6ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (26.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 37ms (Views: 36.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 16:25:26 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 16:25:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 15ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 62ms (Views: 30.4ms | ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 27.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (3.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 16:43:09 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 16:43:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 50ms (ActiveRecord: 3.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 64ms (Views: 28.9ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (22.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 34ms (Views: 33.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 16:43:27 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 16:43:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 58ms (ActiveRecord: 3.1ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 59ms (Views: 26.9ms | ActiveRecord: 1.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 27.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 16:44:22 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 16:44:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 48ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 16:44:22 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 16:44:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.2ms) Completed 200 OK in 58ms (Views: 25.1ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (21.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 28.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 16:45:07 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 16:45:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 46ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 16:45:07 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 16:45:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 62ms (Views: 30.5ms | ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 26.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 16:57:39 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 16:57:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 46ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 23 Jul 2014 16:57:39 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Wed, 23 Jul 2014 16:57:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (12.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 72ms (Views: 38.1ms | ActiveRecord: 2.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (36.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 44ms (Views: 43.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 10:15:43 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 10:15:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 49ms (ActiveRecord: 3.4ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 10:15:43 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 10:15:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 53ms (Views: 23.8ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 26.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 10:15:52 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 10:15:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 44ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 10:15:52 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 10:15:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 60ms (Views: 28.0ms | ActiveRecord: 3.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (26.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 33ms (Views: 32.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 12:52:58 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 12:52:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 46ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 12:52:58 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 12:52:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 42ms (Views: 38.9ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (37.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 49ms (Views: 48.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:56:13 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:56:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 57ms (ActiveRecord: 2.4ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:56:13 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:56:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (7.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.9ms) Completed 200 OK in 39ms (Views: 36.1ms | ActiveRecord: 1.9ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (33.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.3ms) Completed 200 OK in 47ms (Views: 45.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:56:40 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:56:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 57ms (ActiveRecord: 2.7ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:56:40 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:56:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 30ms (Views: 26.7ms | ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (25.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 32ms (Views: 31.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.2ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:57:13 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:57:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 51ms (ActiveRecord: 2.2ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:57:13 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:57:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 26ms (Views: 23.6ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 26.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:57:47 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:57:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 46ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:57:47 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:57:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:57:47 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:57:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 28ms (Views: 25.7ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (25.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 34ms (Views: 33.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:58:25 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:58:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 50ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:58:25 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:58:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:58:25 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:58:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.9ms) Completed 200 OK in 26ms (Views: 23.7ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (27.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 34ms (Views: 33.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:59:09 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:59:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 46ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:59:09 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:59:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 14:59:09 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 14:59:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 46ms (Views: 42.7ms | ActiveRecord: 2.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (26.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 36ms (Views: 35.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 15:44:44 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 15:44:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 51ms (ActiveRecord: 2.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 15:44:44 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 15:44:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 15:44:44 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 15:44:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 25ms (Views: 22.9ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (22.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 30.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 15:47:01 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 15:47:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 48ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 15:47:01 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 15:47:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 15:47:01 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 15:47:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: Report should enqueue CSV generation task. --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.3ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (7.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 40ms (Views: 36.8ms | ActiveRecord: 2.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (54.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 61ms (Views: 60.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:07:57 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:07:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 14ms (ActiveRecord: 3.4ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:07:57 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:07:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:07:57 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:07:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: Report should enqueue CSV generation task. --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.1ms) Completed 200 OK in 32ms (Views: 29.4ms | ActiveRecord: 1.5ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (21.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 28.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:08:46 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:08:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 13ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:08:46 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:08:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:08:46 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:08:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: Report should enqueue CSV generation task. --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 29ms (Views: 26.4ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (21.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 27.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:09:21 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 13ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:09:22 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:09:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:09:22 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:09:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: Report should enqueue CSV generation task. --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.4ms) Completed 200 OK in 33ms (Views: 30.6ms | ActiveRecord: 1.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (23.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 33ms (Views: 32.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (3.0ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:47:26 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:47:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 20ms (ActiveRecord: 3.2ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:47:26 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:47:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:47:26 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:47:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: Report should enqueue CSV generation task. --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- ReportTest: test_: Report should generate a csv. -------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.9ms) Completed 200 OK in 29ms (Views: 26.9ms | ActiveRecord: 1.2ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (21.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 32ms (Views: 30.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:48:19 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:48:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 12ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:48:19 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:48:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:48:19 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:48:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: Report should enqueue CSV generation task. --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- ReportTest: test_: Report should generate a csv. -------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.1ms) Completed 200 OK in 38ms (Views: 35.2ms | ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (25.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 32ms (Views: 31.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:52:30 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:52:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 17ms (ActiveRecord: 2.6ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:52:30 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:52:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 16:52:30 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 16:52:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: Report should enqueue CSV generation task. --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- ReportTest: test_: Report should generate a csv. -------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 30ms (Views: 27.8ms | ActiveRecord: 1.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (50.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 57ms (Views: 56.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 17:26:09 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 17:26:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 16ms (ActiveRecord: 3.4ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 17:26:09 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 17:26:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 24 Jul 2014 17:26:09 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Thu, 24 Jul 2014 17:26:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: Report should enqueue CSV generation task. --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ReportTest: test_: Report should generate a csv. -------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.3ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 43ms (Views: 39.3ms | ActiveRecord: 2.5ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (38.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.4ms) Completed 200 OK in 50ms (Views: 49.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (3.5ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:16:25 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:16:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 17ms (ActiveRecord: 3.7ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- ReportTest: test_: Report should add a task to the default queue after commit. -------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:16:25 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:16:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should default to the pending state. ---------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:16:25 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:16:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: Report should enqueue CSV generation task. --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- ReportTest: test_: Report should generate a csv. -------------------------------------------------  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 29ms (Views: 27.3ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (25.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 32ms (Views: 31.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:19:13 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:19:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 48ms (ActiveRecord: 2.1ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:19:13 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:19:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:19:13 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:19:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:19:13 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:19:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:19:13 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:19:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 27ms (Views: 23.9ms | ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 25.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:20:17 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:20:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 48ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:20:17 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:20:17 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:20:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:20:17 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:20:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:20:17 UTC +00:00], ["state", "pending"], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:20:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 27ms (Views: 24.6ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 27.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:20:35 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "FooReport"], ["updated_at", Fri, 25 Jul 2014 07:20:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=FooReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 45ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["FooReport"]. ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 28ms (Views: 25.7ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (25.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 33ms (Views: 32.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"FooReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (19.8ms) Completed 500 Internal Server Error in 68ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:21:50 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:21:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:21:50 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:21:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:21:50 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:21:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:21:50 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:21:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (19.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 25.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}} Completed 500 Internal Server Error in 34ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:22:35 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:22:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:22:35 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:22:35 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:22:35 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 28ms (Views: 25.4ms | ActiveRecord: 1.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (21.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 28ms (Views: 27.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:12 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 46ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:12 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:12 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:12 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:12 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 26ms (Views: 24.2ms | ActiveRecord: 1.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (19.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 25.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:45 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 45ms (ActiveRecord: 2.3ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (5.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:45 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:45 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:45 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:45 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 26.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:50 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 45ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:50 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:50 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:50 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:23:50 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:23:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 31ms (Views: 28.8ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 26.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:24:49 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:24:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 46ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:24:49 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:24:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:24:49 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:24:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:24:49 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:24:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:24:49 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:24:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 31ms (Views: 28.4ms | ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 25.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:27:56 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:27:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 47ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:27:56 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:27:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:27:56 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:27:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:27:56 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:27:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:27:56 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:27:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:27:56 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:27:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 61ms (Views: 58.5ms | ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (29.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 37ms (Views: 36.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:29:22 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:29:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 44ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:29:22 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:29:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:29:22 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:29:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:29:22 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:29:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:29:22 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:29:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:29:22 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:29:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 55ms (Views: 53.7ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (19.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 25.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:30:16 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:30:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 45ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:30:17 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:30:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:30:17 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:30:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:30:17 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:30:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:30:17 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:30:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:30:17 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:30:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 56ms (Views: 54.5ms | ActiveRecord: 1.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (22.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 31ms (Views: 30.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:31:40 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:31:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 54ms (ActiveRecord: 2.5ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:31:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:31:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:31:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:31:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:31:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:31:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:31:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:31:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:31:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:31:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 55ms (Views: 53.0ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (21.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 29ms (Views: 28.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:32:37 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:32:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 45ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:32:37 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:32:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:32:37 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:32:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:32:37 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:32:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:32:37 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:32:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:32:37 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:32:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 55ms (Views: 53.3ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (19.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 25.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 45ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:34:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 57ms (Views: 54.7ms | ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (19.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 25.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 47ms (ActiveRecord: 2.2ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 56ms (Views: 54.2ms | ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 26.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 47ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:35:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.5ms) Completed 200 OK in 61ms (Views: 59.0ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (25.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 30.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 46ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 07:55:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 53ms (Views: 51.1ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (20.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 26.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 48ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.9ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 08:23:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.1ms) Completed 200 OK in 45ms (Views: 42.2ms | ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (27.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 70ms (Views: 68.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 13ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:12:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 28ms (Views: 25.4ms | ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (53.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 60ms (Views: 59.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 17ms (ActiveRecord: 2.3ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:13:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-20140725-11168-1f42c17.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/ed521d569eaa52f81fcd6696af01d43e20140725-11168-1tit02f.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/ed521d569eaa52f81fcd6696af01d43e20140725-11168-xvq678.csv'  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-20140725-11242-190qs8a.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/a23c8e73d03b2fc6d227ce8ca384925020140725-11242-1w8hniq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/a23c8e73d03b2fc6d227ce8ca384925020140725-11242-m5ycw1.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-20140725-11287-7ylgl8.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/f0b3fe99588bf0a7970aab641987f56d20140725-11287-mfdy84.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/f0b3fe99588bf0a7970aab641987f56d20140725-11287-1hqztqo.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-20140725-11341-137lxcs.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/8ec5a0f90e7043b15c7dabd89762592b20140725-11341-2e3icp.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/8ec5a0f90e7043b15c7dabd89762592b20140725-11341-1sran97.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-20140725-11385-1yve61l.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/2ac2e07aa44fe75af3cdc622827e845d20140725-11385-11prirx.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/2ac2e07aa44fe75af3cdc622827e845d20140725-11385-1l8lz3t.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-20140725-11436-1jsv1eu.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/4da346a93ecb1cfc77c2e6fbf885e94d20140725-11436-k85yoz.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/4da346a93ecb1cfc77c2e6fbf885e94d20140725-11436-g9nv2k.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-20140725-11510-1duf1x2.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/cf5eb0980f10159f47548b8ba2122a3e20140725-11510-ryxgem.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/cf5eb0980f10159f47548b8ba2122a3e20140725-11510-wyk5qg.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-20140725-11569-k7ukzu.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/efc4f685bf69fd4c7b9c28a2316abbdb20140725-11569-1xwkm4l.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/efc4f685bf69fd4c7b9c28a2316abbdb20140725-11569-1cpm5z7.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-20140725-11600-uk05pi.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/56516126cecb859c3cde4c2cf46c38d720140725-11600-we5of1.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/56516126cecb859c3cde4c2cf46c38d720140725-11600-tn95c7.csv'  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:30:37 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:30:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:30:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-11703-1t34ce3.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/ce1bd37749599bf7aad9a93b8c97208020140725-11703-1g2jvbe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/ce1bd37749599bf7aad9a93b8c97208020140725-11703-1tw7szw.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-11703-1t34ce3.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:30:37 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:30:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:30:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.1ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:31:03 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:31:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:31:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-11758-11vfuck.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/d48de64eabf1f38a1178295d64d8c79020140725-11758-1kxbm62.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/d48de64eabf1f38a1178295d64d8c79020140725-11758-12n7g2r.csv' SQL (0.4ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-11758-11vfuck.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:31:03 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:31:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:31:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (5.9ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:31:31 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:31:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:31:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-11788-1w6zso2.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/756f2c3df4d62aa68b4d2ef64b75239c20140725-11788-51c6l7.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/756f2c3df4d62aa68b4d2ef64b75239c20140725-11788-zctqyk.csv' SQL (0.6ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-11788-1w6zso2.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:31:31 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:31:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:31:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (5.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (4.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:31:45 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-11817-1yqli5s.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/1d6103dfb129ffdfbb586edb422f507b20140725-11817-p58xpi.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/1d6103dfb129ffdfbb586edb422f507b20140725-11817-m7h27p.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-11817-1yqli5s.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:31:45 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:31:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:31:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (4.0ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:32:07 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:32:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:32:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-11853-1vxxvr9.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/d44734f8e2ed3b3d9e4307904e080e3120140725-11853-119nxn4.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/d44734f8e2ed3b3d9e4307904e080e3120140725-11853-1lp76pn.csv' SQL (0.4ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-11853-1vxxvr9.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:32:07 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:32:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:32:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (4.1ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:34:14 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:34:14 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:34:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-11941-1nwgzsn.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/18c0feba9afcaf455b7cd8e5b013883d20140725-11941-381rp1.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/18c0feba9afcaf455b7cd8e5b013883d20140725-11941-ujgrn0.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-11941-1nwgzsn.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:34:14 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:34:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:34:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (3.9ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.3ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:34:28 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:34:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:34:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-11973-rybaz6.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/b8a30077bdc1627924066c2b223950e520140725-11973-2o1r2v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/b8a30077bdc1627924066c2b223950e520140725-11973-1bidsf1.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-11973-rybaz6.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:34:28 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:34:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:34:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 26ms (Views: 24.0ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (56.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 63ms (Views: 62.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 18ms (ActiveRecord: 2.2ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- ConfigurationTest: test_: Configuration should successfully create a report. -----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-12033-azrsog.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/0fd5a012fb5a436b73eb16dc90dff6c820140725-12033-14obx64.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/0fd5a012fb5a436b73eb16dc90dff6c820140725-12033-13kwvo4.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-12033-azrsog.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.3ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:35:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 25ms (Views: 22.9ms | ActiveRecord: 1.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (64.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 72ms (Views: 71.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 13ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-12119-57giz6.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/58bf2e0af81e7780d8ad923d0f8ffdb220140725-12119-zll7h.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/58bf2e0af81e7780d8ad923d0f8ffdb220140725-12119-3l3msl.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-12119-57giz6.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 26ms (Views: 23.8ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (53.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 61ms (Views: 60.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 13ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-12200-1o8ea07.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/a508190c6f1960c567d00c11cd711c5b20140725-12200-150xeqc.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/a508190c6f1960c567d00c11cd711c5b20140725-12200-yujnkw.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-12200-1o8ea07.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:36:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (52.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 59ms (Views: 58.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 17ms (ActiveRecord: 3.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-12277-1ixp0qb.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/9aa5f0e8048eff2a7ecf36a74a2d8de420140725-12277-16if6eq.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/9aa5f0e8048eff2a7ecf36a74a2d8de420140725-12277-1ra9b5c.csv' SQL (0.4ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-12277-1ixp0qb.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.3ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a basic report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:37:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 31ms (Views: 27.5ms | ActiveRecord: 1.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (61.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 70ms (Views: 69.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 19ms (ActiveRecord: 2.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-12478-ofv2b6.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/12dbe2dbc6ac2b61110ae0551eb3c9a820140725-12478-ro2l2o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/12dbe2dbc6ac2b61110ae0551eb3c9a820140725-12478-12wbrm7.csv' SQL (0.6ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-12478-ofv2b6.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.3ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ ReportTest: test_: Report should ensure inclusion of type in ["BasicReport"]. ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:40:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (53.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 60ms (Views: 59.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:51 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:40:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 12ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-12567-1cg2iua.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/800d546f0b2815fce4daa47712e0fc1520140725-12567-1xjpx7u.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/800d546f0b2815fce4daa47712e0fc1520140725-12567-8knw9h.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-12567-1cg2iua.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:40:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 31ms (Views: 28.7ms | ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (58.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 65ms (Views: 64.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 13ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-12676-13ls1nj.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/58f119aeecb325e36950d7f5122f9bc320140725-12676-1eyiwpe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/58f119aeecb325e36950d7f5122f9bc320140725-12676-1b57s38.csv' SQL (0.7ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-12676-13ls1nj.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.3ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:41:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (53.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 61ms (Views: 60.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-12792-klj0lf.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/d1df6011aeba671754c3298860439b7a20140725-12792-pca2d3.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/d1df6011aeba671754c3298860439b7a20140725-12792-afvqd1.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-12792-klj0lf.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.3ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:43:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 27ms (Views: 23.9ms | ActiveRecord: 2.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (54.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 61ms (Views: 60.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-12831-eilkca.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/0e19a516a73eaa3f891d91592b66ed5720140725-12831-1etivwy.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/0e19a516a73eaa3f891d91592b66ed5720140725-12831-aqyiqp.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-12831-eilkca.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.3ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:43:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.9ms) Completed 200 OK in 31ms (Views: 29.4ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (54.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 61ms (Views: 60.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-13281-3mjgy5.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/bff2498cc87e8ee1d7ce044e5f042c8320140725-13281-1uhmjez.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/bff2498cc87e8ee1d7ce044e5f042c8320140725-13281-12b338t.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-13281-3mjgy5.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 14:53:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 37ms (Views: 33.9ms | ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (56.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 64ms (Views: 63.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-13657-a8rjzl.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/25572fffb5b0f1d3007692e09c152a2920140725-13657-1o185c8.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/25572fffb5b0f1d3007692e09c152a2920140725-13657-1r1ul3l.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-13657-a8rjzl.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 15:08:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 27ms (Views: 24.6ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (58.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 67ms (Views: 66.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 17ms (ActiveRecord: 2.4ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-14037-1yfo4h2.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/6a6286f815b3b7c71975d27943c5e07020140725-14037-1fg3axr.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/6a6286f815b3b7c71975d27943c5e07020140725-14037-j83kox.csv' SQL (0.4ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-14037-1yfo4h2.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 15:14:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 27ms (Views: 24.7ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (55.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 64ms (Views: 62.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 18ms (ActiveRecord: 3.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140725-14912-4uaidr.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/f46324fb8682bb7ae168c9e67d6787a420140725-14912-hewo6o.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/f46324fb8682bb7ae168c9e67d6787a420140725-14912-11eyjj6.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140725-14912-4uaidr.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 15:27:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 27ms (Views: 24.3ms | ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (53.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 61ms (Views: 60.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 25 Jul 2014 15:40:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.5ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (7.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 38ms (Views: 34.7ms | ActiveRecord: 2.4ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (77.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 85ms (Views: 84.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 15ms (ActiveRecord: 3.3ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 12:35:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 34ms (Views: 31.5ms | ActiveRecord: 1.5ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (57.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 65ms (Views: 63.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 15ms (ActiveRecord: 2.2ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 13:03:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 29ms (Views: 26.6ms | ActiveRecord: 1.5ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (53.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 60ms (Views: 59.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 13ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 13:03:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 27ms (Views: 24.6ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (52.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 58ms (Views: 58.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140728-18793-kcbbpf.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/6e03ca5daa8d4c24824de377f01c2a9b20140728-18793-1rrc6dt.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/6e03ca5daa8d4c24824de377f01c2a9b20140728-18793-1l4witf.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140728-18793-kcbbpf.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 10], ["csv_updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 13:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (9.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.2ms) Completed 200 OK in 61ms (Views: 57.4ms | ActiveRecord: 2.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (58.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 65ms (Views: 64.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:18:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 26ms (Views: 24.4ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (56.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 64ms (Views: 63.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 13ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:19:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (54.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 61ms (Views: 60.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 12ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:22:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.0ms) Completed 200 OK in 31ms (Views: 28.9ms | ActiveRecord: 1.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (55.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 63ms (Views: 61.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 17ms (ActiveRecord: 2.2ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140728-20625-19290b8.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/16c3f9fb7bcda67e56f33d7398fcdbe120140728-20625-3woz8a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/16c3f9fb7bcda67e56f33d7398fcdbe120140728-20625-1bp2rmq.csv' SQL (0.6ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140728-20625-19290b8.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.3ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:22:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.6ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 28ms (Views: 24.9ms | ActiveRecord: 1.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (53.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 60ms (Views: 59.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 13ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140728-20776-1sta47q.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/db74a647a08e46aa5151e79fe699ea7320140728-20776-1s3xsxk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/db74a647a08e46aa5151e79fe699ea7320140728-20776-2c0v23.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140728-20776-1sta47q.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:27:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (3.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (54.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 61ms (Views: 60.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 12ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140728-21049-1blxell.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/b84071c12e478e407dee71a3f041b09920140728-21049-mf4ty7.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/b84071c12e478e407dee71a3f041b09920140728-21049-n5t4qf.csv' SQL (0.4ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140728-21049-1blxell.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Mon, 28 Jul 2014 15:38:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 37ms (Views: 34.1ms | ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (62.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 71ms (Views: 70.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (3.0ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 15ms (ActiveRecord: 3.1ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140731-46372-ma59lg.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/a696ad21242084c2eb2a6749cbb45a6920140731-46372-2wa52.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/a696ad21242084c2eb2a6749cbb45a6920140731-46372-18ivag.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140731-46372-ma59lg.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.3ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 13:04:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (7.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 45ms (Views: 42.6ms | ActiveRecord: 1.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (56.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 63ms (Views: 62.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 14ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140731-48797-1tg3mqm.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/5c098d39755c08b47bdd014a5afe84e020140731-48797-18y4wxf.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/5c098d39755c08b47bdd014a5afe84e020140731-48797-nuylxp.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140731-48797-1tg3mqm.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 13:32:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.5ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 37ms (Views: 34.1ms | ActiveRecord: 1.8ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (58.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 67ms (Views: 66.4ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 17ms (ActiveRecord: 2.2ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 15:37:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (7.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 29ms (Views: 26.4ms | ActiveRecord: 2.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (52.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 61ms (Views: 60.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 13ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 15:37:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 28ms (Views: 26.0ms | ActiveRecord: 1.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (62.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 71ms (Views: 70.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 15ms (ActiveRecord: 2.4ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_failed"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 15:49:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.5ms) Completed 200 OK in 25ms (Views: 23.1ms | ActiveRecord: 1.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (53.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 61ms (Views: 60.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 16ms (ActiveRecord: 2.5ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140731-50755-on0x3h.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/efe6187a95e1fe5119197a47e18ce33a20140731-50755-12h5iru.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/efe6187a95e1fe5119197a47e18ce33a20140731-50755-1g883wh.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140731-50755-on0x3h.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Thu, 31 Jul 2014 15:55:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 35ms (Views: 33.0ms | ActiveRecord: 1.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (60.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 67ms (Views: 66.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 13ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120140808-32333-ymqxvx.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/b44a51d4e522961a39954b32d3d48dc920140808-32333-afgr7g.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/b44a51d4e522961a39954b32d3d48dc920140808-32333-125po3o.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120140808-32333-ymqxvx.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 08 Aug 2014 10:35:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.1ms) Completed 200 OK in 42ms (Views: 38.8ms | ActiveRecord: 2.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (67.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 77ms (Views: 76.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 14ms (ActiveRecord: 2.2ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120150107-84011-1nzmkkf.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/7cbb8e4daca6486435facbdee6bc0b1620150107-84011-jpw1wy.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/7cbb8e4daca6486435facbdee6bc0b1620150107-84011-1ph0t0x.csv' SQL (0.4ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120150107-84011-1nzmkkf.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Wed, 07 Jan 2015 16:24:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (4.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 26ms (Views: 24.1ms | ActiveRecord: 1.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (58.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 65ms (Views: 64.7ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 13ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120150107-84258-aco5oo.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/61fc219c253694520814e7f59ff993b220150107-84258-aema8v.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/61fc219c253694520814e7f59ff993b220150107-84258-a7iwm7.csv' SQL (0.4ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120150107-84258-aco5oo.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.1ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Wed, 07 Jan 2015 16:31:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.2ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.8ms) Completed 200 OK in 42ms (Views: 38.8ms | ActiveRecord: 2.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (75.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 84ms (Views: 83.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.0ms) SAVEPOINT active_record_1 SQL (3.6ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 18ms (ActiveRecord: 3.7ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (1.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should send report for download. ----------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#download as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120150109-92199-1c3uizm.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/ccdd44975f8cec1d219d5c191b74352a20150109-92199-1agtrqj.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/ccdd44975f8cec1d219d5c191b74352a20150109-92199-1f93tie.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120150109-92199-1c3uizm.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 14:57:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (7.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.9ms) Completed 200 OK in 47ms (Views: 42.9ms | ActiveRecord: 2.9ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (72.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 84ms (Views: 83.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 19ms (ActiveRecord: 3.0ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should send report for download. ----------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#download as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 560ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120150109-92307-1jucotf.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/d610e686d5da708aca70f99621e5489120150109-92307-wlc6ml.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/d610e686d5da708aca70f99621e5489120150109-92307-16a70fr.csv' SQL (0.5ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120150109-92307-1jucotf.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00], ["updated_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 15:04:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 15:04:42 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 15:04:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 09 Jan 2015 15:04:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 09 Jan 2015 15:04:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 15:04:42 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 15:04:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 15:04:42 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 15:04:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 15:04:42 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 15:04:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.4ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (7.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.1ms) Completed 200 OK in 51ms (Views: 47.7ms | ActiveRecord: 2.5ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (74.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 84ms (Views: 82.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.8ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 14ms (ActiveRecord: 2.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should send report for download. ----------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#download as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120150109-92670-1efwuon.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/dd0dcfe3f753e931b5772dc2c22997c020150109-92670-1ijr3gk.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/dd0dcfe3f753e931b5772dc2c22997c020150109-92670-15ip3ob.csv' SQL (0.4ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120150109-92670-1efwuon.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00], ["updated_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:02:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 09 Jan 2015 16:02:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 09 Jan 2015 16:02:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:25 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 16:02:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:25 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 16:02:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:25 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 16:02:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (7.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.6ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.1ms) Completed 200 OK in 44ms (Views: 40.4ms | ActiveRecord: 2.0ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (71.9ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.1ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 82ms (Views: 81.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 21ms (ActiveRecord: 2.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should send report for download. ----------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#download as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120150109-92726-8odl61.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/9a5bed819759c921c4b48024900eb60220150109-92726-1e5x1jt.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/9a5bed819759c921c4b48024900eb60220150109-92726-fbs6er.csv' SQL (0.4ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120150109-92726-8odl61.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 16:02:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (6.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.6ms) Completed 200 OK in 33ms (Views: 30.0ms | ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (62.3ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.2ms) Completed 200 OK in 69ms (Views: 68.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 20ms (ActiveRecord: 3.5ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (8.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should send report for download. ----------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#download as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 1ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120150109-92858-1gy1ocg.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/64f588a49c0ac249955e84af0b3872ee20150109-92858-1s8f68a.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/64f588a49c0ac249955e84af0b3872ee20150109-92858-kll9xw.csv' SQL (0.6ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120150109-92858-1gy1ocg.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00], ["updated_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:14:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.4ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:14:54 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:14:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 09 Jan 2015 16:14:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 09 Jan 2015 16:14:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.6ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:14:54 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 16:14:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:14:54 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 16:14:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:14:54 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 16:14:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.2ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (5.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.7ms) Completed 200 OK in 31ms (Views: 27.8ms | ActiveRecord: 1.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (55.7ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 64ms (Views: 63.0ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.2ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 15ms (ActiveRecord: 2.9ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (7.6ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should send report for download. ----------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#download as HTML Parameters: {"id"=>"1"} Completed 500 Internal Server Error in 0ms  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120150109-92897-6z77hs.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/cc23cbbe13f74eb2f4a4bfc9c340f11d20150109-92897-iaqw6j.csv'  (0.2ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/cc23cbbe13f74eb2f4a4bfc9c340f11d20150109-92897-1j66p9t.csv' SQL (0.4ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120150109-92897-6z77hs.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Fri, 09 Jan 2015 16:15:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #index. ------------------------------------------------------------------------------------ Processing by Admin::ReportsController#index as HTML  (0.1ms) SELECT COUNT(*) FROM "reports" Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/index.html.erb within layouts/admin (8.8ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.5ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (1.1ms) Completed 200 OK in 47ms (Views: 43.1ms | ActiveRecord: 2.7ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should get to #new with report type. --------------------------------------------------------------------------------------------------- Processing by Admin::ReportsController#new as HTML Rendered /Users/rodreegez/Projects/mint_reporter/app/views/admin/reports/_form.html.erb (62.4ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_html_js.html.erb (0.0ms) Rendered /Users/rodreegez/Projects/mint_reporter/.bundle/gems/ruby/2.0.0/gems/mint_admin-0.2.1/app/views/layouts/_admin_nav.html.erb (0.1ms) Completed 200 OK in 69ms (Views: 68.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- Admin::ReportsControllerTest: test_: Admin::ReportsController should post to create. -------------------------------------------------------------------------------------  (0.1ms) SELECT COUNT(*) FROM "reports" Processing by Admin::ReportsController#create as HTML Parameters: {"report"=>{"type"=>"BasicReport", "from_date(1i)"=>"2014", "from_date(2i)"=>"7", "from_date(3i)"=>"17", "from_date(4i)"=>"13", "from_date(5i)"=>"39", "to_date(1i)"=>"2014", "to_date(2i)"=>"7", "to_date(3i)"=>"17", "to_date(4i)"=>"13", "to_date(5i)"=>"39"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "reports" ("created_at", "from_date", "state", "to_date", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00], ["from_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["state", "pending"], ["to_date", Thu, 17 Jul 2014 13:39:00 UTC +00:00], ["type", "BasicReport"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 [admin] action=create type=BasicReport id=1 remote_ip=0.0.0.0 user= Redirected to http://test.host/admin/reports Completed 302 Found in 15ms (ActiveRecord: 2.3ms)  (0.1ms) SELECT COUNT(*) FROM "reports"  (1.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ ConfigurationTest: test_accepts_paperclip_config ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- ConfigurationTest: test_accepts_reports_config ----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- CreateReportTest: test_: CreateReport should successfully create a report. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/report-120150721-92531-popqiv.csv' Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/fed09d1bca70ceabbd6261f93bb4aede20150721-92531-1orspfe.csv'  (0.1ms) SAVEPOINT active_record_1 Command :: file -b --mime '/var/folders/fm/rrxd76992qz1gw8dz8rqxmgr0000gn/T/fed09d1bca70ceabbd6261f93bb4aede20150721-92531-3zs93.csv' SQL (0.4ms) UPDATE "reports" SET "csv_file_name" = ?, "csv_content_type" = ?, "csv_file_size" = ?, "csv_updated_at" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["csv_file_name", "report-120150721-92531-popqiv.csv"], ["csv_content_type", "text/plain"], ["csv_file_size", 22], ["csv_updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 BasicReport Load (0.2ms) SELECT "reports".* FROM "reports" WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- MintReportGeneratorTest: test_generate_Report ---------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------- MintReporterTest: test_truth ----------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: Report should ensure inclusion of type in ["BasicReport", "BlankReport"]. ---------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- ReportTest: test_: Report should have an attachment named csv. ---------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- ReportTest: test_: with a basic report should add a task to the default queue after commit. --------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- ReportTest: test_: with a basic report should default to the pending state. ----------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- ReportTest: test_: with a basic report should enqueue CSV generation task. ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- ReportTest: test_: with a basic report should generate a csv. --------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00], ["state", "pending"], ["type", "BasicReport"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "generating_csv"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "reports" SET "state" = ?, "updated_at" = ? WHERE "reports"."type" IN ('BasicReport') AND "reports"."id" = 1 [["state", "csv_generated"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- ReportTest: test_: with a blank report should raise an error on asking for csv column names. ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for csv row. ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ ReportTest: test_: with a blank report should raise an error on asking for records. ------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "reports" ("created_at", "state", "type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00], ["state", "pending"], ["type", "BlankReport"], ["updated_at", Tue, 21 Jul 2015 20:49:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction