clark_kent 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/clark_kent/reports_controller.rb +5 -1
- data/app/models/clark_kent/report.rb +1 -0
- data/app/views/clark_kent/reports/_edit.html.erb +2 -1
- data/lib/clark_kent/version.rb +1 -1
- data/test/controllers/clark_kent/reports_controller_test.rb +12 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +2613 -0
- metadata +2 -2
data/test/dummy/log/test.log
CHANGED
@@ -50387,3 +50387,2616 @@ ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing
|
|
50387
50387
|
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50388
50388
|
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
50389
50389
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
50390
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
50391
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)[0m
|
50392
|
+
[1m[35m (0.5ms)[0m [1m[34mselect sqlite_version(*)[0m
|
50393
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
50394
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar)[0m
|
50395
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
50396
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
50397
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
50398
|
+
FROM sqlite_master
|
50399
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
50400
|
+
UNION ALL
|
50401
|
+
SELECT sql
|
50402
|
+
FROM sqlite_temp_master
|
50403
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
50404
|
+
[0m
|
50405
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
50406
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)[0m
|
50407
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
50408
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
50409
|
+
FROM sqlite_master
|
50410
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
50411
|
+
UNION ALL
|
50412
|
+
SELECT sql
|
50413
|
+
FROM sqlite_temp_master
|
50414
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
50415
|
+
[0m
|
50416
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
50417
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)[0m
|
50418
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
50419
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
50420
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer)[0m
|
50421
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
50422
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
50423
|
+
[1m[35m (1.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
50424
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
50425
|
+
('20131226170042'),
|
50426
|
+
('20131226170112'),
|
50427
|
+
('20140114010048'),
|
50428
|
+
('20140129051754'),
|
50429
|
+
('20150304233739');
|
50430
|
+
|
50431
|
+
[0m
|
50432
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
50433
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
50434
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
50435
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-02-21 17:08:09 UTC], ["updated_at", 2017-02-21 17:08:09 UTC]]
|
50436
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
50437
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
50438
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
50439
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
50440
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50441
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-02-21 17:08:09 UTC], ["updated_at", 2017-02-21 17:08:09 UTC]]
|
50442
|
+
[1m[35m (1.4ms)[0m [1m[36mcommit transaction[0m
|
50443
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50444
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50445
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
50446
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
50447
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50448
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "id"], ["column_order", 2]]
|
50449
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
50450
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50451
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50452
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "amount"], ["column_order", 3]]
|
50453
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
50454
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
50455
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50456
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "description"], ["column_order", 4]]
|
50457
|
+
[1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
|
50458
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50459
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
50460
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
50461
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50462
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?)[0m [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
50463
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
50464
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50465
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "orders" ("user_id", "amount", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["amount", 1], ["description", "Guitar strings"], ["created_at", 2017-02-21 17:08:09 UTC], ["updated_at", 2017-02-21 17:08:09 UTC]]
|
50466
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
50467
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50468
|
+
--------------------------------------------------------------------------
|
50469
|
+
ClarkKent::ReportableTest: test_0003_doesn't blow up if order_sql is blank
|
50470
|
+
--------------------------------------------------------------------------
|
50471
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50472
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-02-21 17:08:09 UTC], ["updated_at", 2017-02-21 17:08:09 UTC]]
|
50473
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50474
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50475
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
50476
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50477
|
+
[1m[36mClarkKent::ReportColumn Load (0.3ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
50478
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
50479
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
50480
|
+
[1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
|
50481
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50482
|
+
------------------------------------------------------------------------
|
50483
|
+
ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
50484
|
+
------------------------------------------------------------------------
|
50485
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50486
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "Order"], ["created_at", 2017-02-21 17:08:09 UTC], ["updated_at", 2017-02-21 17:08:09 UTC]]
|
50487
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50488
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
50489
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
50490
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
50491
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
50492
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50493
|
+
--------------------------------------------------------------------------
|
50494
|
+
ClarkKent::ReportableTest: test_0002_it works without any required filters
|
50495
|
+
--------------------------------------------------------------------------
|
50496
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50497
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-02-21 17:08:09 UTC], ["updated_at", 2017-02-21 17:08:09 UTC]]
|
50498
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50499
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
50500
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
50501
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
50502
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
50503
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50504
|
+
------------------------------------------------------------------------------------------------
|
50505
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
50506
|
+
------------------------------------------------------------------------------------------------
|
50507
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50508
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
50509
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
50510
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
50511
|
+
--------------------------------------------------------------------------------
|
50512
|
+
ClarkKent::ReportsControllerTest: test_0004_should render errors during creation
|
50513
|
+
--------------------------------------------------------------------------------
|
50514
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50515
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50516
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50517
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50518
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50519
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
50520
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
50521
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50522
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
50523
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
50524
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50525
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50526
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (49.9ms)
|
50527
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (58.0ms)
|
50528
|
+
Completed 409 Conflict in 247ms (Views: 244.3ms | ActiveRecord: 0.4ms)
|
50529
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT ?[0m [["name", "delete me"], ["LIMIT", 1]]
|
50530
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
50531
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50532
|
+
------------------------------------------------------------
|
50533
|
+
ClarkKent::ReportsControllerTest: test_0001_should get index
|
50534
|
+
------------------------------------------------------------
|
50535
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50536
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50537
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50538
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50539
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50540
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
50541
|
+
Parameters: {"current_user_id"=>"1"}
|
50542
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application
|
50543
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50544
|
+
[1m[36mClarkKent::Report Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT ?[0m [["sharing_scope_id", 1], ["sharing_scope_type", "User"], ["LIMIT", 1]]
|
50545
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50546
|
+
[1m[36mClarkKent::Report Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT ?[0m [["sharing_scope_id", 1], ["sharing_scope_type", "Department"], ["LIMIT", 1]]
|
50547
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
50548
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
50549
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (15.4ms)
|
50550
|
+
Completed 200 OK in 20ms (Views: 16.9ms | ActiveRecord: 0.5ms)
|
50551
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
50552
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50553
|
+
-------------------------------------------------------------------------
|
50554
|
+
ClarkKent::ReportsControllerTest: test_0007_should show report run errors
|
50555
|
+
-------------------------------------------------------------------------
|
50556
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50557
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50558
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50559
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50560
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50561
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
50562
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
50563
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50564
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
50565
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
50566
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
50567
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
50568
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.1ms)
|
50569
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50570
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
50571
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (2.5ms)
|
50572
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.9ms)
|
50573
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.7ms)
|
50574
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (22.0ms)
|
50575
|
+
Completed 200 OK in 39ms (Views: 24.2ms | ActiveRecord: 1.0ms)
|
50576
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
50577
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50578
|
+
----------------------------------------------------------
|
50579
|
+
ClarkKent::ReportsControllerTest: test_0002_should get new
|
50580
|
+
----------------------------------------------------------
|
50581
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50582
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50583
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50584
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50585
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50586
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
50587
|
+
Parameters: {"current_user_id"=>"1"}
|
50588
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
50589
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50590
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50591
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (6.5ms)
|
50592
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (7.0ms)
|
50593
|
+
Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.1ms)
|
50594
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
50595
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50596
|
+
-----------------------------------------------------------
|
50597
|
+
ClarkKent::ReportsControllerTest: test_0008_should get edit
|
50598
|
+
-----------------------------------------------------------
|
50599
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50600
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50601
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50602
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50603
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50604
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
50605
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
50606
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50607
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
50608
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (3.8ms)
|
50609
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
50610
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (4.4ms)
|
50611
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
50612
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.1ms)
|
50613
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (5.0ms)
|
50614
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
50615
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.5ms)
|
50616
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.4ms)
|
50617
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.5ms)
|
50618
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (11.7ms)
|
50619
|
+
[1m[36mClarkKent::ReportEmail Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 1]]
|
50620
|
+
[1m[36mClarkKent::ReportDateFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."type" IN ('ClarkKent::ReportDateFilter') AND "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
50621
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" INNER JOIN "clark_kent_user_report_emails" ON "users"."id" = "clark_kent_user_report_emails"."user_id" WHERE "clark_kent_user_report_emails"."report_email_id" = ?[0m [["report_email_id", 1]]
|
50622
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (27.1ms)
|
50623
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (31.1ms)
|
50624
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (37.6ms)
|
50625
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (71.8ms)
|
50626
|
+
Completed 200 OK in 78ms (Views: 73.0ms | ActiveRecord: 0.9ms)
|
50627
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
50628
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50629
|
+
----------------------------------------------------------------------
|
50630
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
50631
|
+
----------------------------------------------------------------------
|
50632
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50633
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50634
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50635
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50636
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50637
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
50638
|
+
Parameters: {"created_at_from"=>"2017-02-20", "created_at_until"=>"2017-02-21", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
50639
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50640
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
50641
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
50642
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
50643
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
50644
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
50645
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50646
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
50647
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.2ms)
|
50648
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
50649
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
50650
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(count_column) FROM (SELECT "orders"."id" AS count_column FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?) subquery_for_count[0m [["LIMIT", 10], ["OFFSET", 0]]
|
50651
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (5.6ms)
|
50652
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
50653
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT "orders".* FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
50654
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50655
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50656
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50657
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (1.2ms)
|
50658
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (30.0ms)
|
50659
|
+
Completed 200 OK in 41ms (Views: 31.5ms | ActiveRecord: 1.5ms)
|
50660
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
50661
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50662
|
+
----------------------------------------------------------------
|
50663
|
+
ClarkKent::ReportsControllerTest: test_0003_should create report
|
50664
|
+
----------------------------------------------------------------
|
50665
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50666
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50667
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50668
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50669
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50670
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
50671
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
50672
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50673
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "sharing_scope_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["sharing_scope_type", ""], ["created_at", 2017-02-21 17:08:10 UTC], ["updated_at", 2017-02-21 17:08:10 UTC]]
|
50674
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50675
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
50676
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.0ms)
|
50677
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
50678
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (3.4ms)
|
50679
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
50680
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (1.8ms)
|
50681
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
50682
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (1.3ms)
|
50683
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (8.5ms)
|
50684
|
+
Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 0.6ms)
|
50685
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT ?[0m [["name", "delete me"], ["LIMIT", 1]]
|
50686
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50687
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
50688
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
50689
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
50690
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
50691
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50692
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
50693
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50694
|
+
-----------------------------------------------------------------
|
50695
|
+
ClarkKent::ReportsControllerTest: test_0010_should destroy report
|
50696
|
+
-----------------------------------------------------------------
|
50697
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50698
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50699
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50700
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50701
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50702
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["created_at", 2017-02-21 17:08:10 UTC], ["updated_at", 2017-02-21 17:08:10 UTC]]
|
50703
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50704
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
50705
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50706
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
50707
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
50708
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
50709
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50710
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
50711
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
50712
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
50713
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
50714
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50715
|
+
Redirected to http://test.host/reports/reports
|
50716
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
|
50717
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
50718
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
50719
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50720
|
+
--------------------------------------------------------------
|
50721
|
+
ClarkKent::ReportsControllerTest: test_0005_should show report
|
50722
|
+
--------------------------------------------------------------
|
50723
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50724
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50725
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50726
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50727
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50728
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
50729
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
50730
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50731
|
+
[1m[36mClarkKent::ReportColumn Load (0.3ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
50732
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
50733
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
50734
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
50735
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
50736
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.4ms)
|
50737
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50738
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
50739
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.7ms)
|
50740
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.3ms)
|
50741
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
50742
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (8.8ms)
|
50743
|
+
Completed 200 OK in 40ms (Views: 11.8ms | ActiveRecord: 0.7ms)
|
50744
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
50745
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50746
|
+
----------------------------------------------------------------
|
50747
|
+
ClarkKent::ReportsControllerTest: test_0009_should update report
|
50748
|
+
----------------------------------------------------------------
|
50749
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50750
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50751
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50752
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50753
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50754
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
50755
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}, "id"=>"1"}
|
50756
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50757
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50758
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "name" = ?, "sharing_scope_type" = ?, "updated_at" = ? WHERE "clark_kent_reports"."id" = ?[0m [["name", ""], ["sharing_scope_type", ""], ["updated_at", 2017-02-21 17:08:10 UTC], ["id", 1]]
|
50759
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50760
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (2.2ms)
|
50761
|
+
Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.3ms)
|
50762
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
50763
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50764
|
+
--------------------------------------------------------------------------
|
50765
|
+
ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
50766
|
+
--------------------------------------------------------------------------
|
50767
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50768
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50769
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50770
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50771
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
50772
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
50773
|
+
-----------------------------------------------------------------------------------------
|
50774
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
50775
|
+
-----------------------------------------------------------------------------------------
|
50776
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
50777
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50778
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
50779
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50780
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
50781
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50782
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50783
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
50784
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50785
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50786
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50787
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
50788
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
50789
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
50790
|
+
[1m[36mClarkKent::ReportColumn Load (0.6ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
50791
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
50792
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50793
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50794
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb
|
50795
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (0.5ms)
|
50796
|
+
ClarkKent::ReportMailer#report_error: processed outbound mail in 169.4ms
|
50797
|
+
Sent mail to taproot@gmail.com (8.1ms)
|
50798
|
+
Date: Tue, 21 Feb 2017 10:08:11 -0700
|
50799
|
+
From: reservations@invitedhome.com
|
50800
|
+
To: taproot@gmail.com
|
50801
|
+
Message-ID: <58ac73fb3bafd_86c53ff2c3401a14819d0@Erics-MacBook-Pro.local.mail>
|
50802
|
+
Subject: Your report has a problem
|
50803
|
+
Mime-Version: 1.0
|
50804
|
+
Content-Type: text/html;
|
50805
|
+
charset=UTF-8
|
50806
|
+
Content-Transfer-Encoding: 7bit
|
50807
|
+
|
50808
|
+
Your report could not be created due to the following problem:
|
50809
|
+
<strong>At least one date range is required.</strong>
|
50810
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
50811
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50812
|
+
---------------------------------------------------
|
50813
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
50814
|
+
---------------------------------------------------
|
50815
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
50816
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50817
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
50818
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50819
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
50820
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50821
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50822
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "this_week"], ["created_at", 2017-02-21 17:08:11 UTC], ["updated_at", 2017-02-21 17:08:11 UTC]]
|
50823
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50824
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50825
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
50826
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50827
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50828
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50829
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
50830
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
50831
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
50832
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
50833
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
50834
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
50835
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
50836
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
50837
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
50838
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50839
|
+
-------------------------
|
50840
|
+
ClarkKentTest: test_truth
|
50841
|
+
-------------------------
|
50842
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
50843
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50844
|
+
----------------------------------------------------------------------------------
|
50845
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_date_report_filter
|
50846
|
+
----------------------------------------------------------------------------------
|
50847
|
+
[1m[36mClarkKent::Report Load (0.3ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50848
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50849
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50850
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50851
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50852
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
50853
|
+
Parameters: {"report_filter"=>{"duration"=>"week", "filter_name"=>"created_at", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
|
50854
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50855
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50856
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-21 17:08:11 UTC], ["updated_at", 2017-02-21 17:08:11 UTC]]
|
50857
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50858
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50859
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.5ms)
|
50860
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (6.4ms)
|
50861
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (9.9ms)
|
50862
|
+
Completed 200 OK in 17ms (Views: 13.2ms | ActiveRecord: 0.3ms)
|
50863
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
50864
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
50865
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50866
|
+
-----------------------------------------------------------------------------
|
50867
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_report_filter
|
50868
|
+
-----------------------------------------------------------------------------
|
50869
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50870
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50871
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50872
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50873
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50874
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
50875
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
50876
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50877
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50878
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-21 17:08:11 UTC], ["updated_at", 2017-02-21 17:08:11 UTC]]
|
50879
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50880
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50881
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.4ms)
|
50882
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (4.9ms)
|
50883
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (5.1ms)
|
50884
|
+
Completed 200 OK in 17ms (Views: 5.4ms | ActiveRecord: 0.4ms)
|
50885
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
50886
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
50887
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50888
|
+
---------------------------------------------------------------------------------------
|
50889
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_date_filter
|
50890
|
+
---------------------------------------------------------------------------------------
|
50891
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50892
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50893
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50894
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50895
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50896
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50897
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-21 17:08:11 UTC], ["updated_at", 2017-02-21 17:08:11 UTC]]
|
50898
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50899
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
50900
|
+
Parameters: {"id"=>"1"}
|
50901
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50902
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50903
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50904
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (5.2ms)
|
50905
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (15.3ms)
|
50906
|
+
Completed 200 OK in 25ms (Views: 19.2ms | ActiveRecord: 0.3ms)
|
50907
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
50908
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50909
|
+
------------------------------------------------------------------------------------------
|
50910
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_an_object_filter
|
50911
|
+
------------------------------------------------------------------------------------------
|
50912
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50913
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50914
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50915
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50916
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50917
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50918
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-21 17:08:11 UTC], ["updated_at", 2017-02-21 17:08:11 UTC]]
|
50919
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50920
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
50921
|
+
Parameters: {"id"=>"1"}
|
50922
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50923
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50924
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50925
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50926
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (1.5ms)
|
50927
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (6.3ms)
|
50928
|
+
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.2ms)
|
50929
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
50930
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50931
|
+
-------------------------------------------------------------------------------------
|
50932
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_an_object_report_filter
|
50933
|
+
-------------------------------------------------------------------------------------
|
50934
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50935
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50936
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50937
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50938
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50939
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
50940
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_id", "filter_value"=>"1", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
50941
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50942
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50943
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-21 17:08:11 UTC], ["updated_at", 2017-02-21 17:08:11 UTC]]
|
50944
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50945
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50946
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50947
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.5ms)
|
50948
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.6ms)
|
50949
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.8ms)
|
50950
|
+
Completed 200 OK in 9ms (Views: 3.2ms | ActiveRecord: 0.6ms)
|
50951
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
50952
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
50953
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50954
|
+
-----------------------------------------------------------------------------------------
|
50955
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_string_filter
|
50956
|
+
-----------------------------------------------------------------------------------------
|
50957
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50958
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50959
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50960
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50961
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50962
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50963
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-21 17:08:11 UTC], ["updated_at", 2017-02-21 17:08:11 UTC]]
|
50964
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50965
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
50966
|
+
Parameters: {"id"=>"1"}
|
50967
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50968
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50969
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50970
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.3ms)
|
50971
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (7.4ms)
|
50972
|
+
Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.2ms)
|
50973
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
50974
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50975
|
+
------------------------------------------------------------------------------------------
|
50976
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_an_object_filter
|
50977
|
+
------------------------------------------------------------------------------------------
|
50978
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50979
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50980
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
50981
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50982
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
50983
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
50984
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-21 17:08:11 UTC], ["updated_at", 2017-02-21 17:08:11 UTC]]
|
50985
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
50986
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
50987
|
+
Parameters: {"id"=>"1"}
|
50988
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50989
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50990
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
50991
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
50992
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (3.9ms)
|
50993
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (12.4ms)
|
50994
|
+
Completed 200 OK in 15ms (Views: 12.8ms | ActiveRecord: 0.2ms)
|
50995
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
50996
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
50997
|
+
---------------------------------------------------------------------------------------
|
50998
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_date_filter
|
50999
|
+
---------------------------------------------------------------------------------------
|
51000
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51001
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51002
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51003
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51004
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51005
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51006
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-21 17:08:11 UTC], ["updated_at", 2017-02-21 17:08:11 UTC]]
|
51007
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51008
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
51009
|
+
Parameters: {"id"=>"1"}
|
51010
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51011
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51012
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51013
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.1ms)
|
51014
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (1.5ms)
|
51015
|
+
Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
51016
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
51017
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51018
|
+
-----------------------------------------------------------------------------------------
|
51019
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_string_filter
|
51020
|
+
-----------------------------------------------------------------------------------------
|
51021
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51022
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51023
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51024
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51025
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51026
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51027
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-21 17:08:11 UTC], ["updated_at", 2017-02-21 17:08:11 UTC]]
|
51028
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51029
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
51030
|
+
Parameters: {"id"=>"1"}
|
51031
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51032
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51033
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51034
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.0ms)
|
51035
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (1.6ms)
|
51036
|
+
Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)
|
51037
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
51038
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51039
|
+
-----------------------------------------------------
|
51040
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
51041
|
+
-----------------------------------------------------
|
51042
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
51043
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
51044
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)[0m
|
51045
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
51046
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
51047
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar)[0m
|
51048
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
51049
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
51050
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
51051
|
+
FROM sqlite_master
|
51052
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
51053
|
+
UNION ALL
|
51054
|
+
SELECT sql
|
51055
|
+
FROM sqlite_temp_master
|
51056
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
51057
|
+
[0m
|
51058
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
51059
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)[0m
|
51060
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
51061
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
51062
|
+
FROM sqlite_master
|
51063
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
51064
|
+
UNION ALL
|
51065
|
+
SELECT sql
|
51066
|
+
FROM sqlite_temp_master
|
51067
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
51068
|
+
[0m
|
51069
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
51070
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)[0m
|
51071
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
51072
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
51073
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer)[0m
|
51074
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
51075
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
51076
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
51077
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
51078
|
+
('20131226170042'),
|
51079
|
+
('20131226170112'),
|
51080
|
+
('20140114010048'),
|
51081
|
+
('20140129051754'),
|
51082
|
+
('20150304233739');
|
51083
|
+
|
51084
|
+
[0m
|
51085
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
51086
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
51087
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51088
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-02-21 17:09:59 UTC], ["updated_at", 2017-02-21 17:09:59 UTC]]
|
51089
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
51090
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
51091
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51092
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
51093
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51094
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-02-21 17:09:59 UTC], ["updated_at", 2017-02-21 17:09:59 UTC]]
|
51095
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
51096
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51097
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51098
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
51099
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
51100
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51101
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "id"], ["column_order", 2]]
|
51102
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
51103
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51104
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51105
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "amount"], ["column_order", 3]]
|
51106
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
51107
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
51108
|
+
[1m[36mClarkKent::Report Load (0.4ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51109
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "description"], ["column_order", 4]]
|
51110
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
51111
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51112
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
51113
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
51114
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
51115
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?)[0m [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
51116
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
51117
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51118
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "orders" ("user_id", "amount", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["amount", 1], ["description", "Guitar strings"], ["created_at", 2017-02-21 17:09:59 UTC], ["updated_at", 2017-02-21 17:09:59 UTC]]
|
51119
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
51120
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51121
|
+
----------------------------------------------------------------
|
51122
|
+
ClarkKent::ReportsControllerTest: test_0009_should update report
|
51123
|
+
----------------------------------------------------------------
|
51124
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51125
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51126
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51127
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51128
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51129
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
51130
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}, "id"=>"1"}
|
51131
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51132
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51133
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "name" = ?, "sharing_scope_type" = ?, "updated_at" = ? WHERE "clark_kent_reports"."id" = ?[0m [["name", ""], ["sharing_scope_type", ""], ["updated_at", 2017-02-21 17:09:59 UTC], ["id", 1]]
|
51134
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51135
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (6.9ms)
|
51136
|
+
Completed 200 OK in 17ms (Views: 12.0ms | ActiveRecord: 0.5ms)
|
51137
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
51138
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51139
|
+
-----------------------------------------------------------
|
51140
|
+
ClarkKent::ReportsControllerTest: test_0008_should get edit
|
51141
|
+
-----------------------------------------------------------
|
51142
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51143
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51144
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51145
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51146
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51147
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
51148
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
51149
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51150
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
51151
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (0.9ms)
|
51152
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51153
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (8.1ms)
|
51154
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
51155
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.8ms)
|
51156
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (3.6ms)
|
51157
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.2ms)
|
51158
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.4ms)
|
51159
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
51160
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.4ms)
|
51161
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (12.0ms)
|
51162
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 1]]
|
51163
|
+
[1m[36mClarkKent::ReportDateFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."type" IN ('ClarkKent::ReportDateFilter') AND "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
51164
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" INNER JOIN "clark_kent_user_report_emails" ON "users"."id" = "clark_kent_user_report_emails"."user_id" WHERE "clark_kent_user_report_emails"."report_email_id" = ?[0m [["report_email_id", 1]]
|
51165
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (19.6ms)
|
51166
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (22.3ms)
|
51167
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (27.1ms)
|
51168
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (58.1ms)
|
51169
|
+
Completed 200 OK in 221ms (Views: 214.2ms | ActiveRecord: 1.2ms)
|
51170
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
51171
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
51172
|
+
--------------------------------------------------------------------------------
|
51173
|
+
ClarkKent::ReportsControllerTest: test_0004_should render errors during creation
|
51174
|
+
--------------------------------------------------------------------------------
|
51175
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51176
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51177
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51178
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51179
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51180
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
51181
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
51182
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51183
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
51184
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
51185
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51186
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51187
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (43.4ms)
|
51188
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (46.8ms)
|
51189
|
+
Completed 409 Conflict in 58ms (Views: 51.1ms | ActiveRecord: 0.4ms)
|
51190
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT ?[0m [["name", "delete me"], ["LIMIT", 1]]
|
51191
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
51192
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51193
|
+
-----------------------------------------------------------------
|
51194
|
+
ClarkKent::ReportsControllerTest: test_0010_should destroy report
|
51195
|
+
-----------------------------------------------------------------
|
51196
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51197
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51198
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51199
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51200
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51201
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51202
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51203
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
51204
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51205
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
51206
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
51207
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
51208
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51209
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
51210
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
51211
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
51212
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
51213
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51214
|
+
Redirected to http://test.host/reports/reports
|
51215
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
|
51216
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
51217
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
51218
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51219
|
+
----------------------------------------------------------------
|
51220
|
+
ClarkKent::ReportsControllerTest: test_0003_should create report
|
51221
|
+
----------------------------------------------------------------
|
51222
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51223
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51224
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51225
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51226
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51227
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
51228
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
51229
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51230
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "sharing_scope_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["sharing_scope_type", ""], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51231
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51232
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
51233
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.1ms)
|
51234
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
51235
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (2.6ms)
|
51236
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
51237
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (1.7ms)
|
51238
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
51239
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (1.4ms)
|
51240
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (7.6ms)
|
51241
|
+
Completed 200 OK in 13ms (Views: 10.2ms | ActiveRecord: 0.5ms)
|
51242
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT ?[0m [["name", "delete me"], ["LIMIT", 1]]
|
51243
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51244
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
51245
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
51246
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
51247
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
51248
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51249
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
51250
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51251
|
+
-------------------------------------------------------------------------
|
51252
|
+
ClarkKent::ReportsControllerTest: test_0007_should show report run errors
|
51253
|
+
-------------------------------------------------------------------------
|
51254
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51255
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51256
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51257
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51258
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51259
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
51260
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
51261
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51262
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
51263
|
+
[1m[36mClarkKent::ReportFilter Load (0.5ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51264
|
+
[1m[36mClarkKent::ReportColumn Load (0.6ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
51265
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
51266
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.9ms)
|
51267
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51268
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
51269
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.9ms)
|
51270
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.5ms)
|
51271
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.7ms)
|
51272
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (16.7ms)
|
51273
|
+
Completed 200 OK in 40ms (Views: 18.7ms | ActiveRecord: 1.5ms)
|
51274
|
+
[1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
|
51275
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51276
|
+
----------------------------------------------------------
|
51277
|
+
ClarkKent::ReportsControllerTest: test_0002_should get new
|
51278
|
+
----------------------------------------------------------
|
51279
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51280
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51281
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51282
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51283
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51284
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
51285
|
+
Parameters: {"current_user_id"=>"1"}
|
51286
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
51287
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51288
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51289
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (6.2ms)
|
51290
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (6.8ms)
|
51291
|
+
Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.1ms)
|
51292
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
51293
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51294
|
+
----------------------------------------------------------------------
|
51295
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
51296
|
+
----------------------------------------------------------------------
|
51297
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51298
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51299
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51300
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51301
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51302
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
51303
|
+
Parameters: {"created_at_from"=>"2017-02-20", "created_at_until"=>"2017-02-21", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
51304
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51305
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
51306
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51307
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
51308
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
51309
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
51310
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51311
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
51312
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (3.2ms)
|
51313
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.4ms)
|
51314
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
51315
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(count_column) FROM (SELECT "orders"."id" AS count_column FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?) subquery_for_count[0m [["LIMIT", 10], ["OFFSET", 0]]
|
51316
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (8.9ms)
|
51317
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
51318
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT "orders".* FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
51319
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51320
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51321
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51322
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (1.1ms)
|
51323
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (34.1ms)
|
51324
|
+
Completed 200 OK in 44ms (Views: 35.9ms | ActiveRecord: 1.9ms)
|
51325
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
51326
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51327
|
+
--------------------------------------------------------------
|
51328
|
+
ClarkKent::ReportsControllerTest: test_0005_should show report
|
51329
|
+
--------------------------------------------------------------
|
51330
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51331
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51332
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51333
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51334
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51335
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
51336
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
51337
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51338
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
51339
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
51340
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51341
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51342
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51343
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.5ms)
|
51344
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51345
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
51346
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (3.7ms)
|
51347
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.3ms)
|
51348
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.1ms)
|
51349
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (12.9ms)
|
51350
|
+
Completed 200 OK in 19ms (Views: 15.6ms | ActiveRecord: 1.1ms)
|
51351
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
51352
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51353
|
+
------------------------------------------------------------
|
51354
|
+
ClarkKent::ReportsControllerTest: test_0001_should get index
|
51355
|
+
------------------------------------------------------------
|
51356
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51357
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51358
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51359
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51360
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51361
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
51362
|
+
Parameters: {"current_user_id"=>"1"}
|
51363
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application
|
51364
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51365
|
+
[1m[36mClarkKent::Report Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT ?[0m [["sharing_scope_id", 1], ["sharing_scope_type", "User"], ["LIMIT", 1]]
|
51366
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51367
|
+
[1m[36mClarkKent::Report Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT ?[0m [["sharing_scope_id", 1], ["sharing_scope_type", "Department"], ["LIMIT", 1]]
|
51368
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
51369
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
51370
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (37.5ms)
|
51371
|
+
Completed 200 OK in 43ms (Views: 39.3ms | ActiveRecord: 0.6ms)
|
51372
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
51373
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51374
|
+
------------------------------------------------------------------------
|
51375
|
+
ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
51376
|
+
------------------------------------------------------------------------
|
51377
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51378
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "Order"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51379
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51380
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
51381
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
51382
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
51383
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
51384
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
51385
|
+
--------------------------------------------------------------------------
|
51386
|
+
ClarkKent::ReportableTest: test_0003_doesn't blow up if order_sql is blank
|
51387
|
+
--------------------------------------------------------------------------
|
51388
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51389
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51390
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51391
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51392
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
51393
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51394
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
51395
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
51396
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
51397
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
51398
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
51399
|
+
--------------------------------------------------------------------------
|
51400
|
+
ClarkKent::ReportableTest: test_0002_it works without any required filters
|
51401
|
+
--------------------------------------------------------------------------
|
51402
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51403
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51404
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51405
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
51406
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
51407
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
51408
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
51409
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
51410
|
+
-----------------------------------------------------------------------------------------
|
51411
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_string_filter
|
51412
|
+
-----------------------------------------------------------------------------------------
|
51413
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51414
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51415
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51416
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51417
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51418
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51419
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51420
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51421
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
51422
|
+
Parameters: {"id"=>"1"}
|
51423
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51424
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51425
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51426
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.3ms)
|
51427
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (11.2ms)
|
51428
|
+
Completed 200 OK in 17ms (Views: 14.2ms | ActiveRecord: 0.3ms)
|
51429
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
51430
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51431
|
+
---------------------------------------------------------------------------------------
|
51432
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_date_filter
|
51433
|
+
---------------------------------------------------------------------------------------
|
51434
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51435
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51436
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51437
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51438
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51439
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51440
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51441
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51442
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
51443
|
+
Parameters: {"id"=>"1"}
|
51444
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51445
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51446
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51447
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.7ms)
|
51448
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.7ms)
|
51449
|
+
Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.2ms)
|
51450
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
51451
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51452
|
+
-----------------------------------------------------------------------------
|
51453
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_report_filter
|
51454
|
+
-----------------------------------------------------------------------------
|
51455
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51456
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51457
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51458
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51459
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51460
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
51461
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
51462
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51463
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51464
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51465
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51466
|
+
[1m[36mClarkKent::Report Load (0.4ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51467
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.4ms)
|
51468
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (8.1ms)
|
51469
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (8.9ms)
|
51470
|
+
Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 0.8ms)
|
51471
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
51472
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
51473
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51474
|
+
----------------------------------------------------------------------------------
|
51475
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_date_report_filter
|
51476
|
+
----------------------------------------------------------------------------------
|
51477
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51478
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51479
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51480
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51481
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51482
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
51483
|
+
Parameters: {"report_filter"=>{"duration"=>"week", "filter_name"=>"created_at", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
|
51484
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51485
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51486
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51487
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51488
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51489
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.1ms)
|
51490
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.0ms)
|
51491
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.2ms)
|
51492
|
+
Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.4ms)
|
51493
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
51494
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
51495
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51496
|
+
-----------------------------------------------------------------------------------------
|
51497
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_string_filter
|
51498
|
+
-----------------------------------------------------------------------------------------
|
51499
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51500
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51501
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51502
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51503
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51504
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51505
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51506
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51507
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
51508
|
+
Parameters: {"id"=>"1"}
|
51509
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51510
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51511
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51512
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.1ms)
|
51513
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.4ms)
|
51514
|
+
Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.2ms)
|
51515
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
51516
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51517
|
+
---------------------------------------------------------------------------------------
|
51518
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_date_filter
|
51519
|
+
---------------------------------------------------------------------------------------
|
51520
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51521
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51522
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51523
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51524
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51525
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51526
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51527
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51528
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
51529
|
+
Parameters: {"id"=>"1"}
|
51530
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51531
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51532
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51533
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (5.1ms)
|
51534
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (12.4ms)
|
51535
|
+
Completed 200 OK in 19ms (Views: 12.7ms | ActiveRecord: 0.3ms)
|
51536
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
51537
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51538
|
+
------------------------------------------------------------------------------------------
|
51539
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_an_object_filter
|
51540
|
+
------------------------------------------------------------------------------------------
|
51541
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51542
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51543
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51544
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51545
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51546
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51547
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51548
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51549
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
51550
|
+
Parameters: {"id"=>"1"}
|
51551
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51552
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51553
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51554
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
51555
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (2.4ms)
|
51556
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (11.5ms)
|
51557
|
+
Completed 200 OK in 16ms (Views: 11.9ms | ActiveRecord: 0.3ms)
|
51558
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
51559
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51560
|
+
------------------------------------------------------------------------------------------
|
51561
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_an_object_filter
|
51562
|
+
------------------------------------------------------------------------------------------
|
51563
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51564
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51565
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51566
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51567
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51568
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51569
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51570
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51571
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
51572
|
+
Parameters: {"id"=>"1"}
|
51573
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51574
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51575
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51576
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51577
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (1.8ms)
|
51578
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (6.2ms)
|
51579
|
+
Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.3ms)
|
51580
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
51581
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51582
|
+
-------------------------------------------------------------------------------------
|
51583
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_an_object_report_filter
|
51584
|
+
-------------------------------------------------------------------------------------
|
51585
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51586
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51587
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51588
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51589
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51590
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
51591
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_id", "filter_value"=>"1", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
51592
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51593
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51594
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51595
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51596
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51597
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51598
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.6ms)
|
51599
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.8ms)
|
51600
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (3.0ms)
|
51601
|
+
Completed 200 OK in 7ms (Views: 3.3ms | ActiveRecord: 0.4ms)
|
51602
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
51603
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
51604
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51605
|
+
-------------------------
|
51606
|
+
ClarkKentTest: test_truth
|
51607
|
+
-------------------------
|
51608
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
51609
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51610
|
+
---------------------------------------------------
|
51611
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
51612
|
+
---------------------------------------------------
|
51613
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
51614
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51615
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
51616
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51617
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
51618
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51619
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51620
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "this_week"], ["created_at", 2017-02-21 17:10:00 UTC], ["updated_at", 2017-02-21 17:10:00 UTC]]
|
51621
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51622
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51623
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51624
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51625
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51626
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51627
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
51628
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51629
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
51630
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
51631
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
51632
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
51633
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
51634
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
51635
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
51636
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51637
|
+
-----------------------------------------------------------------------------------------
|
51638
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
51639
|
+
-----------------------------------------------------------------------------------------
|
51640
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
51641
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51642
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
51643
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51644
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
51645
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51646
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51647
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51648
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51649
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51650
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51651
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
51652
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51653
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
51654
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
51655
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
51656
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51657
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51658
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb
|
51659
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (0.4ms)
|
51660
|
+
ClarkKent::ReportMailer#report_error: processed outbound mail in 155.0ms
|
51661
|
+
Sent mail to taproot@gmail.com (5.0ms)
|
51662
|
+
Date: Tue, 21 Feb 2017 10:10:01 -0700
|
51663
|
+
From: reservations@invitedhome.com
|
51664
|
+
To: taproot@gmail.com
|
51665
|
+
Message-ID: <58ac74694db79_874f3fcf0503fa0c355b3@Erics-MacBook-Pro.local.mail>
|
51666
|
+
Subject: Your report has a problem
|
51667
|
+
Mime-Version: 1.0
|
51668
|
+
Content-Type: text/html;
|
51669
|
+
charset=UTF-8
|
51670
|
+
Content-Transfer-Encoding: 7bit
|
51671
|
+
|
51672
|
+
Your report could not be created due to the following problem:
|
51673
|
+
<strong>At least one date range is required.</strong>
|
51674
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
51675
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51676
|
+
-----------------------------------------------------
|
51677
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
51678
|
+
-----------------------------------------------------
|
51679
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
51680
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51681
|
+
--------------------------------------------------------------------------
|
51682
|
+
ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
51683
|
+
--------------------------------------------------------------------------
|
51684
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51685
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51686
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51687
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51688
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
51689
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51690
|
+
------------------------------------------------------------------------------------------------
|
51691
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
51692
|
+
------------------------------------------------------------------------------------------------
|
51693
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51694
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
51695
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
51696
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
51697
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)[0m
|
51698
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
51699
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
51700
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar)[0m
|
51701
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
51702
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
51703
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
51704
|
+
FROM sqlite_master
|
51705
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
51706
|
+
UNION ALL
|
51707
|
+
SELECT sql
|
51708
|
+
FROM sqlite_temp_master
|
51709
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
51710
|
+
[0m
|
51711
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
51712
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)[0m
|
51713
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
51714
|
+
[1m[35m (0.2ms)[0m [1m[34m SELECT sql
|
51715
|
+
FROM sqlite_master
|
51716
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
51717
|
+
UNION ALL
|
51718
|
+
SELECT sql
|
51719
|
+
FROM sqlite_temp_master
|
51720
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
51721
|
+
[0m
|
51722
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
51723
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)[0m
|
51724
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
51725
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
51726
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer)[0m
|
51727
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
51728
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
51729
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
51730
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
51731
|
+
('20131226170042'),
|
51732
|
+
('20131226170112'),
|
51733
|
+
('20140114010048'),
|
51734
|
+
('20140129051754'),
|
51735
|
+
('20150304233739');
|
51736
|
+
|
51737
|
+
[0m
|
51738
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
51739
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
51740
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51741
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-02-21 17:10:30 UTC], ["updated_at", 2017-02-21 17:10:30 UTC]]
|
51742
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
51743
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
51744
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51745
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
51746
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51747
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-02-21 17:10:30 UTC], ["updated_at", 2017-02-21 17:10:30 UTC]]
|
51748
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
51749
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51750
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51751
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
51752
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
51753
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51754
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "id"], ["column_order", 2]]
|
51755
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
51756
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51757
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51758
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "amount"], ["column_order", 3]]
|
51759
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
51760
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51761
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51762
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "description"], ["column_order", 4]]
|
51763
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
51764
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51765
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
51766
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
51767
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51768
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?)[0m [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
51769
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
51770
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51771
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "orders" ("user_id", "amount", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["amount", 1], ["description", "Guitar strings"], ["created_at", 2017-02-21 17:10:30 UTC], ["updated_at", 2017-02-21 17:10:30 UTC]]
|
51772
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
51773
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51774
|
+
-------------------------
|
51775
|
+
ClarkKentTest: test_truth
|
51776
|
+
-------------------------
|
51777
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
51778
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
51779
|
+
--------------------------------------------------------------------------
|
51780
|
+
ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
51781
|
+
--------------------------------------------------------------------------
|
51782
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51783
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51784
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51785
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51786
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
51787
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
51788
|
+
----------------------------------------------------------------
|
51789
|
+
ClarkKent::ReportsControllerTest: test_0003_should create report
|
51790
|
+
----------------------------------------------------------------
|
51791
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51792
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51793
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51794
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51795
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51796
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
51797
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
51798
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51799
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "sharing_scope_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["sharing_scope_type", ""], ["created_at", 2017-02-21 17:10:30 UTC], ["updated_at", 2017-02-21 17:10:30 UTC]]
|
51800
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51801
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
51802
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (3.2ms)
|
51803
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
51804
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (7.3ms)
|
51805
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
51806
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (2.4ms)
|
51807
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
51808
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (2.3ms)
|
51809
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (29.6ms)
|
51810
|
+
Completed 200 OK in 205ms (Views: 194.1ms | ActiveRecord: 2.0ms)
|
51811
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT ?[0m [["name", "delete me"], ["LIMIT", 1]]
|
51812
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51813
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
51814
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
51815
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
51816
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
51817
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51818
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
51819
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51820
|
+
--------------------------------------------------------------
|
51821
|
+
ClarkKent::ReportsControllerTest: test_0005_should show report
|
51822
|
+
--------------------------------------------------------------
|
51823
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51824
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51825
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51826
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51827
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51828
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
51829
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
51830
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51831
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
51832
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
51833
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51834
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51835
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51836
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.5ms)
|
51837
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51838
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
51839
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.7ms)
|
51840
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.5ms)
|
51841
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.6ms)
|
51842
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (21.1ms)
|
51843
|
+
Completed 200 OK in 30ms (Views: 23.3ms | ActiveRecord: 0.6ms)
|
51844
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
51845
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51846
|
+
----------------------------------------------------------------------
|
51847
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
51848
|
+
----------------------------------------------------------------------
|
51849
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51850
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51851
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51852
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51853
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51854
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
51855
|
+
Parameters: {"created_at_from"=>"2017-02-20", "created_at_until"=>"2017-02-21", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
51856
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51857
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
51858
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51859
|
+
[1m[36mClarkKent::ReportColumn Load (0.6ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
51860
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
51861
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.2ms)
|
51862
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51863
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
51864
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.4ms)
|
51865
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
51866
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
51867
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(count_column) FROM (SELECT "orders"."id" AS count_column FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?) subquery_for_count[0m [["LIMIT", 10], ["OFFSET", 0]]
|
51868
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (4.9ms)
|
51869
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
51870
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT "orders".* FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
51871
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51872
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51873
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51874
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (0.9ms)
|
51875
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (20.2ms)
|
51876
|
+
Completed 200 OK in 32ms (Views: 22.5ms | ActiveRecord: 1.7ms)
|
51877
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
51878
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51879
|
+
----------------------------------------------------------
|
51880
|
+
ClarkKent::ReportsControllerTest: test_0002_should get new
|
51881
|
+
----------------------------------------------------------
|
51882
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51883
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51884
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51885
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51886
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51887
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
51888
|
+
Parameters: {"current_user_id"=>"1"}
|
51889
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
51890
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51891
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51892
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (59.8ms)
|
51893
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (63.4ms)
|
51894
|
+
Completed 200 OK in 69ms (Views: 65.3ms | ActiveRecord: 0.2ms)
|
51895
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
51896
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51897
|
+
-----------------------------------------------------------
|
51898
|
+
ClarkKent::ReportsControllerTest: test_0008_should get edit
|
51899
|
+
-----------------------------------------------------------
|
51900
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51901
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51902
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51903
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51904
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51905
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
51906
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
51907
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51908
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
51909
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.0ms)
|
51910
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51911
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (3.6ms)
|
51912
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
51913
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.1ms)
|
51914
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (4.5ms)
|
51915
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.4ms)
|
51916
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.6ms)
|
51917
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
51918
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.5ms)
|
51919
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (11.2ms)
|
51920
|
+
[1m[36mClarkKent::ReportEmail Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 1]]
|
51921
|
+
[1m[36mClarkKent::ReportDateFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."type" IN ('ClarkKent::ReportDateFilter') AND "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
51922
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" INNER JOIN "clark_kent_user_report_emails" ON "users"."id" = "clark_kent_user_report_emails"."user_id" WHERE "clark_kent_user_report_emails"."report_email_id" = ?[0m [["report_email_id", 1]]
|
51923
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (24.8ms)
|
51924
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (27.4ms)
|
51925
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (31.8ms)
|
51926
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (48.6ms)
|
51927
|
+
Completed 200 OK in 52ms (Views: 50.1ms | ActiveRecord: 0.8ms)
|
51928
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
51929
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51930
|
+
-----------------------------------------------------------------
|
51931
|
+
ClarkKent::ReportsControllerTest: test_0010_should destroy report
|
51932
|
+
-----------------------------------------------------------------
|
51933
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51934
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51935
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51936
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51937
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51938
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["created_at", 2017-02-21 17:10:31 UTC], ["updated_at", 2017-02-21 17:10:31 UTC]]
|
51939
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51940
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
51941
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51942
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
51943
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
51944
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
51945
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51946
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
51947
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
51948
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
51949
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
51950
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51951
|
+
Redirected to http://test.host/reports/reports
|
51952
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
|
51953
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
51954
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
51955
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51956
|
+
-------------------------------------------------------------------------
|
51957
|
+
ClarkKent::ReportsControllerTest: test_0007_should show report run errors
|
51958
|
+
-------------------------------------------------------------------------
|
51959
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51960
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51961
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51962
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51963
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51964
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
51965
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
51966
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51967
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
51968
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
51969
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
51970
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
51971
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
51972
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51973
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
51974
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.1ms)
|
51975
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
51976
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
51977
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (2.6ms)
|
51978
|
+
Completed 200 OK in 10ms (Views: 4.5ms | ActiveRecord: 0.5ms)
|
51979
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
51980
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
51981
|
+
----------------------------------------------------------------
|
51982
|
+
ClarkKent::ReportsControllerTest: test_0009_should update report
|
51983
|
+
----------------------------------------------------------------
|
51984
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51985
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51986
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
51987
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51988
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
51989
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
51990
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}, "id"=>"1"}
|
51991
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
51992
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
51993
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "name" = ?, "sharing_scope_type" = ?, "updated_at" = ? WHERE "clark_kent_reports"."id" = ?[0m [["name", ""], ["sharing_scope_type", ""], ["updated_at", 2017-02-21 17:10:31 UTC], ["id", 1]]
|
51994
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
51995
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.4ms)
|
51996
|
+
Completed 200 OK in 31ms (Views: 2.2ms | ActiveRecord: 0.4ms)
|
51997
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
51998
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
51999
|
+
------------------------------------------------------------
|
52000
|
+
ClarkKent::ReportsControllerTest: test_0001_should get index
|
52001
|
+
------------------------------------------------------------
|
52002
|
+
[1m[36mClarkKent::Report Load (0.3ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52003
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52004
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52005
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52006
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52007
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
52008
|
+
Parameters: {"current_user_id"=>"1"}
|
52009
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application
|
52010
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52011
|
+
[1m[36mClarkKent::Report Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT ?[0m [["sharing_scope_id", 1], ["sharing_scope_type", "User"], ["LIMIT", 1]]
|
52012
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52013
|
+
[1m[36mClarkKent::Report Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT ?[0m [["sharing_scope_id", 1], ["sharing_scope_type", "Department"], ["LIMIT", 1]]
|
52014
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
52015
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
52016
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (10.1ms)
|
52017
|
+
Completed 200 OK in 16ms (Views: 12.0ms | ActiveRecord: 0.5ms)
|
52018
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52019
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52020
|
+
--------------------------------------------------------------------------------
|
52021
|
+
ClarkKent::ReportsControllerTest: test_0004_should render errors during creation
|
52022
|
+
--------------------------------------------------------------------------------
|
52023
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52024
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52025
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52026
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52027
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52028
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
52029
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
52030
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52031
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
52032
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
52033
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52034
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52035
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (6.4ms)
|
52036
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (7.0ms)
|
52037
|
+
Completed 409 Conflict in 15ms (Views: 12.9ms | ActiveRecord: 0.3ms)
|
52038
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT ?[0m [["name", "delete me"], ["LIMIT", 1]]
|
52039
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
52040
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52041
|
+
-----------------------------------------------------
|
52042
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
52043
|
+
-----------------------------------------------------
|
52044
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
52045
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52046
|
+
------------------------------------------------------------------------------------------------
|
52047
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
52048
|
+
------------------------------------------------------------------------------------------------
|
52049
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52050
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
52051
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
52052
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52053
|
+
------------------------------------------------------------------------
|
52054
|
+
ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
52055
|
+
------------------------------------------------------------------------
|
52056
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52057
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "Order"], ["created_at", 2017-02-21 17:10:31 UTC], ["updated_at", 2017-02-21 17:10:31 UTC]]
|
52058
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52059
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
52060
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
52061
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
52062
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52063
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
52064
|
+
--------------------------------------------------------------------------
|
52065
|
+
ClarkKent::ReportableTest: test_0002_it works without any required filters
|
52066
|
+
--------------------------------------------------------------------------
|
52067
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52068
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-02-21 17:10:31 UTC], ["updated_at", 2017-02-21 17:10:31 UTC]]
|
52069
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52070
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
52071
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
52072
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
52073
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52074
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52075
|
+
--------------------------------------------------------------------------
|
52076
|
+
ClarkKent::ReportableTest: test_0003_doesn't blow up if order_sql is blank
|
52077
|
+
--------------------------------------------------------------------------
|
52078
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52079
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-02-21 17:10:31 UTC], ["updated_at", 2017-02-21 17:10:31 UTC]]
|
52080
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52081
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52082
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
52083
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52084
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
52085
|
+
[1m[36mClarkKent::ReportFilter Load (0.3ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
52086
|
+
[1m[36mClarkKent::ReportColumn Load (0.3ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
52087
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
52088
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52089
|
+
---------------------------------------------------
|
52090
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
52091
|
+
---------------------------------------------------
|
52092
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
52093
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52094
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
52095
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52096
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
52097
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52098
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52099
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "this_week"], ["created_at", 2017-02-21 17:10:31 UTC], ["updated_at", 2017-02-21 17:10:31 UTC]]
|
52100
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52101
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52102
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52103
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52104
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52105
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52106
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
52107
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52108
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
52109
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52110
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52111
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52112
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52113
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
52114
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
52115
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52116
|
+
-----------------------------------------------------------------------------------------
|
52117
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
52118
|
+
-----------------------------------------------------------------------------------------
|
52119
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
52120
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52121
|
+
[1m[35mSQL (0.4ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
52122
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52123
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
52124
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52125
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52126
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52127
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52128
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52129
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52130
|
+
[1m[36mClarkKent::ReportColumn Load (0.4ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
52131
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52132
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
52133
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52134
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52135
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52136
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52137
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb
|
52138
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (0.4ms)
|
52139
|
+
ClarkKent::ReportMailer#report_error: processed outbound mail in 135.1ms
|
52140
|
+
Sent mail to taproot@gmail.com (4.8ms)
|
52141
|
+
Date: Tue, 21 Feb 2017 10:10:31 -0700
|
52142
|
+
From: reservations@invitedhome.com
|
52143
|
+
To: taproot@gmail.com
|
52144
|
+
Message-ID: <58ac7487d81bd_87813fc1db03ba248393e@Erics-MacBook-Pro.local.mail>
|
52145
|
+
Subject: Your report has a problem
|
52146
|
+
Mime-Version: 1.0
|
52147
|
+
Content-Type: text/html;
|
52148
|
+
charset=UTF-8
|
52149
|
+
Content-Transfer-Encoding: 7bit
|
52150
|
+
|
52151
|
+
Your report could not be created due to the following problem:
|
52152
|
+
<strong>At least one date range is required.</strong>
|
52153
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
52154
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52155
|
+
----------------------------------------------------------------------------------
|
52156
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_date_report_filter
|
52157
|
+
----------------------------------------------------------------------------------
|
52158
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52159
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52160
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52161
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52162
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52163
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
52164
|
+
Parameters: {"report_filter"=>{"duration"=>"week", "filter_name"=>"created_at", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
|
52165
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52166
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52167
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-21 17:10:31 UTC], ["updated_at", 2017-02-21 17:10:31 UTC]]
|
52168
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52169
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52170
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.3ms)
|
52171
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (6.0ms)
|
52172
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (8.8ms)
|
52173
|
+
Completed 200 OK in 16ms (Views: 12.0ms | ActiveRecord: 0.5ms)
|
52174
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
52175
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
52176
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52177
|
+
-----------------------------------------------------------------------------
|
52178
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_report_filter
|
52179
|
+
-----------------------------------------------------------------------------
|
52180
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52181
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52182
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52183
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52184
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52185
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
52186
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
52187
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52188
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52189
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-21 17:10:31 UTC], ["updated_at", 2017-02-21 17:10:31 UTC]]
|
52190
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52191
|
+
[1m[36mClarkKent::Report Load (0.3ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52192
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.5ms)
|
52193
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (7.7ms)
|
52194
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (7.9ms)
|
52195
|
+
Completed 200 OK in 21ms (Views: 8.0ms | ActiveRecord: 0.6ms)
|
52196
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
52197
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52198
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52199
|
+
-----------------------------------------------------------------------------------------
|
52200
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_string_filter
|
52201
|
+
-----------------------------------------------------------------------------------------
|
52202
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52203
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52204
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52205
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52206
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52207
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52208
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-21 17:10:31 UTC], ["updated_at", 2017-02-21 17:10:31 UTC]]
|
52209
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52210
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
52211
|
+
Parameters: {"id"=>"1"}
|
52212
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52213
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52214
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52215
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.4ms)
|
52216
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (9.9ms)
|
52217
|
+
Completed 200 OK in 15ms (Views: 12.3ms | ActiveRecord: 0.2ms)
|
52218
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52219
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52220
|
+
------------------------------------------------------------------------------------------
|
52221
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_an_object_filter
|
52222
|
+
------------------------------------------------------------------------------------------
|
52223
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52224
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52225
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52226
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52227
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52228
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52229
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-21 17:10:32 UTC], ["updated_at", 2017-02-21 17:10:32 UTC]]
|
52230
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52231
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
52232
|
+
Parameters: {"id"=>"1"}
|
52233
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52234
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52235
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52236
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
52237
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (2.4ms)
|
52238
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (10.7ms)
|
52239
|
+
Completed 200 OK in 14ms (Views: 11.0ms | ActiveRecord: 0.3ms)
|
52240
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
52241
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52242
|
+
-----------------------------------------------------------------------------------------
|
52243
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_string_filter
|
52244
|
+
-----------------------------------------------------------------------------------------
|
52245
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52246
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52247
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52248
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52249
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52250
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52251
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-21 17:10:32 UTC], ["updated_at", 2017-02-21 17:10:32 UTC]]
|
52252
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52253
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
52254
|
+
Parameters: {"id"=>"1"}
|
52255
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52256
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52257
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52258
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.0ms)
|
52259
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (1.5ms)
|
52260
|
+
Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.1ms)
|
52261
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
52262
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52263
|
+
---------------------------------------------------------------------------------------
|
52264
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_date_filter
|
52265
|
+
---------------------------------------------------------------------------------------
|
52266
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52267
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52268
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52269
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52270
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52271
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52272
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-21 17:10:32 UTC], ["updated_at", 2017-02-21 17:10:32 UTC]]
|
52273
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52274
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
52275
|
+
Parameters: {"id"=>"1"}
|
52276
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52277
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52278
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52279
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (5.2ms)
|
52280
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (12.4ms)
|
52281
|
+
Completed 200 OK in 15ms (Views: 12.7ms | ActiveRecord: 0.2ms)
|
52282
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52283
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52284
|
+
-------------------------------------------------------------------------------------
|
52285
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_an_object_report_filter
|
52286
|
+
-------------------------------------------------------------------------------------
|
52287
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52288
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52289
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52290
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52291
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52292
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
52293
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_id", "filter_value"=>"1", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
52294
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52295
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52296
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-21 17:10:32 UTC], ["updated_at", 2017-02-21 17:10:32 UTC]]
|
52297
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52298
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52299
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52300
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (1.6ms)
|
52301
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (10.0ms)
|
52302
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (10.4ms)
|
52303
|
+
Completed 200 OK in 17ms (Views: 10.7ms | ActiveRecord: 0.6ms)
|
52304
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
52305
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
52306
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52307
|
+
------------------------------------------------------------------------------------------
|
52308
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_an_object_filter
|
52309
|
+
------------------------------------------------------------------------------------------
|
52310
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52311
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52312
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52313
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52314
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52315
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52316
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-21 17:10:32 UTC], ["updated_at", 2017-02-21 17:10:32 UTC]]
|
52317
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52318
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
52319
|
+
Parameters: {"id"=>"1"}
|
52320
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52321
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52322
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52323
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52324
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.5ms)
|
52325
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (3.1ms)
|
52326
|
+
Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms)
|
52327
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52328
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52329
|
+
---------------------------------------------------------------------------------------
|
52330
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_date_filter
|
52331
|
+
---------------------------------------------------------------------------------------
|
52332
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52333
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52334
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52335
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52336
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52337
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52338
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-21 17:10:32 UTC], ["updated_at", 2017-02-21 17:10:32 UTC]]
|
52339
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52340
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
52341
|
+
Parameters: {"id"=>"1"}
|
52342
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52343
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52344
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52345
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.1ms)
|
52346
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (1.9ms)
|
52347
|
+
Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.1ms)
|
52348
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
52349
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
52350
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)[0m
|
52351
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
52352
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
52353
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar)[0m
|
52354
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
52355
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
52356
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
52357
|
+
FROM sqlite_master
|
52358
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
52359
|
+
UNION ALL
|
52360
|
+
SELECT sql
|
52361
|
+
FROM sqlite_temp_master
|
52362
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
52363
|
+
[0m
|
52364
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
52365
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)[0m
|
52366
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
52367
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
52368
|
+
FROM sqlite_master
|
52369
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
52370
|
+
UNION ALL
|
52371
|
+
SELECT sql
|
52372
|
+
FROM sqlite_temp_master
|
52373
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
52374
|
+
[0m
|
52375
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
52376
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)[0m
|
52377
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
52378
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
52379
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer)[0m
|
52380
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
52381
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
52382
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
52383
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
52384
|
+
('20131226170042'),
|
52385
|
+
('20131226170112'),
|
52386
|
+
('20140114010048'),
|
52387
|
+
('20140129051754'),
|
52388
|
+
('20150304233739');
|
52389
|
+
|
52390
|
+
[0m
|
52391
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
52392
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
52393
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52394
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-02-21 17:14:37 UTC], ["updated_at", 2017-02-21 17:14:37 UTC]]
|
52395
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
52396
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
52397
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
52398
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
52399
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52400
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-02-21 17:14:37 UTC], ["updated_at", 2017-02-21 17:14:37 UTC]]
|
52401
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
52402
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52403
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52404
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
52405
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
52406
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52407
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "id"], ["column_order", 2]]
|
52408
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
52409
|
+
[1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
|
52410
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52411
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "amount"], ["column_order", 3]]
|
52412
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
52413
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52414
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52415
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "description"], ["column_order", 4]]
|
52416
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
52417
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52418
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
52419
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
52420
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
52421
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?)[0m [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
52422
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
52423
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
52424
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "orders" ("user_id", "amount", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["amount", 1], ["description", "Guitar strings"], ["created_at", 2017-02-21 17:14:37 UTC], ["updated_at", 2017-02-21 17:14:37 UTC]]
|
52425
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
52426
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52427
|
+
-------------------------------------------------------------------------
|
52428
|
+
ClarkKent::ReportsControllerTest: test_0007_should show report run errors
|
52429
|
+
-------------------------------------------------------------------------
|
52430
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52431
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52432
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52433
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52434
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52435
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
52436
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
52437
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52438
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
52439
|
+
[1m[36mClarkKent::ReportFilter Load (0.5ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52440
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52441
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
52442
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.8ms)
|
52443
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52444
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
52445
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (2.7ms)
|
52446
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.5ms)
|
52447
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.6ms)
|
52448
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (19.0ms)
|
52449
|
+
Completed 200 OK in 216ms (Views: 190.7ms | ActiveRecord: 1.9ms)
|
52450
|
+
[1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
|
52451
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52452
|
+
-----------------------------------------------------------
|
52453
|
+
ClarkKent::ReportsControllerTest: test_0008_should get edit
|
52454
|
+
-----------------------------------------------------------
|
52455
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52456
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52457
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52458
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52459
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52460
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
52461
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
52462
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52463
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
52464
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (2.4ms)
|
52465
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52466
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (3.1ms)
|
52467
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
52468
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.0ms)
|
52469
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (4.6ms)
|
52470
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
52471
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.5ms)
|
52472
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
52473
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.4ms)
|
52474
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (10.4ms)
|
52475
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 1]]
|
52476
|
+
[1m[36mClarkKent::ReportDateFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."type" IN ('ClarkKent::ReportDateFilter') AND "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
52477
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" INNER JOIN "clark_kent_user_report_emails" ON "users"."id" = "clark_kent_user_report_emails"."user_id" WHERE "clark_kent_user_report_emails"."report_email_id" = ?[0m [["report_email_id", 1]]
|
52478
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (19.9ms)
|
52479
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (25.1ms)
|
52480
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (31.0ms)
|
52481
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (58.0ms)
|
52482
|
+
Completed 200 OK in 64ms (Views: 59.7ms | ActiveRecord: 0.7ms)
|
52483
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
52484
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52485
|
+
-----------------------------------------------------------------
|
52486
|
+
ClarkKent::ReportsControllerTest: test_0010_should destroy report
|
52487
|
+
-----------------------------------------------------------------
|
52488
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52489
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52490
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52491
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52492
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52493
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["created_at", 2017-02-21 17:14:38 UTC], ["updated_at", 2017-02-21 17:14:38 UTC]]
|
52494
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52495
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
52496
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52497
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
52498
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
52499
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
52500
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52501
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
52502
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
52503
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
52504
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
52505
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52506
|
+
Redirected to http://test.host/reports/reports
|
52507
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
52508
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
52509
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
52510
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52511
|
+
----------------------------------------------------------------------
|
52512
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
52513
|
+
----------------------------------------------------------------------
|
52514
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52515
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52516
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52517
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52518
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52519
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
52520
|
+
Parameters: {"created_at_from"=>"2017-02-20", "created_at_until"=>"2017-02-21", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
52521
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52522
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
52523
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52524
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52525
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
52526
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
52527
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52528
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
52529
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.1ms)
|
52530
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
52531
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
52532
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(count_column) FROM (SELECT "orders"."id" AS count_column FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?) subquery_for_count[0m [["LIMIT", 10], ["OFFSET", 0]]
|
52533
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (5.5ms)
|
52534
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
52535
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT "orders".* FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
52536
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52537
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52538
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52539
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (1.0ms)
|
52540
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (23.4ms)
|
52541
|
+
Completed 200 OK in 32ms (Views: 24.8ms | ActiveRecord: 1.5ms)
|
52542
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
52543
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
52544
|
+
----------------------------------------------------------------
|
52545
|
+
ClarkKent::ReportsControllerTest: test_0009_should update report
|
52546
|
+
----------------------------------------------------------------
|
52547
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52548
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52549
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52550
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52551
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52552
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
52553
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}, "id"=>"1"}
|
52554
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52555
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52556
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "name" = ?, "sharing_scope_type" = ?, "updated_at" = ? WHERE "clark_kent_reports"."id" = ?[0m [["name", ""], ["sharing_scope_type", ""], ["updated_at", 2017-02-21 17:14:38 UTC], ["id", 1]]
|
52557
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52558
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.1ms)
|
52559
|
+
Completed 200 OK in 6ms (Views: 1.5ms | ActiveRecord: 0.5ms)
|
52560
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
52561
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52562
|
+
--------------------------------------------------------------------------------
|
52563
|
+
ClarkKent::ReportsControllerTest: test_0004_should render errors during creation
|
52564
|
+
--------------------------------------------------------------------------------
|
52565
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52566
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52567
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52568
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52569
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52570
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
52571
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
52572
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52573
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
52574
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
52575
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52576
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52577
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (43.7ms)
|
52578
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (47.8ms)
|
52579
|
+
Completed 409 Conflict in 57ms (Views: 51.8ms | ActiveRecord: 0.3ms)
|
52580
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT ?[0m [["name", "delete me"], ["LIMIT", 1]]
|
52581
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52582
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52583
|
+
------------------------------------------------------------
|
52584
|
+
ClarkKent::ReportsControllerTest: test_0001_should get index
|
52585
|
+
------------------------------------------------------------
|
52586
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52587
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52588
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52589
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52590
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52591
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
52592
|
+
Parameters: {"current_user_id"=>"1"}
|
52593
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application
|
52594
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52595
|
+
[1m[36mClarkKent::Report Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT ?[0m [["sharing_scope_id", 1], ["sharing_scope_type", "User"], ["LIMIT", 1]]
|
52596
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52597
|
+
[1m[36mClarkKent::Report Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT ?[0m [["sharing_scope_id", 1], ["sharing_scope_type", "Department"], ["LIMIT", 1]]
|
52598
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
52599
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
52600
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (10.3ms)
|
52601
|
+
Completed 200 OK in 15ms (Views: 11.8ms | ActiveRecord: 0.6ms)
|
52602
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
52603
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52604
|
+
----------------------------------------------------------
|
52605
|
+
ClarkKent::ReportsControllerTest: test_0002_should get new
|
52606
|
+
----------------------------------------------------------
|
52607
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52608
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52609
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52610
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52611
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52612
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
52613
|
+
Parameters: {"current_user_id"=>"1"}
|
52614
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
52615
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52616
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52617
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (33.1ms)
|
52618
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (33.6ms)
|
52619
|
+
Completed 200 OK in 37ms (Views: 36.0ms | ActiveRecord: 0.1ms)
|
52620
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
52621
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
52622
|
+
--------------------------------------------------------------
|
52623
|
+
ClarkKent::ReportsControllerTest: test_0005_should show report
|
52624
|
+
--------------------------------------------------------------
|
52625
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52626
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52627
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52628
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52629
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52630
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
52631
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
52632
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52633
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
52634
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
52635
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52636
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52637
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52638
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.4ms)
|
52639
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52640
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
52641
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.5ms)
|
52642
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
52643
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
52644
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (6.9ms)
|
52645
|
+
Completed 200 OK in 12ms (Views: 9.1ms | ActiveRecord: 0.5ms)
|
52646
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52647
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52648
|
+
----------------------------------------------------------------
|
52649
|
+
ClarkKent::ReportsControllerTest: test_0003_should create report
|
52650
|
+
----------------------------------------------------------------
|
52651
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52652
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52653
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52654
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52655
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52656
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
52657
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
52658
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52659
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "sharing_scope_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["sharing_scope_type", ""], ["created_at", 2017-02-21 17:14:38 UTC], ["updated_at", 2017-02-21 17:14:38 UTC]]
|
52660
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52661
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
52662
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.0ms)
|
52663
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
52664
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (2.7ms)
|
52665
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
52666
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (1.9ms)
|
52667
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
52668
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (1.7ms)
|
52669
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (8.3ms)
|
52670
|
+
Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.5ms)
|
52671
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT ?[0m [["name", "delete me"], ["LIMIT", 1]]
|
52672
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52673
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
52674
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
52675
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
52676
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
52677
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52678
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
52679
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
52680
|
+
------------------------------------------------------------------------------------------------
|
52681
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
52682
|
+
------------------------------------------------------------------------------------------------
|
52683
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52684
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
52685
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
52686
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52687
|
+
-----------------------------------------------------
|
52688
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
52689
|
+
-----------------------------------------------------
|
52690
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
52691
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52692
|
+
-------------------------
|
52693
|
+
ClarkKentTest: test_truth
|
52694
|
+
-------------------------
|
52695
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
52696
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
52697
|
+
--------------------------------------------------------------------------
|
52698
|
+
ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
52699
|
+
--------------------------------------------------------------------------
|
52700
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52701
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52702
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52703
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52704
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
52705
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
52706
|
+
---------------------------------------------------------------------------------------
|
52707
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_date_filter
|
52708
|
+
---------------------------------------------------------------------------------------
|
52709
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52710
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52711
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52712
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52713
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52714
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52715
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-21 17:14:38 UTC], ["updated_at", 2017-02-21 17:14:38 UTC]]
|
52716
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52717
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
52718
|
+
Parameters: {"id"=>"1"}
|
52719
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52720
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52721
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52722
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (5.2ms)
|
52723
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (15.2ms)
|
52724
|
+
Completed 200 OK in 22ms (Views: 18.2ms | ActiveRecord: 0.3ms)
|
52725
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52726
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52727
|
+
------------------------------------------------------------------------------------------
|
52728
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_an_object_filter
|
52729
|
+
------------------------------------------------------------------------------------------
|
52730
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52731
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52732
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52733
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52734
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52735
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52736
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-21 17:14:38 UTC], ["updated_at", 2017-02-21 17:14:38 UTC]]
|
52737
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52738
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
52739
|
+
Parameters: {"id"=>"1"}
|
52740
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52741
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52742
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52743
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
52744
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (3.2ms)
|
52745
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (11.7ms)
|
52746
|
+
Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.2ms)
|
52747
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52748
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52749
|
+
------------------------------------------------------------------------------------------
|
52750
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_an_object_filter
|
52751
|
+
------------------------------------------------------------------------------------------
|
52752
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52753
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52754
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52755
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52756
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52757
|
+
[1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52758
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-21 17:14:38 UTC], ["updated_at", 2017-02-21 17:14:38 UTC]]
|
52759
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52760
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
52761
|
+
Parameters: {"id"=>"1"}
|
52762
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52763
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52764
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52765
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52766
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (1.4ms)
|
52767
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (6.5ms)
|
52768
|
+
Completed 200 OK in 18ms (Views: 9.3ms | ActiveRecord: 0.3ms)
|
52769
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52770
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52771
|
+
-----------------------------------------------------------------------------------------
|
52772
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_string_filter
|
52773
|
+
-----------------------------------------------------------------------------------------
|
52774
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52775
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52776
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52777
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52778
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52779
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52780
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-21 17:14:38 UTC], ["updated_at", 2017-02-21 17:14:38 UTC]]
|
52781
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52782
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
52783
|
+
Parameters: {"id"=>"1"}
|
52784
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52785
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52786
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52787
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.4ms)
|
52788
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (10.1ms)
|
52789
|
+
Completed 200 OK in 14ms (Views: 10.5ms | ActiveRecord: 0.2ms)
|
52790
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
52791
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52792
|
+
----------------------------------------------------------------------------------
|
52793
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_date_report_filter
|
52794
|
+
----------------------------------------------------------------------------------
|
52795
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52796
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52797
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52798
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52799
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52800
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
52801
|
+
Parameters: {"report_filter"=>{"duration"=>"week", "filter_name"=>"created_at", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
|
52802
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52803
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52804
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-21 17:14:38 UTC], ["updated_at", 2017-02-21 17:14:38 UTC]]
|
52805
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52806
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52807
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.3ms)
|
52808
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.6ms)
|
52809
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (6.4ms)
|
52810
|
+
Completed 200 OK in 14ms (Views: 9.6ms | ActiveRecord: 0.4ms)
|
52811
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
52812
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52813
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52814
|
+
---------------------------------------------------------------------------------------
|
52815
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_date_filter
|
52816
|
+
---------------------------------------------------------------------------------------
|
52817
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52818
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52819
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52820
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52821
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52822
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52823
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-21 17:14:38 UTC], ["updated_at", 2017-02-21 17:14:38 UTC]]
|
52824
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52825
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
52826
|
+
Parameters: {"id"=>"1"}
|
52827
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52828
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52829
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52830
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.1ms)
|
52831
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.1ms)
|
52832
|
+
Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.2ms)
|
52833
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52834
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52835
|
+
-----------------------------------------------------------------------------------------
|
52836
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_string_filter
|
52837
|
+
-----------------------------------------------------------------------------------------
|
52838
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52839
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52840
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52841
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52842
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52843
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52844
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-21 17:14:38 UTC], ["updated_at", 2017-02-21 17:14:38 UTC]]
|
52845
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52846
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
52847
|
+
Parameters: {"id"=>"1"}
|
52848
|
+
[1m[36mClarkKent::ReportFilter Load (0.4ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52849
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52850
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52851
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.4ms)
|
52852
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.2ms)
|
52853
|
+
Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.5ms)
|
52854
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
52855
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52856
|
+
-------------------------------------------------------------------------------------
|
52857
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_an_object_report_filter
|
52858
|
+
-------------------------------------------------------------------------------------
|
52859
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52860
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52861
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52862
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52863
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52864
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
52865
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_id", "filter_value"=>"1", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
52866
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52867
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52868
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-21 17:14:38 UTC], ["updated_at", 2017-02-21 17:14:38 UTC]]
|
52869
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52870
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52871
|
+
[1m[36mUser Load (0.5ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52872
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.9ms)
|
52873
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (3.4ms)
|
52874
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (3.6ms)
|
52875
|
+
Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.8ms)
|
52876
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
52877
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52878
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52879
|
+
-----------------------------------------------------------------------------
|
52880
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_report_filter
|
52881
|
+
-----------------------------------------------------------------------------
|
52882
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52883
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52884
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
52885
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52886
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52887
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
52888
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
52889
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52890
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52891
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-21 17:14:38 UTC], ["updated_at", 2017-02-21 17:14:38 UTC]]
|
52892
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52893
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52894
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.0ms)
|
52895
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.4ms)
|
52896
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.6ms)
|
52897
|
+
Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.4ms)
|
52898
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
52899
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
52900
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52901
|
+
---------------------------------------------------
|
52902
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
52903
|
+
---------------------------------------------------
|
52904
|
+
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
52905
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52906
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
52907
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52908
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
52909
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52910
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52911
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "this_week"], ["created_at", 2017-02-21 17:14:38 UTC], ["updated_at", 2017-02-21 17:14:38 UTC]]
|
52912
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52913
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52914
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52915
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52916
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52917
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52918
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
52919
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52920
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
52921
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52922
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52923
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52924
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52925
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
52926
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
52927
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
52928
|
+
-----------------------------------------------------------------------------------------
|
52929
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
52930
|
+
-----------------------------------------------------------------------------------------
|
52931
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
52932
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
52933
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
52934
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52935
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
52936
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52937
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52938
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52939
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52940
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52941
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52942
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
52943
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
52944
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
52945
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52946
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
52947
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52948
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
52949
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb
|
52950
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (0.5ms)
|
52951
|
+
ClarkKent::ReportMailer#report_error: processed outbound mail in 154.6ms
|
52952
|
+
Sent mail to taproot@gmail.com (4.7ms)
|
52953
|
+
Date: Tue, 21 Feb 2017 10:14:39 -0700
|
52954
|
+
From: reservations@invitedhome.com
|
52955
|
+
To: taproot@gmail.com
|
52956
|
+
Message-ID: <58ac757f2c0c9_88ad3fd33143fa14975f4@Erics-MacBook-Pro.local.mail>
|
52957
|
+
Subject: Your report has a problem
|
52958
|
+
Mime-Version: 1.0
|
52959
|
+
Content-Type: text/html;
|
52960
|
+
charset=UTF-8
|
52961
|
+
Content-Transfer-Encoding: 7bit
|
52962
|
+
|
52963
|
+
Your report could not be created due to the following problem:
|
52964
|
+
<strong>At least one date range is required.</strong>
|
52965
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
52966
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52967
|
+
--------------------------------------------------------------------------
|
52968
|
+
ClarkKent::ReportableTest: test_0002_it works without any required filters
|
52969
|
+
--------------------------------------------------------------------------
|
52970
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52971
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-02-21 17:14:39 UTC], ["updated_at", 2017-02-21 17:14:39 UTC]]
|
52972
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52973
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
52974
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
52975
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
52976
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
52977
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52978
|
+
--------------------------------------------------------------------------
|
52979
|
+
ClarkKent::ReportableTest: test_0003_doesn't blow up if order_sql is blank
|
52980
|
+
--------------------------------------------------------------------------
|
52981
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52982
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-02-21 17:14:39 UTC], ["updated_at", 2017-02-21 17:14:39 UTC]]
|
52983
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52984
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52985
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
52986
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52987
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
52988
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
52989
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
52990
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
52991
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
52992
|
+
------------------------------------------------------------------------
|
52993
|
+
ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
52994
|
+
------------------------------------------------------------------------
|
52995
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
52996
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "Order"], ["created_at", 2017-02-21 17:14:39 UTC], ["updated_at", 2017-02-21 17:14:39 UTC]]
|
52997
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
52998
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
52999
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
53000
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53001
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53002
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|