clark_kent 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/app/mailers/clark_kent/report_mailer.rb +8 -0
  3. data/app/models/clark_kent/report_email.rb +2 -0
  4. data/app/views/clark_kent/report_mailer/report_error.html.erb +2 -0
  5. data/lib/clark_kent/version.rb +1 -1
  6. data/test/dummy/db/test.sqlite3 +0 -0
  7. data/test/dummy/log/test.log +606 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v3.0/9sCrVoj9qhqt_V0WjXl7Qrfyk6Yj0wZ--Qe8QIQaKMA.cache +0 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v3.0/CN4hkBfh3U1M4HdS4Gxtv-G6Jy6IFSyY1K6m3YU54kI.cache +1 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v3.0/Gc5BYe1W1Qoof0C8wnM-bBlZbFGNhy7KyY6t3ZHO9R8.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v3.0/HdDE_vIJMvCSKUX3p69u0kJ9pyOZYYRxLWE6ypcRNfE.cache +0 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v3.0/JbcAACpMmVlknG104wCtLY73aNeelGB5NNPiF4uDf5s.cache +0 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v3.0/NReZtOL8LvKjGqEd3PTDkWDctVxTf6ZWkTLBTsxS1bQ.cache +1 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v3.0/O8akbUwAbmIKY-AhITimq-JDQ6IgsO3Hvq2v5etufFw.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v3.0/UO63Y5t3PvuucNUEfqej9v1YQNQAJMA-pf_xiBye5vo.cache +0 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v3.0/UwMFS8rJmeOVTOPUAsy5rBsPqe-mwJgvTSCg-8xwSK8.cache +0 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ZXgaX5xc809c6xwGetz1yYwe2rZKM1fsyl1oTYISqoE.cache +1 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v3.0/ce6jtr1ba-rbVUTM82edB31tw2mkJcqfWIFC7VbG01Q.cache +1 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v3.0/hj8Ir9wcVSy1KYrnWu9bpD24vDhCG3tvt-nKbNxb1Wg.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v3.0/iUrrD_f10IsEULQpMhrxJYB3kA5tY5QowgfIUzmpcUU.cache +0 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v3.0/oCsZTGZyV4kH8Y4OeSDUdrwfkJFPzTODZjuBKZB8oGQ.cache +0 -0
  22. data/test/dummy/tmp/cache/assets/sprockets/v3.0/rjboaZwWGn7Bqq7K6UP6Jwuc2YNOuzBX9QXIN0pwGIU.cache +0 -0
  23. data/test/dummy/tmp/cache/assets/sprockets/v3.0/rjoHNgBPuY_S9pxfkayG1m1T78ORU3-QsGGKMzzF08c.cache +0 -0
  24. data/test/dummy/tmp/cache/assets/sprockets/v3.0/tPF6H9NRpGO3whu2y5_e_R_1EACKdCwu5437D83qJT0.cache +0 -0
  25. data/test/dummy/tmp/cache/assets/sprockets/v3.0/xFczLyKOWKQkPCm5mMnUI_uZ9FKhm9SuzebYHQ8G4_M.cache +1 -0
  26. data/test/models/clark_kent/report_email_test.rb +4 -3
  27. metadata +27 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8a707d3b6d1e11aec90e1f69c16faff8c9ef8a7
4
- data.tar.gz: 15bbdabb6c3917d3b9ab9bc840b2c6db1ee9f601
3
+ metadata.gz: 7c0f34bd0fdc6b128ebe715bf3a776196c9b17ff
4
+ data.tar.gz: a783a483820362d4c85d82dcea59d8713b26e5d3
5
5
  SHA512:
6
- metadata.gz: 6fdfa4009d90c5c7d2b0263a0f48cd83033f32aba69584404eeba460d47a6e159c8fd59792cc77eec326548231182df2c522136c9bd08f7755f73a861630fba0
7
- data.tar.gz: 1b3ef83d1b97d79782f4dceef0a92f899691e93edda83cc5f41516c40c77039dcc688f06911eebe8a4605f09b5030ad0c61c05a75962d33ab82f15d85c891997
6
+ metadata.gz: 9721997e8d8410f2842d96918497bb63e287c38f142bde9eb0a11eb8af00cba3e1137c305a69be433453e49d9e78aa3df2ba5557eea275f589b6bc8023aaa295
7
+ data.tar.gz: 182fc56855b6f3f107062840a937d65151665d98d4d8df765cbae0488f3611c22baac0ad024a7c76f51fb8c646144849fbf619fc756c3a23aa5cccd6c039eae6
@@ -11,5 +11,13 @@ module ClarkKent
11
11
  mail(to: @recipient_email, subject: @subject)
12
12
  end
13
13
 
14
+ def report_error(report_id, user_id, error_message)
15
+ @report = Report.find(report_id)
16
+ @user = User.find(user_id)
17
+ @recipient_email = @user.email
18
+ @error_message = error_message
19
+ @subject = "Your report #{@report.name} has a problem"
20
+ mail(to: @recipient_email, subject: @subject)
21
+ end
14
22
  end
15
23
  end
@@ -52,6 +52,8 @@ module ClarkKent
52
52
  end
53
53
  report_download_url = ClarkKent::Report.send_report_to_s3(self.id, params)
54
54
  ClarkKent::ReportMailer.report_run(self.report_id, user_id, report_download_url).deliver
55
+ rescue ClarkKent::ReportFilterError => e
56
+ ClarkKent::ReportMailer.report_error(self.report_id, user_id, e.message).deliver
55
57
  end
56
58
 
57
59
  def report_filter_params
@@ -0,0 +1,2 @@
1
+ Your report could not be created due to the following problem:
2
+ <strong><%= @error_message %></strong>
@@ -1,3 +1,3 @@
1
1
  module ClarkKent
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
Binary file
@@ -42035,3 +42035,609 @@ ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing
42035
42035
   (0.0ms) SAVEPOINT active_record_1
42036
42036
   (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
42037
42037
   (0.1ms) rollback transaction
42038
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
42039
+  (1.2ms) CREATE 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)
42040
+  (0.4ms) select sqlite_version(*)
42041
+  (1.1ms) CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
42042
+  (1.0ms) CREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) 
42043
+  (1.0ms) CREATE 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)
42044
+  (0.8ms) CREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")
42045
+  (0.1ms) SELECT sql
42046
+ FROM sqlite_master
42047
+ WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
42048
+ UNION ALL
42049
+ SELECT sql
42050
+ FROM sqlite_temp_master
42051
+ WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
42052
+
42053
+  (0.9ms) CREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")
42054
+  (0.9ms) CREATE 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)
42055
+  (0.9ms) CREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")
42056
+  (0.1ms) SELECT sql
42057
+ FROM sqlite_master
42058
+ WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
42059
+ UNION ALL
42060
+ SELECT sql
42061
+ FROM sqlite_temp_master
42062
+ WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
42063
+
42064
+  (0.9ms) CREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")
42065
+  (0.8ms) CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
42066
+  (0.8ms) CREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) 
42067
+  (0.8ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)
42068
+  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) 
42069
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
42070
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
42071
+  (0.1ms) SELECT version FROM "schema_migrations"
42072
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150313144015')
42073
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
42074
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20131226170112')
42075
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
42076
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140129051754')
42077
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
42078
+  (0.1ms) begin transaction
42079
+ SQL (0.4ms) INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-11-18 22:33:38.511213"], ["updated_at", "2016-11-18 22:33:38.511213"]]
42080
+  (0.7ms) commit transaction
42081
+  (0.1ms) begin transaction
42082
+ SQL (0.4ms) INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "user_name"], ["column_order", 1], ["report_id", 1]]
42083
+  (0.8ms) commit transaction
42084
+  (0.1ms) begin transaction
42085
+ SQL (0.2ms) INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "id"], ["column_order", 2], ["report_id", 1]]
42086
+  (0.7ms) commit transaction
42087
+  (0.0ms) begin transaction
42088
+ SQL (0.2ms) INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
42089
+  (0.7ms) commit transaction
42090
+  (0.0ms) begin transaction
42091
+ SQL (0.2ms) INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
42092
+  (0.6ms) commit transaction
42093
+  (0.1ms) begin transaction
42094
+ SQL (0.3ms) INSERT INTO "departments" ("name") VALUES (?) [["name", "silly walks"]]
42095
+  (0.7ms) commit transaction
42096
+  (0.0ms) begin transaction
42097
+ SQL (0.3ms) INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
42098
+  (0.7ms) commit transaction
42099
+  (0.1ms) begin transaction
42100
+ SQL (0.3ms) INSERT INTO "orders" ("user_id", "description", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["user_id", 1], ["description", "Guitar strings"], ["amount", 1], ["created_at", "2016-11-18 22:33:38.559414"], ["updated_at", "2016-11-18 22:33:38.559414"]]
42101
+  (0.7ms) commit transaction
42102
+  (0.2ms) begin transaction
42103
+ -------------------------------------------------------------------
42104
+ ClarkKent::ReportableTest: test_it_adds_required_filters_if_present
42105
+ -------------------------------------------------------------------
42106
+  (0.1ms) SAVEPOINT active_record_1
42107
+ SQL (0.4ms) INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test one"], ["resource_type", "Order"], ["created_at", "2016-11-18 22:33:38.621678"], ["updated_at", "2016-11-18 22:33:38.621678"]]
42108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42109
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
42110
+ ClarkKent::ReportFilter Load (0.2ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
42111
+ ClarkKent::ReportColumn Load (0.2ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 2]]
42112
+  (0.6ms) rollback transaction
42113
+  (0.2ms) begin transaction
42114
+ ---------------------------------------------------------------------
42115
+ ClarkKent::ReportableTest: test_it_works_without_any_required_filters
42116
+ ---------------------------------------------------------------------
42117
+  (0.0ms) SAVEPOINT active_record_1
42118
+ SQL (0.3ms) INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", "2016-11-18 22:33:38.633272"], ["updated_at", "2016-11-18 22:33:38.633272"]]
42119
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42120
+ ClarkKent::ReportColumn Load (0.0ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
42121
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
42122
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 2]]
42123
+  (0.4ms) rollback transaction
42124
+  (0.1ms) begin transaction
42125
+ -----------------------------------------------------
42126
+ ClarkKent::ReportsHelperTest: test_it_displays_a_date
42127
+ -----------------------------------------------------
42128
+  (0.1ms) rollback transaction
42129
+  (0.1ms) begin transaction
42130
+ -------------------------
42131
+ ClarkKentTest: test_truth
42132
+ -------------------------
42133
+  (0.0ms) rollback transaction
42134
+  (0.0ms) begin transaction
42135
+ ---------------------------------------------------
42136
+ ClarkKent::ReportEmailTest: test_sends_report_to_s3
42137
+ ---------------------------------------------------
42138
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "taproot@gmail.com"]]
42139
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42140
+ SQL (0.3ms) UPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ? [["id", 1]]
42141
+  (0.0ms) SAVEPOINT active_record_1
42142
+ SQL (0.2ms) INSERT INTO "clark_kent_report_emails" ("name", "report_id") VALUES (?, ?) [["name", "test_emailer"], ["report_id", 1]]
42143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42144
+  (0.1ms) SAVEPOINT active_record_1
42145
+ SQL (0.3ms) INSERT INTO "clark_kent_report_filters" ("type", "filter_name", "duration", "kind_of_day", "offset", "filterable_id", "filterable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ClarkKent::ReportDateFilter"], ["filter_name", "created_at"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "this_week"], ["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["created_at", "2016-11-18 22:33:38.677820"], ["updated_at", "2016-11-18 22:33:38.677820"]]
42146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42147
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
42148
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42149
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42150
+ Department Load (0.1ms) SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
42151
+ ClarkKent::ReportEmail Load (0.1ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
42152
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42153
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 1]]
42154
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42155
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
42156
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
42157
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
42158
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
42159
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
42160
+  (0.1ms) SELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)
42161
+  (0.5ms) rollback transaction
42162
+  (0.1ms) begin transaction
42163
+ -----------------------------------------------------------------------------------------
42164
+ ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
42165
+ -----------------------------------------------------------------------------------------
42166
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "taproot@gmail.com"]]
42167
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42168
+ SQL (0.2ms) UPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ? [["id", 1]]
42169
+  (0.1ms) SAVEPOINT active_record_1
42170
+ SQL (0.1ms) INSERT INTO "clark_kent_report_emails" ("name", "report_id") VALUES (?, ?) [["name", "test_emailer"], ["report_id", 1]]
42171
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42172
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
42173
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42174
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42175
+ Department Load (0.1ms) SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
42176
+ ClarkKent::ReportEmail Load (0.0ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
42177
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42178
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 1]]
42179
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42180
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
42181
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
42182
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
42183
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42184
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
42185
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (1.9ms)
42186
+
42187
+ ClarkKent::ReportMailer#report_error: processed outbound mail in 174.0ms
42188
+
42189
+ Sent mail to taproot@gmail.com (5.9ms)
42190
+ Date: Fri, 18 Nov 2016 15:33:38 -0700
42191
+ From: reservations@invitedhome.com
42192
+ To: taproot@gmail.com
42193
+ Message-ID: <582f81c2eae6b_d6343feafbc3fa0c31824@Erics-MacBook-Pro.local.mail>
42194
+ Subject: Your report has a problem
42195
+ Mime-Version: 1.0
42196
+ Content-Type: text/html;
42197
+ charset=UTF-8
42198
+ Content-Transfer-Encoding: 7bit
42199
+
42200
+ Your report could not be created due to the following problem:
42201
+ <strong>At least one date range is required.</strong>
42202
+  (0.4ms) rollback transaction
42203
+  (0.1ms) begin transaction
42204
+ ------------------------------------------------------------------------------------------------
42205
+ ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
42206
+ ------------------------------------------------------------------------------------------------
42207
+  (0.0ms) SAVEPOINT active_record_1
42208
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
42209
+  (0.0ms) rollback transaction
42210
+  (0.0ms) begin transaction
42211
+ -------------------------------------------------------
42212
+ ClarkKent::ReportsController: test_should_create_report
42213
+ -------------------------------------------------------
42214
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42215
+  (0.0ms) SAVEPOINT active_record_1
42216
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42218
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42219
+ Processing by ClarkKent::ReportsController#create as HTML
42220
+ Parameters: {"report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>nil, "sharing_scope_type"=>nil}, "current_user_id"=>"1"}
42221
+  (0.1ms) SAVEPOINT active_record_1
42222
+ SQL (0.1ms) INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "delete me"], ["resource_type", "Order"], ["created_at", "2016-11-18 22:33:38.984258"], ["updated_at", "2016-11-18 22:33:38.984258"]]
42223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42224
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (6.9ms)
42225
+ ClarkKent::ReportFilter Load (0.1ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
42226
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (4.5ms)
42227
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
42228
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (3.9ms)
42229
+ ClarkKent::ReportEmail Load (0.1ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 2]]
42230
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (4.2ms)
42231
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (36.1ms)
42232
+ Completed 200 OK in 435ms (Views: 432.2ms | ActiveRecord: 0.5ms)
42233
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT 1 [["name", "delete me"]]
42234
+  (0.0ms) SAVEPOINT active_record_1
42235
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
42236
+ ClarkKent::ReportColumn Load (0.0ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
42237
+ ClarkKent::ReportEmail Load (0.0ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 2]]
42238
+ SQL (0.1ms) DELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? [["id", 2]]
42239
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42240
+  (0.5ms) rollback transaction
42241
+  (0.1ms) begin transaction
42242
+ --------------------------------------------------------
42243
+ ClarkKent::ReportsController: test_should_destroy_report
42244
+ --------------------------------------------------------
42245
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42246
+  (0.0ms) SAVEPOINT active_record_1
42247
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42248
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42249
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42250
+  (0.1ms) SAVEPOINT active_record_1
42251
+ SQL (0.3ms) INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "delete me"], ["resource_type", "Order"], ["created_at", "2016-11-18 22:33:39.428351"], ["updated_at", "2016-11-18 22:33:39.428351"]]
42252
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42253
+  (0.1ms) SELECT COUNT(*) FROM "clark_kent_reports"
42254
+ Processing by ClarkKent::ReportsController#destroy as HTML
42255
+ Parameters: {"current_user_id"=>"1", "id"=>"2"}
42256
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 2]]
42257
+  (0.0ms) SAVEPOINT active_record_1
42258
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
42259
+ ClarkKent::ReportColumn Load (0.0ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
42260
+ ClarkKent::ReportEmail Load (0.1ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 2]]
42261
+ SQL (0.1ms) DELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? [["id", 2]]
42262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42263
+ Redirected to http://test.host/reports/reports
42264
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
42265
+  (0.1ms) SELECT COUNT(*) FROM "clark_kent_reports"
42266
+  (0.4ms) rollback transaction
42267
+  (0.1ms) begin transaction
42268
+ --------------------------------------------------
42269
+ ClarkKent::ReportsController: test_should_get_edit
42270
+ --------------------------------------------------
42271
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42272
+  (0.1ms) SAVEPOINT active_record_1
42273
+ SQL (0.2ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42274
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42275
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42276
+ Processing by ClarkKent::ReportsController#edit as HTML
42277
+ Parameters: {"current_user_id"=>"1", "id"=>"1"}
42278
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42279
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (6.2ms)
42280
+ ClarkKent::ReportFilter Load (0.1ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42281
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (4.1ms)
42282
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 1]]
42283
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (4.8ms)
42284
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (8.0ms)
42285
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.4ms)
42286
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.6ms)
42287
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.6ms)
42288
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (3.1ms)
42289
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.6ms)
42290
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.8ms)
42291
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (23.2ms)
42292
+ ClarkKent::ReportEmail Load (0.3ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 1]]
42293
+ ClarkKent::ReportDateFilter Load (0.2ms) SELECT "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" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
42294
+ User Load (0.2ms) SELECT "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" = ? [["report_email_id", 1]]
42295
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (25.7ms)
42296
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (35.0ms)
42297
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (40.5ms)
42298
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (77.0ms)
42299
+ Completed 200 OK in 80ms (Views: 78.4ms | ActiveRecord: 1.0ms)
42300
+  (0.9ms) rollback transaction
42301
+  (0.1ms) begin transaction
42302
+ ---------------------------------------------------
42303
+ ClarkKent::ReportsController: test_should_get_index
42304
+ ---------------------------------------------------
42305
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42306
+  (0.0ms) SAVEPOINT active_record_1
42307
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42309
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42310
+ Processing by ClarkKent::ReportsController#index as HTML
42311
+ Parameters: {"current_user_id"=>"1"}
42312
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
42313
+ ClarkKent::Report Exists (0.1ms) SELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT 1 [["sharing_scope_id", 1], ["sharing_scope_type", "User"]]
42314
+ Department Load (0.0ms) SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
42315
+ ClarkKent::Report Exists (0.0ms) SELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT 1 [["sharing_scope_id", 1], ["sharing_scope_type", "Department"]]
42316
+  (0.1ms) SELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL
42317
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL
42318
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (16.7ms)
42319
+ Completed 200 OK in 23ms (Views: 22.0ms | ActiveRecord: 0.5ms)
42320
+  (0.5ms) rollback transaction
42321
+  (0.1ms) begin transaction
42322
+ -------------------------------------------------
42323
+ ClarkKent::ReportsController: test_should_get_new
42324
+ -------------------------------------------------
42325
+ ClarkKent::Report Load (0.6ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42326
+  (0.1ms) SAVEPOINT active_record_1
42327
+ SQL (0.4ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42328
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42329
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42330
+ Processing by ClarkKent::ReportsController#new as HTML
42331
+ Parameters: {"current_user_id"=>"1"}
42332
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
42333
+ Department Load (0.1ms) SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
42334
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (67.3ms)
42335
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (73.0ms)
42336
+ Completed 200 OK in 78ms (Views: 77.5ms | ActiveRecord: 0.1ms)
42337
+  (0.6ms) rollback transaction
42338
+  (0.1ms) begin transaction
42339
+ -----------------------------------------------------
42340
+ ClarkKent::ReportsController: test_should_show_report
42341
+ -----------------------------------------------------
42342
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42343
+  (0.0ms) SAVEPOINT active_record_1
42344
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42345
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42346
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42347
+ Processing by ClarkKent::ReportsController#show as HTML
42348
+ Parameters: {"current_user_id"=>"1", "id"=>"1"}
42349
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1 [["id", 1]]
42350
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order
42351
+  (0.1ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42352
+  (0.0ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42353
+  (0.0ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42354
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.4ms)
42355
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42356
+ User Load (0.1ms) SELECT "users".* FROM "users"
42357
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (2.1ms)
42358
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.7ms)
42359
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (1.2ms)
42360
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (26.2ms)
42361
+ Completed 200 OK in 37ms (Views: 30.9ms | ActiveRecord: 0.7ms)
42362
+  (0.7ms) rollback transaction
42363
+  (0.1ms) begin transaction
42364
+ -------------------------------------------------------------
42365
+ ClarkKent::ReportsController: test_should_show_report_results
42366
+ -------------------------------------------------------------
42367
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42368
+  (0.1ms) SAVEPOINT active_record_1
42369
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42371
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42372
+ Processing by ClarkKent::ReportsController#show as HTML
42373
+ Parameters: {"current_user_id"=>"1", "run_report"=>true, "created_at_until"=>"2016-11-18", "created_at_from"=>"2016-11-17", "id"=>"1"}
42374
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1 [["id", 1]]
42375
+ ClarkKent::ReportColumn Load (0.2ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order
42376
+ ClarkKent::ReportFilter Load (0.1ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42377
+ ClarkKent::ReportColumn Load (0.3ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
42378
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
42379
+  (0.1ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42380
+  (0.0ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42381
+  (0.0ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42382
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.2ms)
42383
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42384
+ User Load (0.1ms) SELECT "users".* FROM "users"
42385
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.0ms)
42386
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.2ms)
42387
+  (0.1ms) SELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)
42388
+  (0.1ms) SELECT COUNT(count_column) FROM (SELECT "orders"."id" AS count_column FROM "orders" WHERE (orders.user_id > 0) LIMIT 10 OFFSET 0) subquery_for_count
42389
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (4.0ms)
42390
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 1]]
42391
+ Order Load (0.1ms) SELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
42392
+ (SELECT u.name
42393
+ FROM users u
42394
+ WHERE u.id = orders.user_id)
42395
+ as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT 10 OFFSET 0
42396
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42397
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42398
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42399
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42400
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (3.4ms)
42401
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (36.4ms)
42402
+ Completed 200 OK in 47ms (Views: 40.1ms | ActiveRecord: 1.5ms)
42403
+  (0.4ms) rollback transaction
42404
+  (0.1ms) begin transaction
42405
+ ----------------------------------------------------------------
42406
+ ClarkKent::ReportsController: test_should_show_report_run_errors
42407
+ ----------------------------------------------------------------
42408
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42409
+  (0.0ms) SAVEPOINT active_record_1
42410
+ SQL (0.2ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42412
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42413
+ Processing by ClarkKent::ReportsController#show as HTML
42414
+ Parameters: {"current_user_id"=>"1", "run_report"=>true, "id"=>"1"}
42415
+ ClarkKent::Report Load (15.8ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1 [["id", 1]]
42416
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order
42417
+ ClarkKent::ReportFilter Load (0.0ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42418
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
42419
+ ClarkKent::ReportColumn Load (0.1ms) SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
42420
+  (0.1ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42421
+  (0.0ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42422
+  (0.0ms) SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
42423
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.4ms)
42424
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42425
+ User Load (0.1ms) SELECT "users".* FROM "users"
42426
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.5ms)
42427
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.2ms)
42428
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.1ms)
42429
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (8.1ms)
42430
+ Completed 200 OK in 32ms (Views: 10.6ms | ActiveRecord: 16.5ms)
42431
+  (0.5ms) rollback transaction
42432
+  (0.1ms) begin transaction
42433
+ -------------------------------------------------------
42434
+ ClarkKent::ReportsController: test_should_update_report
42435
+ -------------------------------------------------------
42436
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42437
+  (0.0ms) SAVEPOINT active_record_1
42438
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42440
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42441
+ Processing by ClarkKent::ReportsController#update as HTML
42442
+ Parameters: {"report"=>{"name"=>nil, "resource_type"=>"Order", "sharing_scope_id"=>nil, "sharing_scope_type"=>nil}, "current_user_id"=>"1", "id"=>"1"}
42443
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42444
+  (0.1ms) SAVEPOINT active_record_1
42445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42446
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (4.7ms)
42447
+ Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.2ms)
42448
+  (0.5ms) rollback transaction
42449
+  (0.1ms) begin transaction
42450
+ ------------------------------------------------------------------------------
42451
+ ClarkKent::ReportFiltersController: test_it_should_create_a_date_report_filter
42452
+ ------------------------------------------------------------------------------
42453
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42454
+  (0.0ms) SAVEPOINT active_record_1
42455
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42457
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42458
+ Processing by ClarkKent::ReportFiltersController#create as HTML
42459
+ Parameters: {"report_filter"=>{"filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "filter_name"=>"created_at", "duration"=>"week", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
42460
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42461
+  (0.1ms) SAVEPOINT active_record_1
42462
+ SQL (0.3ms) INSERT INTO "clark_kent_report_filters" ("type", "filterable_id", "filter_name", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["type", "ClarkKent::ReportDateFilter"], ["filterable_id", 1], ["filter_name", "created_at"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", "2016-11-18 22:33:39.831063"], ["updated_at", "2016-11-18 22:33:39.831063"]]
42463
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42464
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42465
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.5ms)
42466
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (7.7ms)
42467
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (11.2ms)
42468
+ Completed 200 OK in 21ms (Views: 16.6ms | ActiveRecord: 0.5ms)
42469
+ ClarkKent::ReportFilter Load (0.1ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT 1
42470
+  (0.5ms) rollback transaction
42471
+  (0.1ms) begin transaction
42472
+ -------------------------------------------------------------------------
42473
+ ClarkKent::ReportFiltersController: test_it_should_create_a_report_filter
42474
+ -------------------------------------------------------------------------
42475
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42476
+  (0.0ms) SAVEPOINT active_record_1
42477
+ SQL (0.2ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42479
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42480
+ Processing by ClarkKent::ReportFiltersController#create as HTML
42481
+ Parameters: {"report_filter"=>{"filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com"}}
42482
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42483
+  (0.1ms) SAVEPOINT active_record_1
42484
+ SQL (0.2ms) INSERT INTO "clark_kent_report_filters" ("type", "filterable_id", "filter_name", "filter_value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "ClarkKent::ReportStringFilter"], ["filterable_id", 1], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["created_at", "2016-11-18 22:33:39.870014"], ["updated_at", "2016-11-18 22:33:39.870014"]]
42485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42486
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42487
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.5ms)
42488
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (7.5ms)
42489
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (7.9ms)
42490
+ Completed 200 OK in 20ms (Views: 8.4ms | ActiveRecord: 0.5ms)
42491
+ ClarkKent::ReportFilter Load (0.2ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT 1
42492
+  (0.4ms) rollback transaction
42493
+  (0.1ms) begin transaction
42494
+ ---------------------------------------------------------------------------------
42495
+ ClarkKent::ReportFiltersController: test_it_should_create_an_object_report_filter
42496
+ ---------------------------------------------------------------------------------
42497
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42498
+  (0.0ms) SAVEPOINT active_record_1
42499
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42500
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42501
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42502
+ Processing by ClarkKent::ReportFiltersController#create as HTML
42503
+ Parameters: {"report_filter"=>{"filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "filter_name"=>"user_id", "filter_value"=>"1"}}
42504
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42505
+  (0.1ms) SAVEPOINT active_record_1
42506
+ SQL (0.1ms) INSERT INTO "clark_kent_report_filters" ("type", "filterable_id", "filter_name", "filter_value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["type", "ClarkKent::ReportObjectFilter"], ["filterable_id", 1], ["filter_name", "user_id"], ["filter_value", "1"], ["created_at", "2016-11-18 22:33:39.900329"], ["updated_at", "2016-11-18 22:33:39.900329"]]
42507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42508
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42509
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
42510
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (2.1ms)
42511
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (7.9ms)
42512
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (8.2ms)
42513
+ Completed 200 OK in 19ms (Views: 8.1ms | ActiveRecord: 0.7ms)
42514
+ ClarkKent::ReportFilter Load (0.1ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT 1
42515
+  (0.5ms) rollback transaction
42516
+  (0.1ms) begin transaction
42517
+ -----------------------------------------------------------------------------------
42518
+ ClarkKent::ReportFiltersController: test_should_get_the_edit_form_for_a_date_filter
42519
+ -----------------------------------------------------------------------------------
42520
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42521
+  (0.0ms) SAVEPOINT active_record_1
42522
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42523
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42524
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42525
+  (0.0ms) SAVEPOINT active_record_1
42526
+ SQL (0.1ms) INSERT INTO "clark_kent_report_filters" ("type", "filter_name", "duration", "kind_of_day", "offset", "filterable_id", "filterable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ClarkKent::ReportDateFilter"], ["filter_name", "created_at"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["created_at", "2016-11-18 22:33:39.918146"], ["updated_at", "2016-11-18 22:33:39.918146"]]
42527
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42528
+ Processing by ClarkKent::ReportFiltersController#edit as HTML
42529
+ Parameters: {"id"=>"1"}
42530
+ ClarkKent::ReportFilter Load (0.2ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT 1 [["id", 1]]
42531
+ ClarkKent::ReportEmail Load (0.1ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
42532
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42533
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (8.1ms)
42534
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (25.9ms)
42535
+ Completed 200 OK in 32ms (Views: 28.8ms | ActiveRecord: 0.3ms)
42536
+  (0.5ms) rollback transaction
42537
+  (0.2ms) begin transaction
42538
+ -------------------------------------------------------------------------------------
42539
+ ClarkKent::ReportFiltersController: test_should_get_the_edit_form_for_a_string_filter
42540
+ -------------------------------------------------------------------------------------
42541
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42542
+  (0.0ms) SAVEPOINT active_record_1
42543
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42544
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42545
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42546
+  (0.1ms) SAVEPOINT active_record_1
42547
+ SQL (0.2ms) INSERT INTO "clark_kent_report_filters" ("type", "filter_name", "filter_value", "filterable_id", "filterable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["type", "ClarkKent::ReportStringFilter"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["created_at", "2016-11-18 22:33:39.969527"], ["updated_at", "2016-11-18 22:33:39.969527"]]
42548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42549
+ Processing by ClarkKent::ReportFiltersController#edit as HTML
42550
+ Parameters: {"id"=>"1"}
42551
+ ClarkKent::ReportFilter Load (0.2ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT 1 [["id", 1]]
42552
+ ClarkKent::ReportEmail Load (0.0ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
42553
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42554
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.6ms)
42555
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (13.4ms)
42556
+ Completed 200 OK in 17ms (Views: 13.8ms | ActiveRecord: 0.3ms)
42557
+  (0.5ms) rollback transaction
42558
+  (0.1ms) begin transaction
42559
+ --------------------------------------------------------------------------------------
42560
+ ClarkKent::ReportFiltersController: test_should_get_the_edit_form_for_an_object_filter
42561
+ --------------------------------------------------------------------------------------
42562
+ ClarkKent::Report Load (0.3ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42563
+  (0.1ms) SAVEPOINT active_record_1
42564
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42565
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42566
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42567
+  (0.0ms) SAVEPOINT active_record_1
42568
+ SQL (0.1ms) INSERT INTO "clark_kent_report_filters" ("type", "filter_name", "filter_value", "filterable_id", "filterable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["type", "ClarkKent::ReportObjectFilter"], ["filter_name", "user_id"], ["filter_value", "1"], ["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["created_at", "2016-11-18 22:33:39.999203"], ["updated_at", "2016-11-18 22:33:39.999203"]]
42569
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42570
+ Processing by ClarkKent::ReportFiltersController#edit as HTML
42571
+ Parameters: {"id"=>"1"}
42572
+ ClarkKent::ReportFilter Load (0.1ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT 1 [["id", 1]]
42573
+ ClarkKent::ReportEmail Load (0.1ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
42574
+ ClarkKent::Report Load (0.1ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42575
+ User Load (0.1ms) SELECT "users".* FROM "users"
42576
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (3.1ms)
42577
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (16.4ms)
42578
+ Completed 200 OK in 20ms (Views: 16.7ms | ActiveRecord: 0.4ms)
42579
+  (0.5ms) rollback transaction
42580
+  (0.1ms) begin transaction
42581
+ -----------------------------------------------------------------------------------
42582
+ ClarkKent::ReportFiltersController: test_should_get_the_show_view_for_a_date_filter
42583
+ -----------------------------------------------------------------------------------
42584
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42585
+  (0.0ms) SAVEPOINT active_record_1
42586
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42587
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42588
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42589
+  (0.1ms) SAVEPOINT active_record_1
42590
+ SQL (0.1ms) INSERT INTO "clark_kent_report_filters" ("type", "filter_name", "duration", "kind_of_day", "offset", "filterable_id", "filterable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ClarkKent::ReportDateFilter"], ["filter_name", "created_at"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["created_at", "2016-11-18 22:33:40.033076"], ["updated_at", "2016-11-18 22:33:40.033076"]]
42591
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42592
+ Processing by ClarkKent::ReportFiltersController#show as HTML
42593
+ Parameters: {"id"=>"1"}
42594
+ ClarkKent::ReportFilter Load (0.1ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT 1 [["id", 1]]
42595
+ ClarkKent::ReportEmail Load (0.1ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
42596
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42597
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.1ms)
42598
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (3.6ms)
42599
+ Completed 200 OK in 8ms (Views: 4.0ms | ActiveRecord: 0.2ms)
42600
+  (0.5ms) rollback transaction
42601
+  (0.1ms) begin transaction
42602
+ -------------------------------------------------------------------------------------
42603
+ ClarkKent::ReportFiltersController: test_should_get_the_show_view_for_a_string_filter
42604
+ -------------------------------------------------------------------------------------
42605
+ ClarkKent::Report Load (0.2ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42606
+  (0.0ms) SAVEPOINT active_record_1
42607
+ SQL (0.3ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42608
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42609
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42610
+  (0.0ms) SAVEPOINT active_record_1
42611
+ SQL (0.1ms) INSERT INTO "clark_kent_report_filters" ("type", "filter_name", "filter_value", "filterable_id", "filterable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["type", "ClarkKent::ReportStringFilter"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["created_at", "2016-11-18 22:33:40.053521"], ["updated_at", "2016-11-18 22:33:40.053521"]]
42612
+  (0.1ms) RELEASE SAVEPOINT active_record_1
42613
+ Processing by ClarkKent::ReportFiltersController#show as HTML
42614
+ Parameters: {"id"=>"1"}
42615
+ ClarkKent::ReportFilter Load (0.1ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT 1 [["id", 1]]
42616
+ ClarkKent::ReportEmail Load (0.0ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
42617
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42618
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.1ms)
42619
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.8ms)
42620
+ Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.1ms)
42621
+  (0.4ms) rollback transaction
42622
+  (0.1ms) begin transaction
42623
+ --------------------------------------------------------------------------------------
42624
+ ClarkKent::ReportFiltersController: test_should_get_the_show_view_for_an_object_filter
42625
+ --------------------------------------------------------------------------------------
42626
+ ClarkKent::Report Load (0.4ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
42627
+  (0.0ms) SAVEPOINT active_record_1
42628
+ SQL (0.2ms) INSERT INTO "clark_kent_report_emails" ("when_to_send", "name", "report_id") VALUES (?, ?, ?) [["when_to_send", "Monday"], ["name", "Owner Arrival"], ["report_id", 1]]
42629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42630
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
42631
+  (0.0ms) SAVEPOINT active_record_1
42632
+ SQL (0.1ms) INSERT INTO "clark_kent_report_filters" ("type", "filter_name", "filter_value", "filterable_id", "filterable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["type", "ClarkKent::ReportObjectFilter"], ["filter_name", "user_id"], ["filter_value", "1"], ["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["created_at", "2016-11-18 22:33:40.069546"], ["updated_at", "2016-11-18 22:33:40.069546"]]
42633
+  (0.2ms) RELEASE SAVEPOINT active_record_1
42634
+ Processing by ClarkKent::ReportFiltersController#show as HTML
42635
+ Parameters: {"id"=>"1"}
42636
+ ClarkKent::ReportFilter Load (0.1ms) SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT 1 [["id", 1]]
42637
+ ClarkKent::ReportEmail Load (0.0ms) SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
42638
+ ClarkKent::Report Load (0.0ms) SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
42639
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
42640
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.3ms)
42641
+ Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (4.4ms)
42642
+ Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.2ms)
42643
+  (0.5ms) rollback transaction
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=fdae199b0ccedf501f9d5b6190363e204bb812f8d8efcea1cb36a45bef7fc40d:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=2db8194326533f67f0009ad2a30c9ebdaf18402dbd4f0fbb29260b3d27f3c0b6:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=43407cf6fd7596bf8dab2536e742267ede22bd1add078ff592c4607eefa3280f:ET
@@ -0,0 +1 @@
1
+ I"�/Users/eric/projects/clark_kent/app/assets/javascripts/clark_kent/application.js?type=application/javascript&id=bcc3cdf660a4d149e672751dcb78eaf45fd68035133e63bb7bb03150f4dce686:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=59be816927837951dbdc5446191a39423cb7d85cd4f22b304a5ed7fe9ac4e8ab:ET
@@ -0,0 +1 @@
1
+ I"�/Users/eric/projects/clark_kent/app/assets/javascripts/clark_kent/application.js?type=application/javascript&pipeline=self&id=87ff79980b3722fac7f21f52bb0e39976d9e4b279a1163cb317b0f45afac9c08:ET
@@ -28,8 +28,9 @@ require 'test_helper'
28
28
  report = ClarkKent::Report.first
29
29
  report.update_columns(sharing_scope_type: 'Department', sharing_scope_id: user.department_id)
30
30
  report_email = report.report_emails.create(name: 'test_emailer')
31
- assert_raises(ClarkKent::ReportFilterError) do
32
- report_email.send_email(user.id)
33
- end
31
+ report_email.send_email(user.id)
32
+ mailed = ActionMailer::Base.deliveries.last
33
+ assert_match /Your report could not be created due to the following problem/, mailed.body.to_s
34
+ assert_match /At least one date range is required/, mailed.body.to_s
34
35
  end
35
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clark_kent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-12 00:00:00.000000000 Z
11
+ date: 2016-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -296,6 +296,7 @@ files:
296
296
  - app/views/clark_kent/report_filters/_show_wrapper.html.erb
297
297
  - app/views/clark_kent/report_filters/_string_filter_edit.html.erb
298
298
  - app/views/clark_kent/report_filters/_string_filter_show.html.erb
299
+ - app/views/clark_kent/report_mailer/report_error.html.erb
299
300
  - app/views/clark_kent/report_mailer/report_run.html.erb
300
301
  - app/views/clark_kent/reports/_date_filter.html.erb
301
302
  - app/views/clark_kent/reports/_download_link.html.erb
@@ -410,13 +411,17 @@ files:
410
411
  - test/dummy/tmp/cache/assets/sprockets/v3.0/6e3-8lJQHaB2tpaemkQBoG8j1IXYd2T7R0hxB6RUry0.cache
411
412
  - test/dummy/tmp/cache/assets/sprockets/v3.0/7wkkNeyL-5f8CXSn7mMl8AVNJDqKAiYwQs3n_B6mQyU.cache
412
413
  - test/dummy/tmp/cache/assets/sprockets/v3.0/8S9BWbkqyqZJQUbtQschJbKqEQhGcIJGHi3MQwciyag.cache
414
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/9sCrVoj9qhqt_V0WjXl7Qrfyk6Yj0wZ--Qe8QIQaKMA.cache
413
415
  - test/dummy/tmp/cache/assets/sprockets/v3.0/9wAn82iO6baAuljoEQVoaVPuY9XDGcbcBtl8qv6StxQ.cache
414
416
  - test/dummy/tmp/cache/assets/sprockets/v3.0/BOXckJswXOmYIFOmyN_i44U-bY_U4-c-kE1Gk-rPlA8.cache
415
417
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Br0JlF7EfKjFrhWBfcqOj-sdtnNCHJLRFqPNY1mM5l0.cache
418
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/CN4hkBfh3U1M4HdS4Gxtv-G6Jy6IFSyY1K6m3YU54kI.cache
416
419
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Dq7vIXUs-4Fo3qF_pKChBZAaJzn6_Yf1hHEFu5vxKxg.cache
417
420
  - test/dummy/tmp/cache/assets/sprockets/v3.0/GSlw-mT--yR76-3Q9MUh6AOvIB8p5JRCbOYnb5bDyzI.cache
421
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Gc5BYe1W1Qoof0C8wnM-bBlZbFGNhy7KyY6t3ZHO9R8.cache
418
422
  - test/dummy/tmp/cache/assets/sprockets/v3.0/H0ZpixREXT2i1zQ82nkmYZzok2oXmJ5Z0tYH21Ag6hg.cache
419
423
  - test/dummy/tmp/cache/assets/sprockets/v3.0/HOfAHEuP6I8KPPyp98JcoOXTGi11_FBhOJwFtsevX-A.cache
424
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/HdDE_vIJMvCSKUX3p69u0kJ9pyOZYYRxLWE6ypcRNfE.cache
420
425
  - test/dummy/tmp/cache/assets/sprockets/v3.0/HoeR2i4C0fFw3InDLqJk6bUaQeky8AuUobvnvjv6pHM.cache
421
426
  - test/dummy/tmp/cache/assets/sprockets/v3.0/HuyKNAYEnPs4OFAHZ6YQZ3VSrTaxZe0Ra_fNZLbeXDw.cache
422
427
  - test/dummy/tmp/cache/assets/sprockets/v3.0/I20Hfwlj9bANRe97xPjNWAbtnTWBWhiAlPdMO_j0ktM.cache
@@ -425,6 +430,7 @@ files:
425
430
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Kn1tegghiey48SiIH6w4tiWY3Prk58yzxzlhdEWvjrk.cache
426
431
  - test/dummy/tmp/cache/assets/sprockets/v3.0/KnHgN_EorBZa2em6NxyXbszWIU3e3nis_H33u5KZDq0.cache
427
432
  - test/dummy/tmp/cache/assets/sprockets/v3.0/MBGxecGwxTYQEY7eD6RjPwyEK-nzQYdEg6L1CKxeNrg.cache
433
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/NReZtOL8LvKjGqEd3PTDkWDctVxTf6ZWkTLBTsxS1bQ.cache
428
434
  - test/dummy/tmp/cache/assets/sprockets/v3.0/NSNaeVG8YOVpuk6ZXd-Wgb3KIbu7rwVKMVH_L17X7bA.cache
429
435
  - test/dummy/tmp/cache/assets/sprockets/v3.0/O8akbUwAbmIKY-AhITimq-JDQ6IgsO3Hvq2v5etufFw.cache
430
436
  - test/dummy/tmp/cache/assets/sprockets/v3.0/O_lf7JlEpHIA6lJttTUysIjiZne0WHcrriF_gfYEPuk.cache
@@ -435,6 +441,7 @@ files:
435
441
  - test/dummy/tmp/cache/assets/sprockets/v3.0/SnU3WeG9WD2u9ObM6eJPhNVI-AR0kTW9EjvVtdsmBYU.cache
436
442
  - test/dummy/tmp/cache/assets/sprockets/v3.0/TKNXein9fms2hyVGgBUTpbFU4IzJrA4H2uVv1TvRy8s.cache
437
443
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UGBHtggSaDhQVXh82S85XGM4XLPrNcA9oGk5imyLQso.cache
444
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/UO63Y5t3PvuucNUEfqej9v1YQNQAJMA-pf_xiBye5vo.cache
438
445
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UQwQfp4f1cu3wf-ooVNBslMVYMSkes6dLLERta2Vv24.cache
439
446
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UVeH93rELRBawlPCnRGGJP4tRFjy_dH7wicU_ZbrCDM.cache
440
447
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UwMFS8rJmeOVTOPUAsy5rBsPqe-mwJgvTSCg-8xwSK8.cache
@@ -445,6 +452,7 @@ files:
445
452
  - test/dummy/tmp/cache/assets/sprockets/v3.0/XGAUd4zdycHNjgugiwtNoIzH7Rye3BmjHFqOL3pkrhg.cache
446
453
  - test/dummy/tmp/cache/assets/sprockets/v3.0/XtN1zYSzj7nMrKARGZJk3aBoAkOvTRo2e2mfBW4jB6o.cache
447
454
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Yg4blpsarsGK85xxkPyxeXWfUmlqediuIlTkheX7BH4.cache
455
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ZXgaX5xc809c6xwGetz1yYwe2rZKM1fsyl1oTYISqoE.cache
448
456
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ZZG2BX3ZNKeB05plv8lIMy-z0yF_KnHRwVS-uMtpcrE.cache
449
457
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Zo-Gv5yCgWm4ckuzHH4U1SjFs_tYPZVWEGXpoBgZeYU.cache
450
458
  - test/dummy/tmp/cache/assets/sprockets/v3.0/a0bracA01CExs_QbG3P1egYky6ZRd4m-3ln1ekPgXxw.cache
@@ -452,6 +460,7 @@ files:
452
460
  - test/dummy/tmp/cache/assets/sprockets/v3.0/bR-gDb8oK48ZYrZSIeamJnm4H0noAKvPys1zAPml46I.cache
453
461
  - test/dummy/tmp/cache/assets/sprockets/v3.0/bWgvdzjbljqHmFQIeM8iFFhVXEkwEAfjGTjjjMBimdE.cache
454
462
  - test/dummy/tmp/cache/assets/sprockets/v3.0/c0fZzpmetAbdlEG8jam5O6N3N3wiVzKXR_lCIY6kCTA.cache
463
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ce6jtr1ba-rbVUTM82edB31tw2mkJcqfWIFC7VbG01Q.cache
455
464
  - test/dummy/tmp/cache/assets/sprockets/v3.0/cwN5IE5m4V3MoUFZd0am5HQjaHydW8ySLOSbOwc4ChY.cache
456
465
  - test/dummy/tmp/cache/assets/sprockets/v3.0/dKk5D4vEs4pKkbGWK8CqDojCmwIkp_WDwK4-4Ejmtoo.cache
457
466
  - test/dummy/tmp/cache/assets/sprockets/v3.0/dwXsOetUlrT7c2kTk4ADNmZoNvC5otpVOxTNLw_EVVM.cache
@@ -459,6 +468,7 @@ files:
459
468
  - test/dummy/tmp/cache/assets/sprockets/v3.0/hj8Ir9wcVSy1KYrnWu9bpD24vDhCG3tvt-nKbNxb1Wg.cache
460
469
  - test/dummy/tmp/cache/assets/sprockets/v3.0/huJCF7JI-B_E1g1hkQyWPl-dEfdGNaHoau1pEsE3yak.cache
461
470
  - test/dummy/tmp/cache/assets/sprockets/v3.0/i2JEwS23sj58zy4o0tjAF4yI2VN9AexaUB0DIWcaiTw.cache
471
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/iUrrD_f10IsEULQpMhrxJYB3kA5tY5QowgfIUzmpcUU.cache
462
472
  - test/dummy/tmp/cache/assets/sprockets/v3.0/kBovyixgNRk3E-gAuk5uGtcVaFQK9QrI0eDTLbFiB9c.cache
463
473
  - test/dummy/tmp/cache/assets/sprockets/v3.0/kXxL0BxZJ_YjZc12TBmBBynUmAr_07HvO_ZvDNfPBFE.cache
464
474
  - test/dummy/tmp/cache/assets/sprockets/v3.0/mXL70cyqA-IuZlTlRDqoP_QDPgxcUNIvHjrE9-nkF0k.cache
@@ -472,6 +482,8 @@ files:
472
482
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qU-5tKDbPbSh4KkgHIbMh20NwNu3kKmk1rwa3VTy_lI.cache
473
483
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qvvaWhtH_esBrBPzGCT_d3Q6dSq4TR_gwWhfj7yNd0Q.cache
474
484
  - test/dummy/tmp/cache/assets/sprockets/v3.0/r4mWLr0pwlIV-0wnQKDTCWoFrvx5mQd3jFlatnAzdXw.cache
485
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/rjboaZwWGn7Bqq7K6UP6Jwuc2YNOuzBX9QXIN0pwGIU.cache
486
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/rjoHNgBPuY_S9pxfkayG1m1T78ORU3-QsGGKMzzF08c.cache
475
487
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ssr9LkP729OAoOeLnDtPU4I43SWHJerB9drOLjVui3E.cache
476
488
  - test/dummy/tmp/cache/assets/sprockets/v3.0/tFi4IIk7HxeTEe8QM0tfFxtvthId0aM6b83iqEjJAoc.cache
477
489
  - test/dummy/tmp/cache/assets/sprockets/v3.0/tGPHA-n9RZDcSL1JEOMvmeFmp33hn_S5VaobYIoW5aU.cache
@@ -481,6 +493,7 @@ files:
481
493
  - test/dummy/tmp/cache/assets/sprockets/v3.0/wgbO1Px36atEYDFKYZ8Yx2Kubk7L-qe_pqgAkxybT4g.cache
482
494
  - test/dummy/tmp/cache/assets/sprockets/v3.0/wvjgvVlo2DBG2pIfefRNE4jBpifCui-P8u1LWgXYi3o.cache
483
495
  - test/dummy/tmp/cache/assets/sprockets/v3.0/x1pNHYQUCVLQm2-2eBri2T7gxgLTBDez3d7ao8etFX4.cache
496
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/xFczLyKOWKQkPCm5mMnUI_uZ9FKhm9SuzebYHQ8G4_M.cache
484
497
  - test/dummy/tmp/cache/assets/sprockets/v3.0/yEHhEsjQv9j3w1E8HZSLNeJ3FwxVJY02gIUVtdy9sQ4.cache
485
498
  - test/dummy/tmp/cache/assets/sprockets/v3.0/zcxP2plJcAimoALnq7ISr97huo22fswDnf7g_3MAVSQ.cache
486
499
  - test/dummy/tmp/cache/assets/test/sprockets/0a5b3da98f8307d16bc302a1f7206591
@@ -675,6 +688,7 @@ test_files:
675
688
  - test/dummy/tmp/cache/assets/sprockets/v3.0/6e3-8lJQHaB2tpaemkQBoG8j1IXYd2T7R0hxB6RUry0.cache
676
689
  - test/dummy/tmp/cache/assets/sprockets/v3.0/7wkkNeyL-5f8CXSn7mMl8AVNJDqKAiYwQs3n_B6mQyU.cache
677
690
  - test/dummy/tmp/cache/assets/sprockets/v3.0/8S9BWbkqyqZJQUbtQschJbKqEQhGcIJGHi3MQwciyag.cache
691
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/9sCrVoj9qhqt_V0WjXl7Qrfyk6Yj0wZ--Qe8QIQaKMA.cache
678
692
  - test/dummy/tmp/cache/assets/sprockets/v3.0/9wAn82iO6baAuljoEQVoaVPuY9XDGcbcBtl8qv6StxQ.cache
679
693
  - test/dummy/tmp/cache/assets/sprockets/v3.0/a0bracA01CExs_QbG3P1egYky6ZRd4m-3ln1ekPgXxw.cache
680
694
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ajIuxsDjPa9Ckbc6l1z-E5J7kmNCl2z1zMziWYUABOs.cache
@@ -683,13 +697,17 @@ test_files:
683
697
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Br0JlF7EfKjFrhWBfcqOj-sdtnNCHJLRFqPNY1mM5l0.cache
684
698
  - test/dummy/tmp/cache/assets/sprockets/v3.0/bWgvdzjbljqHmFQIeM8iFFhVXEkwEAfjGTjjjMBimdE.cache
685
699
  - test/dummy/tmp/cache/assets/sprockets/v3.0/c0fZzpmetAbdlEG8jam5O6N3N3wiVzKXR_lCIY6kCTA.cache
700
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ce6jtr1ba-rbVUTM82edB31tw2mkJcqfWIFC7VbG01Q.cache
701
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/CN4hkBfh3U1M4HdS4Gxtv-G6Jy6IFSyY1K6m3YU54kI.cache
686
702
  - test/dummy/tmp/cache/assets/sprockets/v3.0/cwN5IE5m4V3MoUFZd0am5HQjaHydW8ySLOSbOwc4ChY.cache
687
703
  - test/dummy/tmp/cache/assets/sprockets/v3.0/dKk5D4vEs4pKkbGWK8CqDojCmwIkp_WDwK4-4Ejmtoo.cache
688
704
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Dq7vIXUs-4Fo3qF_pKChBZAaJzn6_Yf1hHEFu5vxKxg.cache
689
705
  - test/dummy/tmp/cache/assets/sprockets/v3.0/dwXsOetUlrT7c2kTk4ADNmZoNvC5otpVOxTNLw_EVVM.cache
690
706
  - test/dummy/tmp/cache/assets/sprockets/v3.0/gbttyTUP6NxgF-6-jkZ_0XPvxtfWB0EmFMl12QtYth4.cache
707
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Gc5BYe1W1Qoof0C8wnM-bBlZbFGNhy7KyY6t3ZHO9R8.cache
691
708
  - test/dummy/tmp/cache/assets/sprockets/v3.0/GSlw-mT--yR76-3Q9MUh6AOvIB8p5JRCbOYnb5bDyzI.cache
692
709
  - test/dummy/tmp/cache/assets/sprockets/v3.0/H0ZpixREXT2i1zQ82nkmYZzok2oXmJ5Z0tYH21Ag6hg.cache
710
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/HdDE_vIJMvCSKUX3p69u0kJ9pyOZYYRxLWE6ypcRNfE.cache
693
711
  - test/dummy/tmp/cache/assets/sprockets/v3.0/hj8Ir9wcVSy1KYrnWu9bpD24vDhCG3tvt-nKbNxb1Wg.cache
694
712
  - test/dummy/tmp/cache/assets/sprockets/v3.0/HoeR2i4C0fFw3InDLqJk6bUaQeky8AuUobvnvjv6pHM.cache
695
713
  - test/dummy/tmp/cache/assets/sprockets/v3.0/HOfAHEuP6I8KPPyp98JcoOXTGi11_FBhOJwFtsevX-A.cache
@@ -698,6 +716,7 @@ test_files:
698
716
  - test/dummy/tmp/cache/assets/sprockets/v3.0/I20Hfwlj9bANRe97xPjNWAbtnTWBWhiAlPdMO_j0ktM.cache
699
717
  - test/dummy/tmp/cache/assets/sprockets/v3.0/i2JEwS23sj58zy4o0tjAF4yI2VN9AexaUB0DIWcaiTw.cache
700
718
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ICbkYKfaoZRUPEOztDCgFmCKItizJSF6nxzG5MhlT5k.cache
719
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/iUrrD_f10IsEULQpMhrxJYB3kA5tY5QowgfIUzmpcUU.cache
701
720
  - test/dummy/tmp/cache/assets/sprockets/v3.0/JbcAACpMmVlknG104wCtLY73aNeelGB5NNPiF4uDf5s.cache
702
721
  - test/dummy/tmp/cache/assets/sprockets/v3.0/kBovyixgNRk3E-gAuk5uGtcVaFQK9QrI0eDTLbFiB9c.cache
703
722
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Kn1tegghiey48SiIH6w4tiWY3Prk58yzxzlhdEWvjrk.cache
@@ -708,6 +727,7 @@ test_files:
708
727
  - test/dummy/tmp/cache/assets/sprockets/v3.0/mXq0AHNg7Hq2Y6IQIwEs6IxzwDDm2FOZAYPyujqlSrA.cache
709
728
  - test/dummy/tmp/cache/assets/sprockets/v3.0/nE7RbUAbmdUMqsAwAWPIREDjlzBy34m_TP3mV8_UCFM.cache
710
729
  - test/dummy/tmp/cache/assets/sprockets/v3.0/nQh7J8iLgW3j3-evMg5iclK6Ph4j4agDPZbAb2D1cpY.cache
730
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/NReZtOL8LvKjGqEd3PTDkWDctVxTf6ZWkTLBTsxS1bQ.cache
711
731
  - test/dummy/tmp/cache/assets/sprockets/v3.0/NSNaeVG8YOVpuk6ZXd-Wgb3KIbu7rwVKMVH_L17X7bA.cache
712
732
  - test/dummy/tmp/cache/assets/sprockets/v3.0/O8akbUwAbmIKY-AhITimq-JDQ6IgsO3Hvq2v5etufFw.cache
713
733
  - test/dummy/tmp/cache/assets/sprockets/v3.0/O_lf7JlEpHIA6lJttTUysIjiZne0WHcrriF_gfYEPuk.cache
@@ -721,6 +741,8 @@ test_files:
721
741
  - test/dummy/tmp/cache/assets/sprockets/v3.0/qvvaWhtH_esBrBPzGCT_d3Q6dSq4TR_gwWhfj7yNd0Q.cache
722
742
  - test/dummy/tmp/cache/assets/sprockets/v3.0/QxnJLv8k1hgBq5DNtQucXUBBI5rn14myfFJFJs2RNqY.cache
723
743
  - test/dummy/tmp/cache/assets/sprockets/v3.0/r4mWLr0pwlIV-0wnQKDTCWoFrvx5mQd3jFlatnAzdXw.cache
744
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/rjboaZwWGn7Bqq7K6UP6Jwuc2YNOuzBX9QXIN0pwGIU.cache
745
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/rjoHNgBPuY_S9pxfkayG1m1T78ORU3-QsGGKMzzF08c.cache
724
746
  - test/dummy/tmp/cache/assets/sprockets/v3.0/SnU3WeG9WD2u9ObM6eJPhNVI-AR0kTW9EjvVtdsmBYU.cache
725
747
  - test/dummy/tmp/cache/assets/sprockets/v3.0/SP99tSgcYiJIx2KM12C0FnnXucDnvQ53-Z2aJFro-PU.cache
726
748
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ssr9LkP729OAoOeLnDtPU4I43SWHJerB9drOLjVui3E.cache
@@ -729,6 +751,7 @@ test_files:
729
751
  - test/dummy/tmp/cache/assets/sprockets/v3.0/TKNXein9fms2hyVGgBUTpbFU4IzJrA4H2uVv1TvRy8s.cache
730
752
  - test/dummy/tmp/cache/assets/sprockets/v3.0/tPF6H9NRpGO3whu2y5_e_R_1EACKdCwu5437D83qJT0.cache
731
753
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UGBHtggSaDhQVXh82S85XGM4XLPrNcA9oGk5imyLQso.cache
754
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/UO63Y5t3PvuucNUEfqej9v1YQNQAJMA-pf_xiBye5vo.cache
732
755
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UQwQfp4f1cu3wf-ooVNBslMVYMSkes6dLLERta2Vv24.cache
733
756
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UVeH93rELRBawlPCnRGGJP4tRFjy_dH7wicU_ZbrCDM.cache
734
757
  - test/dummy/tmp/cache/assets/sprockets/v3.0/UwMFS8rJmeOVTOPUAsy5rBsPqe-mwJgvTSCg-8xwSK8.cache
@@ -741,12 +764,14 @@ test_files:
741
764
  - test/dummy/tmp/cache/assets/sprockets/v3.0/X-bY_yeJIl4hwsbTN_dx12dUEzsaExaUkthjOEOBjUM.cache
742
765
  - test/dummy/tmp/cache/assets/sprockets/v3.0/X1pDD1_Im8Jyti817p7q6enVK8MjNPsLCoZ_c8hG2fs.cache
743
766
  - test/dummy/tmp/cache/assets/sprockets/v3.0/x1pNHYQUCVLQm2-2eBri2T7gxgLTBDez3d7ao8etFX4.cache
767
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/xFczLyKOWKQkPCm5mMnUI_uZ9FKhm9SuzebYHQ8G4_M.cache
744
768
  - test/dummy/tmp/cache/assets/sprockets/v3.0/XGAUd4zdycHNjgugiwtNoIzH7Rye3BmjHFqOL3pkrhg.cache
745
769
  - test/dummy/tmp/cache/assets/sprockets/v3.0/XtN1zYSzj7nMrKARGZJk3aBoAkOvTRo2e2mfBW4jB6o.cache
746
770
  - test/dummy/tmp/cache/assets/sprockets/v3.0/yEHhEsjQv9j3w1E8HZSLNeJ3FwxVJY02gIUVtdy9sQ4.cache
747
771
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Yg4blpsarsGK85xxkPyxeXWfUmlqediuIlTkheX7BH4.cache
748
772
  - test/dummy/tmp/cache/assets/sprockets/v3.0/zcxP2plJcAimoALnq7ISr97huo22fswDnf7g_3MAVSQ.cache
749
773
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Zo-Gv5yCgWm4ckuzHH4U1SjFs_tYPZVWEGXpoBgZeYU.cache
774
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/ZXgaX5xc809c6xwGetz1yYwe2rZKM1fsyl1oTYISqoE.cache
750
775
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ZZG2BX3ZNKeB05plv8lIMy-z0yF_KnHRwVS-uMtpcrE.cache
751
776
  - test/dummy/tmp/cache/assets/test/sprockets/0a5b3da98f8307d16bc302a1f7206591
752
777
  - test/dummy/tmp/cache/assets/test/sprockets/0a9995208f1340e4b34008cbd5b73c64