clark_kent 0.8.9 → 0.8.10
Sign up to get free protection for your applications and to get access to all the features.
data/test/dummy/log/test.log
CHANGED
@@ -64023,3 +64023,2168 @@ Processing by ClarkKent::ReportsController#new as HTML
|
|
64023
64023
|
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (10.3ms)
|
64024
64024
|
Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.2ms)
|
64025
64025
|
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
64026
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
64027
|
+
[1m[35m (1.4ms)[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
|
64028
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
64029
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
64030
|
+
[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
|
64031
|
+
[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
|
64032
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
64033
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
64034
|
+
FROM sqlite_master
|
64035
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
64036
|
+
UNION ALL
|
64037
|
+
SELECT sql
|
64038
|
+
FROM sqlite_temp_master
|
64039
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
64040
|
+
[0m
|
64041
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
64042
|
+
[1m[35m (1.0ms)[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
|
64043
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
64044
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
64045
|
+
FROM sqlite_master
|
64046
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
64047
|
+
UNION ALL
|
64048
|
+
SELECT sql
|
64049
|
+
FROM sqlite_temp_master
|
64050
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
64051
|
+
[0m
|
64052
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
64053
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)[0m
|
64054
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
64055
|
+
[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
|
64056
|
+
[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
|
64057
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
64058
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
64059
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
64060
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
64061
|
+
('20131226170042'),
|
64062
|
+
('20131226170112'),
|
64063
|
+
('20140114010048'),
|
64064
|
+
('20140129051754'),
|
64065
|
+
('20150304233739');
|
64066
|
+
|
64067
|
+
[0m
|
64068
|
+
[1m[35m (0.9ms)[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
|
64069
|
+
[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]]
|
64070
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64071
|
+
[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-04-07 18:43:05 UTC], ["updated_at", 2017-04-07 18:43:05 UTC]]
|
64072
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
64073
|
+
[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]]
|
64074
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64075
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
64076
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
64077
|
+
[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-04-07 18:43:05 UTC], ["updated_at", 2017-04-07 18:43:05 UTC]]
|
64078
|
+
[1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
|
64079
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
64080
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "user_name"], ["column_order", 1]]
|
64081
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
64082
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64083
|
+
[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]]
|
64084
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
64085
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
64086
|
+
[1m[35mSQL (0.2ms)[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]]
|
64087
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
64088
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64089
|
+
[1m[35mSQL (0.2ms)[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]]
|
64090
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
64091
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
64092
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
64093
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
64094
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
64095
|
+
[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]]
|
64096
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
64097
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64098
|
+
[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-04-07 18:43:05 UTC], ["updated_at", 2017-04-07 18:43:05 UTC]]
|
64099
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
64100
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64101
|
+
---------------------------------------------------------------------------------------------------
|
64102
|
+
ClarkKent::ReportColumnsControllerTest: test_0002_should reject a report column with no column_name
|
64103
|
+
---------------------------------------------------------------------------------------------------
|
64104
|
+
[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]]
|
64105
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
64106
|
+
Parameters: {"report_column"=>{"report_id"=>"1"}}
|
64107
|
+
[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]]
|
64108
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64109
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
64110
|
+
[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]]
|
64111
|
+
[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]]
|
64112
|
+
[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]]
|
64113
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (94.3ms)
|
64114
|
+
Completed 409 Conflict in 138ms (Views: 126.6ms | ActiveRecord: 0.6ms)
|
64115
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
64116
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64117
|
+
-------------------------------------------------------------------------------
|
64118
|
+
ClarkKent::ReportColumnsControllerTest: test_0001_should create a report column
|
64119
|
+
-------------------------------------------------------------------------------
|
64120
|
+
[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]]
|
64121
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
64122
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1"}}
|
64123
|
+
[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]]
|
64124
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64125
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name") VALUES (?, ?)[0m [["report_id", 1], ["column_name", "user_name"]]
|
64126
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64127
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.5ms)
|
64128
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (35.8ms)
|
64129
|
+
Completed 200 OK in 68ms (Views: 65.7ms | ActiveRecord: 0.6ms)
|
64130
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
64131
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64132
|
+
--------------------------------------------------------------------------------------------------
|
64133
|
+
ClarkKent::ReportColumnsControllerTest: test_0003_should reject a report column with unusable sort
|
64134
|
+
--------------------------------------------------------------------------------------------------
|
64135
|
+
[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]]
|
64136
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
64137
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1", "report_sort"=>"ascending"}}
|
64138
|
+
[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]]
|
64139
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64140
|
+
[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]]
|
64141
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
64142
|
+
[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]]
|
64143
|
+
[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]]
|
64144
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (7.9ms)
|
64145
|
+
Completed 409 Conflict in 11ms (Views: 8.0ms | ActiveRecord: 0.4ms)
|
64146
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
64147
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64148
|
+
---------------------------------------------------
|
64149
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
64150
|
+
---------------------------------------------------
|
64151
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
64152
|
+
[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]]
|
64153
|
+
[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]]
|
64154
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64155
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
64156
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64157
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64158
|
+
[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-04-07 18:43:06 UTC], ["updated_at", 2017-04-07 18:43:06 UTC]]
|
64159
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64160
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64161
|
+
[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"]]
|
64162
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64163
|
+
[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]]
|
64164
|
+
[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]]
|
64165
|
+
[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]]
|
64166
|
+
[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"]]
|
64167
|
+
[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"]]
|
64168
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
64169
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
64170
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64171
|
+
-----------------------------------------------------------------------------------------
|
64172
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
64173
|
+
-----------------------------------------------------------------------------------------
|
64174
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
64175
|
+
[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]]
|
64176
|
+
[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]]
|
64177
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64178
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
64179
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64180
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64181
|
+
[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"]]
|
64182
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64183
|
+
[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]]
|
64184
|
+
[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]]
|
64185
|
+
[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]]
|
64186
|
+
[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"]]
|
64187
|
+
[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"]]
|
64188
|
+
[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]]
|
64189
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64190
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb
|
64191
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (0.5ms)
|
64192
|
+
ClarkKent::ReportMailer#report_error: processed outbound mail in 178.4ms
|
64193
|
+
Sent mail to taproot@gmail.com (8.5ms)
|
64194
|
+
Date: Fri, 07 Apr 2017 12:43:06 -0600
|
64195
|
+
From: reservations@invitedhome.com
|
64196
|
+
To: taproot@gmail.com
|
64197
|
+
Message-ID: <58e7ddbae4424_57853fcca003fa14388de@Erics-MacBook-Pro.local.mail>
|
64198
|
+
Subject: Your report has a problem
|
64199
|
+
Mime-Version: 1.0
|
64200
|
+
Content-Type: text/html;
|
64201
|
+
charset=UTF-8
|
64202
|
+
Content-Transfer-Encoding: 7bit
|
64203
|
+
|
64204
|
+
Your report could not be created due to the following problem:
|
64205
|
+
<strong>At least one date range is required.</strong>
|
64206
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
64207
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64208
|
+
-----------------------------------------------------------------------------------------
|
64209
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_string_filter
|
64210
|
+
-----------------------------------------------------------------------------------------
|
64211
|
+
[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]]
|
64212
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64213
|
+
[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"]]
|
64214
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64215
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64216
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64217
|
+
[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_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-04-07 18:43:06 UTC], ["updated_at", 2017-04-07 18:43:06 UTC]]
|
64218
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64219
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
64220
|
+
Parameters: {"id"=>"1"}
|
64221
|
+
[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]]
|
64222
|
+
[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]]
|
64223
|
+
[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]]
|
64224
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.7ms)
|
64225
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.9ms)
|
64226
|
+
Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 0.2ms)
|
64227
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64228
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64229
|
+
---------------------------------------------------------------------------------------
|
64230
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_date_filter
|
64231
|
+
---------------------------------------------------------------------------------------
|
64232
|
+
[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]]
|
64233
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64234
|
+
[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"]]
|
64235
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64236
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64237
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64238
|
+
[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-04-07 18:43:06 UTC], ["updated_at", 2017-04-07 18:43:06 UTC]]
|
64239
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64240
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
64241
|
+
Parameters: {"id"=>"1"}
|
64242
|
+
[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]]
|
64243
|
+
[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]]
|
64244
|
+
[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]]
|
64245
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.4ms)
|
64246
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (4.1ms)
|
64247
|
+
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.1ms)
|
64248
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64249
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64250
|
+
----------------------------------------------------------------------------------
|
64251
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_date_report_filter
|
64252
|
+
----------------------------------------------------------------------------------
|
64253
|
+
[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]]
|
64254
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64255
|
+
[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"]]
|
64256
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64257
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64258
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
64259
|
+
Parameters: {"report_filter"=>{"duration"=>"week", "filter_name"=>"created_at", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
|
64260
|
+
[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]]
|
64261
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64262
|
+
[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-04-07 18:43:07 UTC], ["updated_at", 2017-04-07 18:43:07 UTC]]
|
64263
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64264
|
+
[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]]
|
64265
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.1ms)
|
64266
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.8ms)
|
64267
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (3.4ms)
|
64268
|
+
Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.4ms)
|
64269
|
+
[1m[36mClarkKent::ReportFilter Load (0.4ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
64270
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64271
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64272
|
+
------------------------------------------------------------------------------------------
|
64273
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_an_object_filter
|
64274
|
+
------------------------------------------------------------------------------------------
|
64275
|
+
[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]]
|
64276
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64277
|
+
[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"]]
|
64278
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64279
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64280
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64281
|
+
[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-04-07 18:43:07 UTC], ["updated_at", 2017-04-07 18:43:07 UTC]]
|
64282
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64283
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
64284
|
+
Parameters: {"id"=>"1"}
|
64285
|
+
[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]]
|
64286
|
+
[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]]
|
64287
|
+
[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]]
|
64288
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64289
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.6ms)
|
64290
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (4.4ms)
|
64291
|
+
Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.2ms)
|
64292
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
64293
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64294
|
+
-----------------------------------------------------------------------------
|
64295
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_report_filter
|
64296
|
+
-----------------------------------------------------------------------------
|
64297
|
+
[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]]
|
64298
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64299
|
+
[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"]]
|
64300
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64301
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64302
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
64303
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
64304
|
+
[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]]
|
64305
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64306
|
+
[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-04-07 18:43:07 UTC], ["updated_at", 2017-04-07 18:43:07 UTC]]
|
64307
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64308
|
+
[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]]
|
64309
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.1ms)
|
64310
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.4ms)
|
64311
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.7ms)
|
64312
|
+
Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.4ms)
|
64313
|
+
[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]]
|
64314
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64315
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64316
|
+
---------------------------------------------------------------------------------------
|
64317
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_date_filter
|
64318
|
+
---------------------------------------------------------------------------------------
|
64319
|
+
[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]]
|
64320
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64321
|
+
[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"]]
|
64322
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64323
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64324
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64325
|
+
[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-04-07 18:43:07 UTC], ["updated_at", 2017-04-07 18:43:07 UTC]]
|
64326
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64327
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
64328
|
+
Parameters: {"id"=>"1"}
|
64329
|
+
[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]]
|
64330
|
+
[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]]
|
64331
|
+
[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]]
|
64332
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (4.1ms)
|
64333
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (12.4ms)
|
64334
|
+
Completed 200 OK in 17ms (Views: 14.9ms | ActiveRecord: 0.1ms)
|
64335
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
64336
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64337
|
+
-----------------------------------------------------------------------------------------
|
64338
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_string_filter
|
64339
|
+
-----------------------------------------------------------------------------------------
|
64340
|
+
[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]]
|
64341
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64342
|
+
[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"]]
|
64343
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64344
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64345
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64346
|
+
[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-04-07 18:43:07 UTC], ["updated_at", 2017-04-07 18:43:07 UTC]]
|
64347
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64348
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
64349
|
+
Parameters: {"id"=>"1"}
|
64350
|
+
[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]]
|
64351
|
+
[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]]
|
64352
|
+
[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]]
|
64353
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.3ms)
|
64354
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (7.1ms)
|
64355
|
+
Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.3ms)
|
64356
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
64357
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64358
|
+
------------------------------------------------------------------------------------------
|
64359
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_an_object_filter
|
64360
|
+
------------------------------------------------------------------------------------------
|
64361
|
+
[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]]
|
64362
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64363
|
+
[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"]]
|
64364
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64365
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64366
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64367
|
+
[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-04-07 18:43:07 UTC], ["updated_at", 2017-04-07 18:43:07 UTC]]
|
64368
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64369
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
64370
|
+
Parameters: {"id"=>"1"}
|
64371
|
+
[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]]
|
64372
|
+
[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]]
|
64373
|
+
[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]]
|
64374
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
64375
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (2.3ms)
|
64376
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (10.0ms)
|
64377
|
+
Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.2ms)
|
64378
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64379
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64380
|
+
-------------------------------------------------------------------------------------
|
64381
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_an_object_report_filter
|
64382
|
+
-------------------------------------------------------------------------------------
|
64383
|
+
[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]]
|
64384
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64385
|
+
[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"]]
|
64386
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64387
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64388
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
64389
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_id", "filter_value"=>"1", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
64390
|
+
[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]]
|
64391
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64392
|
+
[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-04-07 18:43:07 UTC], ["updated_at", 2017-04-07 18:43:07 UTC]]
|
64393
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64394
|
+
[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]]
|
64395
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64396
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.3ms)
|
64397
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.0ms)
|
64398
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.2ms)
|
64399
|
+
Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms)
|
64400
|
+
[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]]
|
64401
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64402
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64403
|
+
------------------------------------------------------------------------
|
64404
|
+
ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
64405
|
+
------------------------------------------------------------------------
|
64406
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64407
|
+
[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-04-07 18:43:07 UTC], ["updated_at", 2017-04-07 18:43:07 UTC]]
|
64408
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64409
|
+
[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]]
|
64410
|
+
[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"]]
|
64411
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
64412
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64413
|
+
--------------------------------------------------------------------------
|
64414
|
+
ClarkKent::ReportableTest: test_0002_it works without any required filters
|
64415
|
+
--------------------------------------------------------------------------
|
64416
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64417
|
+
[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", "TestReportable"], ["created_at", 2017-04-07 18:43:07 UTC], ["updated_at", 2017-04-07 18:43:07 UTC]]
|
64418
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64419
|
+
[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]]
|
64420
|
+
[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"]]
|
64421
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
64422
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64423
|
+
--------------------------------------------------------------------------
|
64424
|
+
ClarkKent::ReportableTest: test_0003_doesn't blow up if order_sql is blank
|
64425
|
+
--------------------------------------------------------------------------
|
64426
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64427
|
+
[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", "TestReportable"], ["created_at", 2017-04-07 18:43:07 UTC], ["updated_at", 2017-04-07 18:43:07 UTC]]
|
64428
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64429
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64430
|
+
[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]]
|
64431
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64432
|
+
[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]]
|
64433
|
+
[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"]]
|
64434
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
64435
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
64436
|
+
--------------------------------------------------------------------------------
|
64437
|
+
ClarkKent::ReportsControllerTest: test_0004_should render errors during creation
|
64438
|
+
--------------------------------------------------------------------------------
|
64439
|
+
[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]]
|
64440
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64441
|
+
[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"]]
|
64442
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64443
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64444
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
64445
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
64446
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64447
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
64448
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
64449
|
+
[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]]
|
64450
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64451
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (9.8ms)
|
64452
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (13.0ms)
|
64453
|
+
Completed 409 Conflict in 169ms (Views: 165.7ms | ActiveRecord: 0.3ms)
|
64454
|
+
[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]]
|
64455
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
64456
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64457
|
+
-------------------------------------------------------------------------
|
64458
|
+
ClarkKent::ReportsControllerTest: test_0007_should show report run errors
|
64459
|
+
-------------------------------------------------------------------------
|
64460
|
+
[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]]
|
64461
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64462
|
+
[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"]]
|
64463
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64464
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64465
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
64466
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
64467
|
+
[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]]
|
64468
|
+
[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
|
64469
|
+
[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"]]
|
64470
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
64471
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.8ms)
|
64472
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64473
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
64474
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.5ms)
|
64475
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.4ms)
|
64476
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.8ms)
|
64477
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (15.3ms)
|
64478
|
+
Completed 200 OK in 31ms (Views: 17.9ms | ActiveRecord: 0.6ms)
|
64479
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
64480
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64481
|
+
-----------------------------------------------------------------
|
64482
|
+
ClarkKent::ReportsControllerTest: test_0010_should destroy report
|
64483
|
+
-----------------------------------------------------------------
|
64484
|
+
[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]]
|
64485
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64486
|
+
[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"]]
|
64487
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64488
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64489
|
+
[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-04-07 18:43:07 UTC], ["updated_at", 2017-04-07 18:43:07 UTC]]
|
64490
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64491
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
64492
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64493
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
64494
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
64495
|
+
[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]]
|
64496
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64497
|
+
[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"]]
|
64498
|
+
[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]]
|
64499
|
+
[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", 2]]
|
64500
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
64501
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64502
|
+
Redirected to http://test.host/reports/reports
|
64503
|
+
Completed 302 Found in 9ms (ActiveRecord: 0.6ms)
|
64504
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
64505
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64506
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64507
|
+
--------------------------------------------------------------
|
64508
|
+
ClarkKent::ReportsControllerTest: test_0005_should show report
|
64509
|
+
--------------------------------------------------------------
|
64510
|
+
[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]]
|
64511
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64512
|
+
[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"]]
|
64513
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64514
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64515
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
64516
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
64517
|
+
[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]]
|
64518
|
+
[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
|
64519
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
64520
|
+
[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"]]
|
64521
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
64522
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64523
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
64524
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.4ms)
|
64525
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
64526
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
64527
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (5.0ms)
|
64528
|
+
Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.4ms)
|
64529
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64530
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64531
|
+
------------------------------------------------------------
|
64532
|
+
ClarkKent::ReportsControllerTest: test_0001_should get index
|
64533
|
+
------------------------------------------------------------
|
64534
|
+
[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]]
|
64535
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64536
|
+
[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"]]
|
64537
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64538
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64539
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
64540
|
+
Parameters: {"current_user_id"=>"1"}
|
64541
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application
|
64542
|
+
[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]]
|
64543
|
+
[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]]
|
64544
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64545
|
+
[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]]
|
64546
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
64547
|
+
[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
|
64548
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (44.8ms)
|
64549
|
+
Completed 200 OK in 52ms (Views: 47.5ms | ActiveRecord: 0.5ms)
|
64550
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
64551
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64552
|
+
----------------------------------------------------------
|
64553
|
+
ClarkKent::ReportsControllerTest: test_0002_should get new
|
64554
|
+
----------------------------------------------------------
|
64555
|
+
[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]]
|
64556
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64557
|
+
[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"]]
|
64558
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64559
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64560
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
64561
|
+
Parameters: {"current_user_id"=>"1"}
|
64562
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
64563
|
+
[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]]
|
64564
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64565
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (6.3ms)
|
64566
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (6.9ms)
|
64567
|
+
Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.1ms)
|
64568
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64569
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64570
|
+
----------------------------------------------------------------------
|
64571
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
64572
|
+
----------------------------------------------------------------------
|
64573
|
+
[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]]
|
64574
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64575
|
+
[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"]]
|
64576
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64577
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64578
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
64579
|
+
Parameters: {"created_at_from"=>"2017-04-06", "created_at_until"=>"2017-04-07", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
64580
|
+
[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]]
|
64581
|
+
[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
|
64582
|
+
Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.2ms)
|
64583
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64584
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64585
|
+
-----------------------------------------------------------
|
64586
|
+
ClarkKent::ReportsControllerTest: test_0008_should get edit
|
64587
|
+
-----------------------------------------------------------
|
64588
|
+
[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]]
|
64589
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64590
|
+
[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"]]
|
64591
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64592
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64593
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
64594
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
64595
|
+
[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]]
|
64596
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
64597
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (2.0ms)
|
64598
|
+
[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"]]
|
64599
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (3.7ms)
|
64600
|
+
[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]]
|
64601
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.9ms)
|
64602
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (3.6ms)
|
64603
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.4ms)
|
64604
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.2ms)
|
64605
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.8ms)
|
64606
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (1.2ms)
|
64607
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.0ms)
|
64608
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (1.6ms)
|
64609
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (14.9ms)
|
64610
|
+
[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]]
|
64611
|
+
[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"]]
|
64612
|
+
[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]]
|
64613
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (21.4ms)
|
64614
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (24.7ms)
|
64615
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (31.5ms)
|
64616
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (68.5ms)
|
64617
|
+
Completed 200 OK in 75ms (Views: 70.3ms | ActiveRecord: 0.8ms)
|
64618
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64619
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64620
|
+
----------------------------------------------------------------
|
64621
|
+
ClarkKent::ReportsControllerTest: test_0009_should update report
|
64622
|
+
----------------------------------------------------------------
|
64623
|
+
[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]]
|
64624
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64625
|
+
[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"]]
|
64626
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64627
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64628
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
64629
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}, "id"=>"1"}
|
64630
|
+
[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]]
|
64631
|
+
[1m[36mClarkKent::ReportColumn Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
64632
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64633
|
+
[1m[35mSQL (0.1ms)[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-04-07 18:43:07 UTC], ["id", 1]]
|
64634
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64635
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.2ms)
|
64636
|
+
Completed 200 OK in 10ms (Views: 1.6ms | ActiveRecord: 0.5ms)
|
64637
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
64638
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64639
|
+
----------------------------------------------------------------
|
64640
|
+
ClarkKent::ReportsControllerTest: test_0003_should create report
|
64641
|
+
----------------------------------------------------------------
|
64642
|
+
[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]]
|
64643
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64644
|
+
[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"]]
|
64645
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64646
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64647
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
64648
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
64649
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64650
|
+
[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-04-07 18:43:07 UTC], ["updated_at", 2017-04-07 18:43:07 UTC]]
|
64651
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64652
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
64653
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.1ms)
|
64654
|
+
[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"]]
|
64655
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (3.1ms)
|
64656
|
+
[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]]
|
64657
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (2.7ms)
|
64658
|
+
[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]]
|
64659
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (2.9ms)
|
64660
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (11.1ms)
|
64661
|
+
Completed 200 OK in 17ms (Views: 13.7ms | ActiveRecord: 0.7ms)
|
64662
|
+
[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]]
|
64663
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64664
|
+
[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"]]
|
64665
|
+
[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]]
|
64666
|
+
[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]]
|
64667
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
64668
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64669
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64670
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64671
|
+
-------------------------
|
64672
|
+
ClarkKentTest: test_truth
|
64673
|
+
-------------------------
|
64674
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
64675
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
64676
|
+
------------------------------------------------------------------------------------------------
|
64677
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
64678
|
+
------------------------------------------------------------------------------------------------
|
64679
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64680
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
64681
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
64682
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64683
|
+
-----------------------------------------------------
|
64684
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
64685
|
+
-----------------------------------------------------
|
64686
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
64687
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64688
|
+
--------------------------------------------------------------------------
|
64689
|
+
ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
64690
|
+
--------------------------------------------------------------------------
|
64691
|
+
[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]]
|
64692
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64693
|
+
[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]]
|
64694
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64695
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
64696
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
64697
|
+
[1m[35m (2.0ms)[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
|
64698
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
64699
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
64700
|
+
[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
|
64701
|
+
[1m[35m (1.0ms)[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
|
64702
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
64703
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
64704
|
+
FROM sqlite_master
|
64705
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
64706
|
+
UNION ALL
|
64707
|
+
SELECT sql
|
64708
|
+
FROM sqlite_temp_master
|
64709
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
64710
|
+
[0m
|
64711
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
64712
|
+
[1m[35m (1.0ms)[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
|
64713
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
64714
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
64715
|
+
FROM sqlite_master
|
64716
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
64717
|
+
UNION ALL
|
64718
|
+
SELECT sql
|
64719
|
+
FROM sqlite_temp_master
|
64720
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
64721
|
+
[0m
|
64722
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
64723
|
+
[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
|
64724
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
64725
|
+
[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
|
64726
|
+
[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
|
64727
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
64728
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
64729
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
64730
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
64731
|
+
('20131226170042'),
|
64732
|
+
('20131226170112'),
|
64733
|
+
('20140114010048'),
|
64734
|
+
('20140129051754'),
|
64735
|
+
('20150304233739');
|
64736
|
+
|
64737
|
+
[0m
|
64738
|
+
[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
|
64739
|
+
[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]]
|
64740
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64741
|
+
[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-04-07 18:43:28 UTC], ["updated_at", 2017-04-07 18:43:28 UTC]]
|
64742
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
64743
|
+
[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]]
|
64744
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64745
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
64746
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64747
|
+
[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-04-07 18:43:28 UTC], ["updated_at", 2017-04-07 18:43:28 UTC]]
|
64748
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
64749
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
64750
|
+
[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", "user_name"], ["column_order", 1]]
|
64751
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
64752
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64753
|
+
[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]]
|
64754
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
64755
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
64756
|
+
[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]]
|
64757
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
64758
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
64759
|
+
[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]]
|
64760
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
64761
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
64762
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
64763
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
64764
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
64765
|
+
[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]]
|
64766
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
64767
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64768
|
+
[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-04-07 18:43:28 UTC], ["updated_at", 2017-04-07 18:43:28 UTC]]
|
64769
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
64770
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64771
|
+
-----------------------------------------------------
|
64772
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
64773
|
+
-----------------------------------------------------
|
64774
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
64775
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64776
|
+
---------------------------------------------------
|
64777
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
64778
|
+
---------------------------------------------------
|
64779
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
64780
|
+
[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]]
|
64781
|
+
[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]]
|
64782
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64783
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
64784
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64785
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64786
|
+
[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-04-07 18:43:28 UTC], ["updated_at", 2017-04-07 18:43:28 UTC]]
|
64787
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64788
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64789
|
+
[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"]]
|
64790
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64791
|
+
[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]]
|
64792
|
+
[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]]
|
64793
|
+
[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]]
|
64794
|
+
[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"]]
|
64795
|
+
[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"]]
|
64796
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
64797
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
64798
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64799
|
+
-----------------------------------------------------------------------------------------
|
64800
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
64801
|
+
-----------------------------------------------------------------------------------------
|
64802
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
64803
|
+
[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]]
|
64804
|
+
[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]]
|
64805
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64806
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
64807
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64808
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64809
|
+
[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"]]
|
64810
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64811
|
+
[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]]
|
64812
|
+
[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]]
|
64813
|
+
[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]]
|
64814
|
+
[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"]]
|
64815
|
+
[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"]]
|
64816
|
+
[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]]
|
64817
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64818
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb
|
64819
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (1.1ms)
|
64820
|
+
ClarkKent::ReportMailer#report_error: processed outbound mail in 153.8ms
|
64821
|
+
Sent mail to taproot@gmail.com (4.8ms)
|
64822
|
+
Date: Fri, 07 Apr 2017 12:43:29 -0600
|
64823
|
+
From: reservations@invitedhome.com
|
64824
|
+
To: taproot@gmail.com
|
64825
|
+
Message-ID: <58e7ddd17f141_57a63fef3503fa0c89895@Erics-MacBook-Pro.local.mail>
|
64826
|
+
Subject: Your report has a problem
|
64827
|
+
Mime-Version: 1.0
|
64828
|
+
Content-Type: text/html;
|
64829
|
+
charset=UTF-8
|
64830
|
+
Content-Transfer-Encoding: 7bit
|
64831
|
+
|
64832
|
+
Your report could not be created due to the following problem:
|
64833
|
+
<strong>At least one date range is required.</strong>
|
64834
|
+
[1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
|
64835
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64836
|
+
------------------------------------------------------------------------
|
64837
|
+
ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
64838
|
+
------------------------------------------------------------------------
|
64839
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64840
|
+
[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-04-07 18:43:29 UTC], ["updated_at", 2017-04-07 18:43:29 UTC]]
|
64841
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64842
|
+
[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]]
|
64843
|
+
[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"]]
|
64844
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64845
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64846
|
+
--------------------------------------------------------------------------
|
64847
|
+
ClarkKent::ReportableTest: test_0003_doesn't blow up if order_sql is blank
|
64848
|
+
--------------------------------------------------------------------------
|
64849
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64850
|
+
[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", "TestReportable"], ["created_at", 2017-04-07 18:43:29 UTC], ["updated_at", 2017-04-07 18:43:29 UTC]]
|
64851
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64852
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64853
|
+
[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]]
|
64854
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64855
|
+
[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]]
|
64856
|
+
[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"]]
|
64857
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64858
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64859
|
+
--------------------------------------------------------------------------
|
64860
|
+
ClarkKent::ReportableTest: test_0002_it works without any required filters
|
64861
|
+
--------------------------------------------------------------------------
|
64862
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64863
|
+
[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", "TestReportable"], ["created_at", 2017-04-07 18:43:29 UTC], ["updated_at", 2017-04-07 18:43:29 UTC]]
|
64864
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64865
|
+
[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]]
|
64866
|
+
[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"]]
|
64867
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
64868
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64869
|
+
-------------------------
|
64870
|
+
ClarkKentTest: test_truth
|
64871
|
+
-------------------------
|
64872
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
64873
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64874
|
+
------------------------------------------------------------------------------------------
|
64875
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_an_object_filter
|
64876
|
+
------------------------------------------------------------------------------------------
|
64877
|
+
[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]]
|
64878
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64879
|
+
[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"]]
|
64880
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64881
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64882
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64883
|
+
[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-04-07 18:43:29 UTC], ["updated_at", 2017-04-07 18:43:29 UTC]]
|
64884
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64885
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
64886
|
+
Parameters: {"id"=>"1"}
|
64887
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64888
|
+
[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]]
|
64889
|
+
[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]]
|
64890
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
64891
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (8.4ms)
|
64892
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (50.3ms)
|
64893
|
+
Completed 200 OK in 57ms (Views: 53.0ms | ActiveRecord: 0.4ms)
|
64894
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64895
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64896
|
+
------------------------------------------------------------------------------------------
|
64897
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_an_object_filter
|
64898
|
+
------------------------------------------------------------------------------------------
|
64899
|
+
[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]]
|
64900
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64901
|
+
[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"]]
|
64902
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64903
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64904
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64905
|
+
[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-04-07 18:43:29 UTC], ["updated_at", 2017-04-07 18:43:29 UTC]]
|
64906
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64907
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
64908
|
+
Parameters: {"id"=>"1"}
|
64909
|
+
[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]]
|
64910
|
+
[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]]
|
64911
|
+
[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]]
|
64912
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64913
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (1.0ms)
|
64914
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.3ms)
|
64915
|
+
Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.2ms)
|
64916
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
64917
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64918
|
+
-----------------------------------------------------------------------------------------
|
64919
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_string_filter
|
64920
|
+
-----------------------------------------------------------------------------------------
|
64921
|
+
[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]]
|
64922
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64923
|
+
[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"]]
|
64924
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64925
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64926
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64927
|
+
[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-04-07 18:43:29 UTC], ["updated_at", 2017-04-07 18:43:29 UTC]]
|
64928
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64929
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
64930
|
+
Parameters: {"id"=>"1"}
|
64931
|
+
[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]]
|
64932
|
+
[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]]
|
64933
|
+
[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]]
|
64934
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.3ms)
|
64935
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (4.0ms)
|
64936
|
+
Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.1ms)
|
64937
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
64938
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64939
|
+
---------------------------------------------------------------------------------------
|
64940
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_date_filter
|
64941
|
+
---------------------------------------------------------------------------------------
|
64942
|
+
[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]]
|
64943
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64944
|
+
[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"]]
|
64945
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64946
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64947
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64948
|
+
[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-04-07 18:43:29 UTC], ["updated_at", 2017-04-07 18:43:29 UTC]]
|
64949
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64950
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
64951
|
+
Parameters: {"id"=>"1"}
|
64952
|
+
[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]]
|
64953
|
+
[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]]
|
64954
|
+
[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]]
|
64955
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (3.7ms)
|
64956
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (11.0ms)
|
64957
|
+
Completed 200 OK in 14ms (Views: 11.3ms | ActiveRecord: 0.1ms)
|
64958
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
64959
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64960
|
+
---------------------------------------------------------------------------------------
|
64961
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_date_filter
|
64962
|
+
---------------------------------------------------------------------------------------
|
64963
|
+
[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]]
|
64964
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64965
|
+
[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"]]
|
64966
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64967
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64968
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64969
|
+
[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-04-07 18:43:29 UTC], ["updated_at", 2017-04-07 18:43:29 UTC]]
|
64970
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64971
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
64972
|
+
Parameters: {"id"=>"1"}
|
64973
|
+
[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]]
|
64974
|
+
[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]]
|
64975
|
+
[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]]
|
64976
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.4ms)
|
64977
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.7ms)
|
64978
|
+
Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.2ms)
|
64979
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64980
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64981
|
+
-----------------------------------------------------------------------------------------
|
64982
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_string_filter
|
64983
|
+
-----------------------------------------------------------------------------------------
|
64984
|
+
[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]]
|
64985
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64986
|
+
[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"]]
|
64987
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64988
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64989
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64990
|
+
[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-04-07 18:43:29 UTC], ["updated_at", 2017-04-07 18:43:29 UTC]]
|
64991
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64992
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
64993
|
+
Parameters: {"id"=>"1"}
|
64994
|
+
[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]]
|
64995
|
+
[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]]
|
64996
|
+
[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]]
|
64997
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.4ms)
|
64998
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (9.5ms)
|
64999
|
+
Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.4ms)
|
65000
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65001
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65002
|
+
----------------------------------------------------------------------------------
|
65003
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_date_report_filter
|
65004
|
+
----------------------------------------------------------------------------------
|
65005
|
+
[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]]
|
65006
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65007
|
+
[1m[35mSQL (0.2ms)[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"]]
|
65008
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65009
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65010
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
65011
|
+
Parameters: {"report_filter"=>{"duration"=>"week", "filter_name"=>"created_at", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
|
65012
|
+
[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]]
|
65013
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65014
|
+
[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-04-07 18:43:29 UTC], ["updated_at", 2017-04-07 18:43:29 UTC]]
|
65015
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65016
|
+
[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]]
|
65017
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.1ms)
|
65018
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.7ms)
|
65019
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (3.3ms)
|
65020
|
+
Completed 200 OK in 12ms (Views: 6.7ms | ActiveRecord: 0.5ms)
|
65021
|
+
[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]]
|
65022
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65023
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65024
|
+
-------------------------------------------------------------------------------------
|
65025
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_an_object_report_filter
|
65026
|
+
-------------------------------------------------------------------------------------
|
65027
|
+
[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]]
|
65028
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65029
|
+
[1m[35mSQL (0.8ms)[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"]]
|
65030
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65031
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65032
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
65033
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_id", "filter_value"=>"1", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
65034
|
+
[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]]
|
65035
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65036
|
+
[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-04-07 18:43:29 UTC], ["updated_at", 2017-04-07 18:43:29 UTC]]
|
65037
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65038
|
+
[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]]
|
65039
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65040
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.4ms)
|
65041
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.0ms)
|
65042
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.2ms)
|
65043
|
+
Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.3ms)
|
65044
|
+
[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]]
|
65045
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65046
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65047
|
+
-----------------------------------------------------------------------------
|
65048
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_report_filter
|
65049
|
+
-----------------------------------------------------------------------------
|
65050
|
+
[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]]
|
65051
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65052
|
+
[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"]]
|
65053
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65054
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65055
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
65056
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
65057
|
+
[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]]
|
65058
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65059
|
+
[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-04-07 18:43:29 UTC], ["updated_at", 2017-04-07 18:43:29 UTC]]
|
65060
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65061
|
+
[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]]
|
65062
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.1ms)
|
65063
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (1.9ms)
|
65064
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.1ms)
|
65065
|
+
Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.4ms)
|
65066
|
+
[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]]
|
65067
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
65068
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65069
|
+
-------------------------------------------------------------------------
|
65070
|
+
ClarkKent::ReportsControllerTest: test_0007_should show report run errors
|
65071
|
+
-------------------------------------------------------------------------
|
65072
|
+
[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]]
|
65073
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65074
|
+
[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"]]
|
65075
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65076
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65077
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
65078
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
65079
|
+
[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]]
|
65080
|
+
[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
|
65081
|
+
[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"]]
|
65082
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
65083
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.0ms)
|
65084
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65085
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
65086
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.4ms)
|
65087
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.4ms)
|
65088
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.5ms)
|
65089
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (15.2ms)
|
65090
|
+
Completed 200 OK in 179ms (Views: 166.9ms | ActiveRecord: 0.4ms)
|
65091
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
65092
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65093
|
+
----------------------------------------------------------------
|
65094
|
+
ClarkKent::ReportsControllerTest: test_0003_should create report
|
65095
|
+
----------------------------------------------------------------
|
65096
|
+
[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]]
|
65097
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65098
|
+
[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"]]
|
65099
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65100
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65101
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
65102
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
65103
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65104
|
+
[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-04-07 18:43:30 UTC], ["updated_at", 2017-04-07 18:43:30 UTC]]
|
65105
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65106
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
65107
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (3.5ms)
|
65108
|
+
[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"]]
|
65109
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (3.6ms)
|
65110
|
+
[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]]
|
65111
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (2.4ms)
|
65112
|
+
[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]]
|
65113
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (3.4ms)
|
65114
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (24.8ms)
|
65115
|
+
Completed 200 OK in 32ms (Views: 29.3ms | ActiveRecord: 0.6ms)
|
65116
|
+
[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]]
|
65117
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65118
|
+
[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"]]
|
65119
|
+
[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]]
|
65120
|
+
[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]]
|
65121
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
65122
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65123
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
65124
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65125
|
+
----------------------------------------------------------------------
|
65126
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
65127
|
+
----------------------------------------------------------------------
|
65128
|
+
[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]]
|
65129
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65130
|
+
[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"]]
|
65131
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65132
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65133
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
65134
|
+
Parameters: {"created_at_from"=>"2017-04-06", "created_at_until"=>"2017-04-07", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
65135
|
+
[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]]
|
65136
|
+
[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
|
65137
|
+
[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"]]
|
65138
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
65139
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
65140
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65141
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
65142
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.2ms)
|
65143
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
65144
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
65145
|
+
[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]]
|
65146
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (5.9ms)
|
65147
|
+
[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]]
|
65148
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
65149
|
+
(SELECT u.name
|
65150
|
+
FROM users u
|
65151
|
+
WHERE u.id = orders.user_id)
|
65152
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
65153
|
+
[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]]
|
65154
|
+
[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]]
|
65155
|
+
[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]]
|
65156
|
+
[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]]
|
65157
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (1.6ms)
|
65158
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (26.3ms)
|
65159
|
+
Completed 200 OK in 37ms (Views: 28.8ms | ActiveRecord: 1.4ms)
|
65160
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
65161
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65162
|
+
----------------------------------------------------------------
|
65163
|
+
ClarkKent::ReportsControllerTest: test_0009_should update report
|
65164
|
+
----------------------------------------------------------------
|
65165
|
+
[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]]
|
65166
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65167
|
+
[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"]]
|
65168
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65169
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65170
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
65171
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}, "id"=>"1"}
|
65172
|
+
[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]]
|
65173
|
+
[1m[36mClarkKent::ReportColumn Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
65174
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65175
|
+
[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-04-07 18:43:30 UTC], ["id", 1]]
|
65176
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65177
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.1ms)
|
65178
|
+
Completed 200 OK in 12ms (Views: 1.5ms | ActiveRecord: 0.5ms)
|
65179
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
65180
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65181
|
+
-----------------------------------------------------------
|
65182
|
+
ClarkKent::ReportsControllerTest: test_0008_should get edit
|
65183
|
+
-----------------------------------------------------------
|
65184
|
+
[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]]
|
65185
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65186
|
+
[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"]]
|
65187
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65188
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65189
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
65190
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
65191
|
+
[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]]
|
65192
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
65193
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.4ms)
|
65194
|
+
[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"]]
|
65195
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (2.8ms)
|
65196
|
+
[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]]
|
65197
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.1ms)
|
65198
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (4.3ms)
|
65199
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.4ms)
|
65200
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.6ms)
|
65201
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.4ms)
|
65202
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.6ms)
|
65203
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.4ms)
|
65204
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.6ms)
|
65205
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (11.8ms)
|
65206
|
+
[1m[36mClarkKent::ReportEmail Load (0.5ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 1]]
|
65207
|
+
[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"]]
|
65208
|
+
[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]]
|
65209
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (18.2ms)
|
65210
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (21.0ms)
|
65211
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (27.0ms)
|
65212
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (44.1ms)
|
65213
|
+
Completed 200 OK in 47ms (Views: 45.5ms | ActiveRecord: 1.1ms)
|
65214
|
+
[1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
|
65215
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65216
|
+
-----------------------------------------------------------------
|
65217
|
+
ClarkKent::ReportsControllerTest: test_0010_should destroy report
|
65218
|
+
-----------------------------------------------------------------
|
65219
|
+
[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]]
|
65220
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65221
|
+
[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"]]
|
65222
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65223
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65224
|
+
[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-04-07 18:43:30 UTC], ["updated_at", 2017-04-07 18:43:30 UTC]]
|
65225
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65226
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
65227
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65228
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
65229
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
65230
|
+
[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]]
|
65231
|
+
[1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65232
|
+
[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"]]
|
65233
|
+
[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]]
|
65234
|
+
[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]]
|
65235
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
65236
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65237
|
+
Redirected to http://test.host/reports/reports
|
65238
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.9ms)
|
65239
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
65240
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65241
|
+
[1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
|
65242
|
+
--------------------------------------------------------------------------------
|
65243
|
+
ClarkKent::ReportsControllerTest: test_0004_should render errors during creation
|
65244
|
+
--------------------------------------------------------------------------------
|
65245
|
+
[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]]
|
65246
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65247
|
+
[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"]]
|
65248
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65249
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65250
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
65251
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
65252
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65253
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
65254
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
65255
|
+
[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]]
|
65256
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65257
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (21.1ms)
|
65258
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (25.3ms)
|
65259
|
+
Completed 409 Conflict in 34ms (Views: 31.3ms | ActiveRecord: 0.2ms)
|
65260
|
+
[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]]
|
65261
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65262
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65263
|
+
------------------------------------------------------------
|
65264
|
+
ClarkKent::ReportsControllerTest: test_0001_should get index
|
65265
|
+
------------------------------------------------------------
|
65266
|
+
[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]]
|
65267
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65268
|
+
[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"]]
|
65269
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65270
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65271
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
65272
|
+
Parameters: {"current_user_id"=>"1"}
|
65273
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application
|
65274
|
+
[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]]
|
65275
|
+
[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]]
|
65276
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65277
|
+
[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]]
|
65278
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
65279
|
+
[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
|
65280
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (11.8ms)
|
65281
|
+
Completed 200 OK in 18ms (Views: 14.4ms | ActiveRecord: 0.5ms)
|
65282
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
65283
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65284
|
+
----------------------------------------------------------
|
65285
|
+
ClarkKent::ReportsControllerTest: test_0002_should get new
|
65286
|
+
----------------------------------------------------------
|
65287
|
+
[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]]
|
65288
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65289
|
+
[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"]]
|
65290
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65291
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65292
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
65293
|
+
Parameters: {"current_user_id"=>"1"}
|
65294
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
65295
|
+
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65296
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65297
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (12.3ms)
|
65298
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (13.1ms)
|
65299
|
+
Completed 200 OK in 18ms (Views: 16.4ms | ActiveRecord: 0.7ms)
|
65300
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
65301
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65302
|
+
--------------------------------------------------------------
|
65303
|
+
ClarkKent::ReportsControllerTest: test_0005_should show report
|
65304
|
+
--------------------------------------------------------------
|
65305
|
+
[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]]
|
65306
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65307
|
+
[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"]]
|
65308
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65309
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65310
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
65311
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
65312
|
+
[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]]
|
65313
|
+
[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
|
65314
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
65315
|
+
[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"]]
|
65316
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
65317
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65318
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
65319
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.5ms)
|
65320
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
65321
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
65322
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (5.7ms)
|
65323
|
+
Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 0.4ms)
|
65324
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
65325
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65326
|
+
--------------------------------------------------------------------------
|
65327
|
+
ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
65328
|
+
--------------------------------------------------------------------------
|
65329
|
+
[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]]
|
65330
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65331
|
+
[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]]
|
65332
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65333
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
65334
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
65335
|
+
------------------------------------------------------------------------------------------------
|
65336
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
65337
|
+
------------------------------------------------------------------------------------------------
|
65338
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65339
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
65340
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
65341
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65342
|
+
-------------------------------------------------------------------------------
|
65343
|
+
ClarkKent::ReportColumnsControllerTest: test_0001_should create a report column
|
65344
|
+
-------------------------------------------------------------------------------
|
65345
|
+
[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]]
|
65346
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
65347
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1"}}
|
65348
|
+
[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]]
|
65349
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65350
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name") VALUES (?, ?)[0m [["report_id", 1], ["column_name", "user_name"]]
|
65351
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65352
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (3.0ms)
|
65353
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (35.6ms)
|
65354
|
+
Completed 200 OK in 66ms (Views: 63.0ms | ActiveRecord: 0.7ms)
|
65355
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
65356
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
65357
|
+
--------------------------------------------------------------------------------------------------
|
65358
|
+
ClarkKent::ReportColumnsControllerTest: test_0003_should reject a report column with unusable sort
|
65359
|
+
--------------------------------------------------------------------------------------------------
|
65360
|
+
[1m[36mClarkKent::Report Load (0.4ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65361
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
65362
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1", "report_sort"=>"ascending"}}
|
65363
|
+
[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]]
|
65364
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65365
|
+
[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]]
|
65366
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
65367
|
+
[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]]
|
65368
|
+
[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]]
|
65369
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (16.0ms)
|
65370
|
+
Completed 409 Conflict in 48ms (Views: 42.8ms | ActiveRecord: 0.5ms)
|
65371
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
65372
|
+
[1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
|
65373
|
+
---------------------------------------------------------------------------------------------------
|
65374
|
+
ClarkKent::ReportColumnsControllerTest: test_0002_should reject a report column with no column_name
|
65375
|
+
---------------------------------------------------------------------------------------------------
|
65376
|
+
[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]]
|
65377
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
65378
|
+
Parameters: {"report_column"=>{"report_id"=>"1"}}
|
65379
|
+
[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]]
|
65380
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65381
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
65382
|
+
[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]]
|
65383
|
+
[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]]
|
65384
|
+
[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]]
|
65385
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (11.9ms)
|
65386
|
+
Completed 409 Conflict in 17ms (Views: 12.3ms | ActiveRecord: 0.7ms)
|
65387
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
65388
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
65389
|
+
[1m[35m (2.1ms)[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
|
65390
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
65391
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
65392
|
+
[1m[35m (1.2ms)[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
|
65393
|
+
[1m[35m (1.0ms)[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
|
65394
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
65395
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
65396
|
+
FROM sqlite_master
|
65397
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
65398
|
+
UNION ALL
|
65399
|
+
SELECT sql
|
65400
|
+
FROM sqlite_temp_master
|
65401
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
65402
|
+
[0m
|
65403
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
65404
|
+
[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
|
65405
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
65406
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
65407
|
+
FROM sqlite_master
|
65408
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
65409
|
+
UNION ALL
|
65410
|
+
SELECT sql
|
65411
|
+
FROM sqlite_temp_master
|
65412
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
65413
|
+
[0m
|
65414
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
65415
|
+
[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
|
65416
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
65417
|
+
[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
|
65418
|
+
[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
|
65419
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
65420
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
65421
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
65422
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
65423
|
+
('20131226170042'),
|
65424
|
+
('20131226170112'),
|
65425
|
+
('20140114010048'),
|
65426
|
+
('20140129051754'),
|
65427
|
+
('20150304233739');
|
65428
|
+
|
65429
|
+
[0m
|
65430
|
+
[1m[35m (0.8ms)[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
|
65431
|
+
[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]]
|
65432
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
65433
|
+
[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-04-07 18:47:34 UTC], ["updated_at", 2017-04-07 18:47:34 UTC]]
|
65434
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
65435
|
+
[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]]
|
65436
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65437
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
65438
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65439
|
+
[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-04-07 18:47:34 UTC], ["updated_at", 2017-04-07 18:47:34 UTC]]
|
65440
|
+
[1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
|
65441
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
65442
|
+
[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", "user_name"], ["column_order", 1]]
|
65443
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
65444
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65445
|
+
[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]]
|
65446
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
65447
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65448
|
+
[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", "amount"], ["column_order", 3]]
|
65449
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
65450
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65451
|
+
[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", "description"], ["column_order", 4]]
|
65452
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
65453
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
65454
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
65455
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
65456
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65457
|
+
[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]]
|
65458
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
65459
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
65460
|
+
[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-04-07 18:47:34 UTC], ["updated_at", 2017-04-07 18:47:34 UTC]]
|
65461
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
65462
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65463
|
+
----------------------------------------------------------------------
|
65464
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
65465
|
+
----------------------------------------------------------------------
|
65466
|
+
[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]]
|
65467
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65468
|
+
[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"]]
|
65469
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65470
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65471
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
65472
|
+
Parameters: {"created_at_from"=>"2017-04-06", "created_at_until"=>"04/07/2017", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
65473
|
+
[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]]
|
65474
|
+
[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
|
65475
|
+
[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"]]
|
65476
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
65477
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.9ms)
|
65478
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65479
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
65480
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.9ms)
|
65481
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.7ms)
|
65482
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
65483
|
+
[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]]
|
65484
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (8.3ms)
|
65485
|
+
[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]]
|
65486
|
+
[1m[36mOrder Load (0.2ms)[0m [1m[34mSELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
65487
|
+
(SELECT u.name
|
65488
|
+
FROM users u
|
65489
|
+
WHERE u.id = orders.user_id)
|
65490
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
65491
|
+
[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]]
|
65492
|
+
[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]]
|
65493
|
+
[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]]
|
65494
|
+
[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]]
|
65495
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (1.0ms)
|
65496
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (51.0ms)
|
65497
|
+
Completed 200 OK in 82908ms (Views: 218.9ms | ActiveRecord: 2.3ms)
|
65498
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
65499
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
65500
|
+
[1m[35m (1.4ms)[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
|
65501
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
65502
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
65503
|
+
[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
|
65504
|
+
[1m[35m (1.0ms)[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
|
65505
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
65506
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
65507
|
+
FROM sqlite_master
|
65508
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
65509
|
+
UNION ALL
|
65510
|
+
SELECT sql
|
65511
|
+
FROM sqlite_temp_master
|
65512
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
65513
|
+
[0m
|
65514
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
65515
|
+
[1m[35m (1.0ms)[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
|
65516
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
65517
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
65518
|
+
FROM sqlite_master
|
65519
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
65520
|
+
UNION ALL
|
65521
|
+
SELECT sql
|
65522
|
+
FROM sqlite_temp_master
|
65523
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
65524
|
+
[0m
|
65525
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
65526
|
+
[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
|
65527
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
65528
|
+
[1m[35m (1.1ms)[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
|
65529
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer)[0m
|
65530
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
65531
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
65532
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
65533
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
65534
|
+
('20131226170042'),
|
65535
|
+
('20131226170112'),
|
65536
|
+
('20140114010048'),
|
65537
|
+
('20140129051754'),
|
65538
|
+
('20150304233739');
|
65539
|
+
|
65540
|
+
[0m
|
65541
|
+
[1m[35m (0.9ms)[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
|
65542
|
+
[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]]
|
65543
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65544
|
+
[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-04-07 19:28:49 UTC], ["updated_at", 2017-04-07 19:28:49 UTC]]
|
65545
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
65546
|
+
[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]]
|
65547
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65548
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
65549
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65550
|
+
[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-04-07 19:28:49 UTC], ["updated_at", 2017-04-07 19:28:49 UTC]]
|
65551
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
65552
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65553
|
+
[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", "user_name"], ["column_order", 1]]
|
65554
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
65555
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65556
|
+
[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]]
|
65557
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
65558
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
65559
|
+
[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]]
|
65560
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
65561
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
65562
|
+
[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]]
|
65563
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
65564
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
65565
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
65566
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
65567
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65568
|
+
[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]]
|
65569
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
65570
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65571
|
+
[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-04-07 19:28:49 UTC], ["updated_at", 2017-04-07 19:28:49 UTC]]
|
65572
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
65573
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65574
|
+
---------------------------------------------------
|
65575
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
65576
|
+
---------------------------------------------------
|
65577
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
65578
|
+
[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]]
|
65579
|
+
[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]]
|
65580
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65581
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
65582
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65583
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65584
|
+
[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-04-07 19:28:49 UTC], ["updated_at", 2017-04-07 19:28:49 UTC]]
|
65585
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65586
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65587
|
+
[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"]]
|
65588
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65589
|
+
[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]]
|
65590
|
+
[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]]
|
65591
|
+
[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]]
|
65592
|
+
[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"]]
|
65593
|
+
[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"]]
|
65594
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
65595
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
65596
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65597
|
+
-----------------------------------------------------------------------------------------
|
65598
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
65599
|
+
-----------------------------------------------------------------------------------------
|
65600
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
65601
|
+
[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]]
|
65602
|
+
[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]]
|
65603
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65604
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
65605
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65606
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65607
|
+
[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"]]
|
65608
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65609
|
+
[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]]
|
65610
|
+
[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]]
|
65611
|
+
[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]]
|
65612
|
+
[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"]]
|
65613
|
+
[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"]]
|
65614
|
+
[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]]
|
65615
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65616
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb
|
65617
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (1.4ms)
|
65618
|
+
ClarkKent::ReportMailer#report_error: processed outbound mail in 180.8ms
|
65619
|
+
Sent mail to taproot@gmail.com (7.0ms)
|
65620
|
+
Date: Fri, 07 Apr 2017 13:28:50 -0600
|
65621
|
+
From: reservations@invitedhome.com
|
65622
|
+
To: taproot@gmail.com
|
65623
|
+
Message-ID: <58e7e87277432_61e73ff0eb03fa0419360@Erics-MacBook-Pro.local.mail>
|
65624
|
+
Subject: Your report has a problem
|
65625
|
+
Mime-Version: 1.0
|
65626
|
+
Content-Type: text/html;
|
65627
|
+
charset=UTF-8
|
65628
|
+
Content-Transfer-Encoding: 7bit
|
65629
|
+
|
65630
|
+
Your report could not be created due to the following problem:
|
65631
|
+
<strong>At least one date range is required.</strong>
|
65632
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65633
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65634
|
+
-------------------------
|
65635
|
+
ClarkKentTest: test_truth
|
65636
|
+
-------------------------
|
65637
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
65638
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
65639
|
+
--------------------------------------------------------------------------
|
65640
|
+
ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
65641
|
+
--------------------------------------------------------------------------
|
65642
|
+
[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]]
|
65643
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65644
|
+
[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]]
|
65645
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65646
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
65647
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65648
|
+
------------------------------------------------------------------------------------------------
|
65649
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
65650
|
+
------------------------------------------------------------------------------------------------
|
65651
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65652
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
65653
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
65654
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
65655
|
+
-----------------------------------------------------
|
65656
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
65657
|
+
-----------------------------------------------------
|
65658
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
65659
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65660
|
+
-----------------------------------------------------------------------------
|
65661
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_report_filter
|
65662
|
+
-----------------------------------------------------------------------------
|
65663
|
+
[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]]
|
65664
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65665
|
+
[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"]]
|
65666
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65667
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65668
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
65669
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
65670
|
+
[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]]
|
65671
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65672
|
+
[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-04-07 19:28:50 UTC], ["updated_at", 2017-04-07 19:28:50 UTC]]
|
65673
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65674
|
+
[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]]
|
65675
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.4ms)
|
65676
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (11.8ms)
|
65677
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (16.8ms)
|
65678
|
+
Completed 200 OK in 31ms (Views: 20.3ms | ActiveRecord: 0.4ms)
|
65679
|
+
[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]]
|
65680
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65681
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65682
|
+
-------------------------------------------------------------------------------------
|
65683
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_an_object_report_filter
|
65684
|
+
-------------------------------------------------------------------------------------
|
65685
|
+
[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]]
|
65686
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65687
|
+
[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"]]
|
65688
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65689
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65690
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
65691
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_id", "filter_value"=>"1", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
65692
|
+
[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]]
|
65693
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65694
|
+
[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-04-07 19:28:50 UTC], ["updated_at", 2017-04-07 19:28:50 UTC]]
|
65695
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65696
|
+
[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]]
|
65697
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65698
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (1.0ms)
|
65699
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (6.8ms)
|
65700
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (7.0ms)
|
65701
|
+
Completed 200 OK in 20ms (Views: 7.3ms | ActiveRecord: 0.5ms)
|
65702
|
+
[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]]
|
65703
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65704
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65705
|
+
------------------------------------------------------------------------------------------
|
65706
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_an_object_filter
|
65707
|
+
------------------------------------------------------------------------------------------
|
65708
|
+
[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]]
|
65709
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65710
|
+
[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"]]
|
65711
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65712
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65713
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65714
|
+
[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-04-07 19:28:50 UTC], ["updated_at", 2017-04-07 19:28:50 UTC]]
|
65715
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65716
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
65717
|
+
Parameters: {"id"=>"1"}
|
65718
|
+
[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]]
|
65719
|
+
[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]]
|
65720
|
+
[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]]
|
65721
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65722
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.4ms)
|
65723
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.2ms)
|
65724
|
+
Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.3ms)
|
65725
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
65726
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65727
|
+
---------------------------------------------------------------------------------------
|
65728
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_date_filter
|
65729
|
+
---------------------------------------------------------------------------------------
|
65730
|
+
[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]]
|
65731
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65732
|
+
[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"]]
|
65733
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65734
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65735
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65736
|
+
[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-04-07 19:28:50 UTC], ["updated_at", 2017-04-07 19:28:50 UTC]]
|
65737
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65738
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
65739
|
+
Parameters: {"id"=>"1"}
|
65740
|
+
[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]]
|
65741
|
+
[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]]
|
65742
|
+
[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]]
|
65743
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (7.1ms)
|
65744
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (62.4ms)
|
65745
|
+
Completed 200 OK in 68ms (Views: 66.1ms | ActiveRecord: 0.2ms)
|
65746
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
65747
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65748
|
+
---------------------------------------------------------------------------------------
|
65749
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_date_filter
|
65750
|
+
---------------------------------------------------------------------------------------
|
65751
|
+
[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]]
|
65752
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65753
|
+
[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"]]
|
65754
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65755
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65756
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65757
|
+
[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-04-07 19:28:50 UTC], ["updated_at", 2017-04-07 19:28:50 UTC]]
|
65758
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65759
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
65760
|
+
Parameters: {"id"=>"1"}
|
65761
|
+
[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]]
|
65762
|
+
[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]]
|
65763
|
+
[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]]
|
65764
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.6ms)
|
65765
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.3ms)
|
65766
|
+
Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.2ms)
|
65767
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
65768
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65769
|
+
------------------------------------------------------------------------------------------
|
65770
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_an_object_filter
|
65771
|
+
------------------------------------------------------------------------------------------
|
65772
|
+
[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]]
|
65773
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65774
|
+
[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"]]
|
65775
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65776
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65777
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65778
|
+
[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-04-07 19:28:50 UTC], ["updated_at", 2017-04-07 19:28:50 UTC]]
|
65779
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65780
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
65781
|
+
Parameters: {"id"=>"1"}
|
65782
|
+
[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]]
|
65783
|
+
[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]]
|
65784
|
+
[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]]
|
65785
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
65786
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (3.0ms)
|
65787
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (12.3ms)
|
65788
|
+
Completed 200 OK in 15ms (Views: 12.7ms | ActiveRecord: 0.3ms)
|
65789
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
65790
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65791
|
+
----------------------------------------------------------------------------------
|
65792
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_date_report_filter
|
65793
|
+
----------------------------------------------------------------------------------
|
65794
|
+
[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]]
|
65795
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65796
|
+
[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"]]
|
65797
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65798
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65799
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
65800
|
+
Parameters: {"report_filter"=>{"duration"=>"week", "filter_name"=>"created_at", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
|
65801
|
+
[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]]
|
65802
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65803
|
+
[1m[35mSQL (0.1ms)[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-04-07 19:28:50 UTC], ["updated_at", 2017-04-07 19:28:50 UTC]]
|
65804
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65805
|
+
[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]]
|
65806
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.0ms)
|
65807
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (1.4ms)
|
65808
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (1.5ms)
|
65809
|
+
Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.3ms)
|
65810
|
+
[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]]
|
65811
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65812
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65813
|
+
-----------------------------------------------------------------------------------------
|
65814
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_string_filter
|
65815
|
+
-----------------------------------------------------------------------------------------
|
65816
|
+
[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]]
|
65817
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65818
|
+
[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"]]
|
65819
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65820
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65821
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65822
|
+
[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-04-07 19:28:50 UTC], ["updated_at", 2017-04-07 19:28:50 UTC]]
|
65823
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65824
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
65825
|
+
Parameters: {"id"=>"1"}
|
65826
|
+
[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]]
|
65827
|
+
[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]]
|
65828
|
+
[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]]
|
65829
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.3ms)
|
65830
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (7.3ms)
|
65831
|
+
Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.1ms)
|
65832
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
65833
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65834
|
+
-----------------------------------------------------------------------------------------
|
65835
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_string_filter
|
65836
|
+
-----------------------------------------------------------------------------------------
|
65837
|
+
[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]]
|
65838
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65839
|
+
[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"]]
|
65840
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65841
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65842
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65843
|
+
[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-04-07 19:28:50 UTC], ["updated_at", 2017-04-07 19:28:50 UTC]]
|
65844
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65845
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
65846
|
+
Parameters: {"id"=>"1"}
|
65847
|
+
[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]]
|
65848
|
+
[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]]
|
65849
|
+
[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]]
|
65850
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.0ms)
|
65851
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (1.5ms)
|
65852
|
+
Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms)
|
65853
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65854
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65855
|
+
-----------------------------------------------------------
|
65856
|
+
ClarkKent::ReportsControllerTest: test_0008_should get edit
|
65857
|
+
-----------------------------------------------------------
|
65858
|
+
[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]]
|
65859
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65860
|
+
[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"]]
|
65861
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65862
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65863
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
65864
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
65865
|
+
[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]]
|
65866
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
65867
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (2.2ms)
|
65868
|
+
[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"]]
|
65869
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (3.2ms)
|
65870
|
+
[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]]
|
65871
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.4ms)
|
65872
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (6.0ms)
|
65873
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
65874
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.4ms)
|
65875
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
65876
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.4ms)
|
65877
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
65878
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.4ms)
|
65879
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (15.2ms)
|
65880
|
+
[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]]
|
65881
|
+
[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"]]
|
65882
|
+
[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]]
|
65883
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (29.3ms)
|
65884
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (32.7ms)
|
65885
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (39.0ms)
|
65886
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (75.5ms)
|
65887
|
+
Completed 200 OK in 255ms (Views: 250.7ms | ActiveRecord: 0.7ms)
|
65888
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
65889
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65890
|
+
--------------------------------------------------------------------------------
|
65891
|
+
ClarkKent::ReportsControllerTest: test_0004_should render errors during creation
|
65892
|
+
--------------------------------------------------------------------------------
|
65893
|
+
[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]]
|
65894
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65895
|
+
[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"]]
|
65896
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65897
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65898
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
65899
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
65900
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65901
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
65902
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
65903
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65904
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65905
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (9.4ms)
|
65906
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (14.8ms)
|
65907
|
+
Completed 409 Conflict in 23ms (Views: 20.5ms | ActiveRecord: 0.4ms)
|
65908
|
+
[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]]
|
65909
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
65910
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65911
|
+
----------------------------------------------------------------
|
65912
|
+
ClarkKent::ReportsControllerTest: test_0003_should create report
|
65913
|
+
----------------------------------------------------------------
|
65914
|
+
[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]]
|
65915
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65916
|
+
[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"]]
|
65917
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65918
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65919
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
65920
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
65921
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65922
|
+
[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-04-07 19:28:51 UTC], ["updated_at", 2017-04-07 19:28:51 UTC]]
|
65923
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65924
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
65925
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.9ms)
|
65926
|
+
[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"]]
|
65927
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (2.3ms)
|
65928
|
+
[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]]
|
65929
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (1.6ms)
|
65930
|
+
[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]]
|
65931
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (1.2ms)
|
65932
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (8.3ms)
|
65933
|
+
Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 0.5ms)
|
65934
|
+
[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]]
|
65935
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65936
|
+
[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"]]
|
65937
|
+
[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]]
|
65938
|
+
[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]]
|
65939
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
65940
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65941
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65942
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
65943
|
+
----------------------------------------------------------
|
65944
|
+
ClarkKent::ReportsControllerTest: test_0002_should get new
|
65945
|
+
----------------------------------------------------------
|
65946
|
+
[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]]
|
65947
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65948
|
+
[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"]]
|
65949
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65950
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65951
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
65952
|
+
Parameters: {"current_user_id"=>"1"}
|
65953
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
65954
|
+
[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]]
|
65955
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
65956
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (6.0ms)
|
65957
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (6.6ms)
|
65958
|
+
Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.1ms)
|
65959
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65960
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65961
|
+
-----------------------------------------------------------------
|
65962
|
+
ClarkKent::ReportsControllerTest: test_0010_should destroy report
|
65963
|
+
-----------------------------------------------------------------
|
65964
|
+
[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]]
|
65965
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65966
|
+
[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"]]
|
65967
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65968
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65969
|
+
[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-04-07 19:28:51 UTC], ["updated_at", 2017-04-07 19:28:51 UTC]]
|
65970
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65971
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
65972
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65973
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
65974
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
65975
|
+
[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]]
|
65976
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65977
|
+
[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"]]
|
65978
|
+
[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]]
|
65979
|
+
[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]]
|
65980
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
65981
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65982
|
+
Redirected to http://test.host/reports/reports
|
65983
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
|
65984
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
65985
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
65986
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
65987
|
+
----------------------------------------------------------------
|
65988
|
+
ClarkKent::ReportsControllerTest: test_0009_should update report
|
65989
|
+
----------------------------------------------------------------
|
65990
|
+
[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]]
|
65991
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
65992
|
+
[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"]]
|
65993
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
65994
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
65995
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
65996
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}, "id"=>"1"}
|
65997
|
+
[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]]
|
65998
|
+
[1m[36mClarkKent::ReportColumn Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
65999
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
66000
|
+
[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-04-07 19:28:51 UTC], ["id", 1]]
|
66001
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
66002
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.1ms)
|
66003
|
+
Completed 200 OK in 10ms (Views: 1.4ms | ActiveRecord: 0.5ms)
|
66004
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
66005
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
66006
|
+
----------------------------------------------------------------------
|
66007
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
66008
|
+
----------------------------------------------------------------------
|
66009
|
+
[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]]
|
66010
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
66011
|
+
[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"]]
|
66012
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
66013
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
66014
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
66015
|
+
Parameters: {"created_at_from"=>"2017-04-06", "created_at_until"=>"04/07/2017", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
66016
|
+
[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]]
|
66017
|
+
[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
|
66018
|
+
[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"]]
|
66019
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
66020
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.1ms)
|
66021
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
66022
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
66023
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (2.9ms)
|
66024
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.7ms)
|
66025
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
66026
|
+
[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]]
|
66027
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (5.4ms)
|
66028
|
+
[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]]
|
66029
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
66030
|
+
(SELECT u.name
|
66031
|
+
FROM users u
|
66032
|
+
WHERE u.id = orders.user_id)
|
66033
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
66034
|
+
[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]]
|
66035
|
+
[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]]
|
66036
|
+
[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]]
|
66037
|
+
[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]]
|
66038
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (1.8ms)
|
66039
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (45.2ms)
|
66040
|
+
Completed 200 OK in 63ms (Views: 48.4ms | ActiveRecord: 1.4ms)
|
66041
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
66042
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
66043
|
+
------------------------------------------------------------
|
66044
|
+
ClarkKent::ReportsControllerTest: test_0001_should get index
|
66045
|
+
------------------------------------------------------------
|
66046
|
+
[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]]
|
66047
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
66048
|
+
[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"]]
|
66049
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
66050
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
66051
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
66052
|
+
Parameters: {"current_user_id"=>"1"}
|
66053
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application
|
66054
|
+
[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]]
|
66055
|
+
[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]]
|
66056
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
66057
|
+
[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]]
|
66058
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
66059
|
+
[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
|
66060
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (12.8ms)
|
66061
|
+
Completed 200 OK in 20ms (Views: 15.7ms | ActiveRecord: 0.5ms)
|
66062
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
66063
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
66064
|
+
-------------------------------------------------------------------------
|
66065
|
+
ClarkKent::ReportsControllerTest: test_0007_should show report run errors
|
66066
|
+
-------------------------------------------------------------------------
|
66067
|
+
[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]]
|
66068
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
66069
|
+
[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"]]
|
66070
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
66071
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
66072
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
66073
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
66074
|
+
[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]]
|
66075
|
+
[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
|
66076
|
+
[1m[36mClarkKent::ReportFilter Load (1.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"]]
|
66077
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
66078
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.6ms)
|
66079
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
66080
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
66081
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.6ms)
|
66082
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
66083
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
66084
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (3.5ms)
|
66085
|
+
Completed 200 OK in 14ms (Views: 6.3ms | ActiveRecord: 1.4ms)
|
66086
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
66087
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
66088
|
+
--------------------------------------------------------------
|
66089
|
+
ClarkKent::ReportsControllerTest: test_0005_should show report
|
66090
|
+
--------------------------------------------------------------
|
66091
|
+
[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]]
|
66092
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
66093
|
+
[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"]]
|
66094
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
66095
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
66096
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
66097
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
66098
|
+
[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]]
|
66099
|
+
[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
|
66100
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
66101
|
+
[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"]]
|
66102
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.2ms)
|
66103
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
66104
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
66105
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.8ms)
|
66106
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.6ms)
|
66107
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
66108
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (6.2ms)
|
66109
|
+
Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 0.9ms)
|
66110
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
66111
|
+
[1m[35m (1.0ms)[0m [1m[36mbegin transaction[0m
|
66112
|
+
------------------------------------------------------------------------
|
66113
|
+
ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
66114
|
+
------------------------------------------------------------------------
|
66115
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
66116
|
+
[1m[35mSQL (0.8ms)[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-04-07 19:28:51 UTC], ["updated_at", 2017-04-07 19:28:51 UTC]]
|
66117
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
66118
|
+
[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]]
|
66119
|
+
[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"]]
|
66120
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
66121
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
66122
|
+
--------------------------------------------------------------------------
|
66123
|
+
ClarkKent::ReportableTest: test_0002_it works without any required filters
|
66124
|
+
--------------------------------------------------------------------------
|
66125
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
66126
|
+
[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-04-07 19:28:51 UTC], ["updated_at", 2017-04-07 19:28:51 UTC]]
|
66127
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
66128
|
+
[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]]
|
66129
|
+
[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"]]
|
66130
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
66131
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
66132
|
+
--------------------------------------------------------------------------
|
66133
|
+
ClarkKent::ReportableTest: test_0003_doesn't blow up if order_sql is blank
|
66134
|
+
--------------------------------------------------------------------------
|
66135
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
66136
|
+
[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-04-07 19:28:51 UTC], ["updated_at", 2017-04-07 19:28:51 UTC]]
|
66137
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
66138
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
66139
|
+
[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]]
|
66140
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
66141
|
+
[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]]
|
66142
|
+
[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"]]
|
66143
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
66144
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
66145
|
+
---------------------------------------------------------------------------------------------------
|
66146
|
+
ClarkKent::ReportColumnsControllerTest: test_0002_should reject a report column with no column_name
|
66147
|
+
---------------------------------------------------------------------------------------------------
|
66148
|
+
[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]]
|
66149
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
66150
|
+
Parameters: {"report_column"=>{"report_id"=>"1"}}
|
66151
|
+
[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]]
|
66152
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
66153
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
66154
|
+
[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]]
|
66155
|
+
[1m[36mClarkKent::Report Load (0.6ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
66156
|
+
[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]]
|
66157
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (22.9ms)
|
66158
|
+
Completed 409 Conflict in 63ms (Views: 59.3ms | ActiveRecord: 1.1ms)
|
66159
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
66160
|
+
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
66161
|
+
-------------------------------------------------------------------------------
|
66162
|
+
ClarkKent::ReportColumnsControllerTest: test_0001_should create a report column
|
66163
|
+
-------------------------------------------------------------------------------
|
66164
|
+
[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]]
|
66165
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
66166
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1"}}
|
66167
|
+
[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]]
|
66168
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
66169
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name") VALUES (?, ?)[0m [["report_id", 1], ["column_name", "user_name"]]
|
66170
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
66171
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.6ms)
|
66172
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (39.4ms)
|
66173
|
+
Completed 200 OK in 75ms (Views: 72.2ms | ActiveRecord: 0.5ms)
|
66174
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
66175
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
66176
|
+
--------------------------------------------------------------------------------------------------
|
66177
|
+
ClarkKent::ReportColumnsControllerTest: test_0003_should reject a report column with unusable sort
|
66178
|
+
--------------------------------------------------------------------------------------------------
|
66179
|
+
[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]]
|
66180
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
66181
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1", "report_sort"=>"ascending"}}
|
66182
|
+
[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]]
|
66183
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
66184
|
+
[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]]
|
66185
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
66186
|
+
[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]]
|
66187
|
+
[1m[36mClarkKent::ReportColumn Load (0.5ms)[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]]
|
66188
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (12.1ms)
|
66189
|
+
Completed 409 Conflict in 16ms (Views: 11.8ms | ActiveRecord: 0.8ms)
|
66190
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|