clark_kent 0.8.7 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e6b35e00bd670e361ca050f25742b0b3a66ac8b
|
4
|
+
data.tar.gz: 1a180065525fe14dd534cbdf7ef327021049fd56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 190cc984b4e95e9dda83d46b9b6b418f0150dbf50bac219835552757297a65bcae1e296c74a990a0474307e0b408f24184612e3524f75b13af7bfa3b3280c02d
|
7
|
+
data.tar.gz: e00255abff5d692f3a22ebe58d391db092dd910bd65fc7eff24595a1547f934b2d1795e34f53ff98d02316be70aa15475d919901ab9170d7aff11acd2fc4ee3e
|
@@ -66,8 +66,12 @@ class ClarkKent::ReportsController < ClarkKent::ApplicationController
|
|
66
66
|
|
67
67
|
def update
|
68
68
|
@report = ClarkKent::Report.find(params[:id])
|
69
|
-
@report
|
70
|
-
|
69
|
+
UpdateReport.new(@report,report_params).call
|
70
|
+
if @report.errors.empty?
|
71
|
+
render partial: 'show'
|
72
|
+
else
|
73
|
+
render partial: 'edit', status: :conflict
|
74
|
+
end
|
71
75
|
end
|
72
76
|
|
73
77
|
def clone
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class ClarkKent::ReportsController::UpdateReport
|
2
|
+
def initialize(report, params)
|
3
|
+
@report, @params = report, params
|
4
|
+
end
|
5
|
+
|
6
|
+
def call
|
7
|
+
@report.assign_attributes(@params)
|
8
|
+
validate_resource_type or return false
|
9
|
+
@report.save
|
10
|
+
end
|
11
|
+
|
12
|
+
def validate_resource_type
|
13
|
+
if @report.report_columns.any? || @report.report_filters.any?
|
14
|
+
if @report.changes.keys.include? 'resource_type'
|
15
|
+
@report.errors[:resource_type] << "You can't change the type of report after adding columns or filters."
|
16
|
+
return false
|
17
|
+
end
|
18
|
+
end
|
19
|
+
return true
|
20
|
+
end
|
21
|
+
end
|
data/lib/clark_kent/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -61934,3 +61934,1400 @@ ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
|
61934
61934
|
[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]]
|
61935
61935
|
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
61936
61936
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
61937
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
61938
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)[0m
|
61939
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
61940
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
61941
|
+
[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
|
61942
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
61943
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
61944
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
61945
|
+
FROM sqlite_master
|
61946
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
61947
|
+
UNION ALL
|
61948
|
+
SELECT sql
|
61949
|
+
FROM sqlite_temp_master
|
61950
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
61951
|
+
[0m
|
61952
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
61953
|
+
[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
|
61954
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
61955
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
61956
|
+
FROM sqlite_master
|
61957
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
61958
|
+
UNION ALL
|
61959
|
+
SELECT sql
|
61960
|
+
FROM sqlite_temp_master
|
61961
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
61962
|
+
[0m
|
61963
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
61964
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)[0m
|
61965
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
61966
|
+
[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
|
61967
|
+
[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
|
61968
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
61969
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
61970
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
61971
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
61972
|
+
('20131226170042'),
|
61973
|
+
('20131226170112'),
|
61974
|
+
('20140114010048'),
|
61975
|
+
('20140129051754'),
|
61976
|
+
('20150304233739');
|
61977
|
+
|
61978
|
+
[0m
|
61979
|
+
[1m[35m (1.1ms)[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
|
61980
|
+
[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]]
|
61981
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
61982
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-03-22 01:01:24 UTC], ["updated_at", 2017-03-22 01:01:24 UTC]]
|
61983
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
61984
|
+
[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]]
|
61985
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
61986
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
61987
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
61988
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-03-22 01:01:24 UTC], ["updated_at", 2017-03-22 01:01:24 UTC]]
|
61989
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
61990
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
61991
|
+
[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]]
|
61992
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
61993
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
61994
|
+
[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]]
|
61995
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
61996
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
61997
|
+
[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]]
|
61998
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
61999
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
62000
|
+
[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]]
|
62001
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
62002
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
62003
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
62004
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
62005
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62006
|
+
[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]]
|
62007
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
62008
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
62009
|
+
[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-03-22 01:01:24 UTC], ["updated_at", 2017-03-22 01:01:24 UTC]]
|
62010
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
62011
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62012
|
+
-------------------------
|
62013
|
+
ClarkKentTest: test_truth
|
62014
|
+
-------------------------
|
62015
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
62016
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
62017
|
+
-----------------------------------------------------
|
62018
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
62019
|
+
-----------------------------------------------------
|
62020
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
62021
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62022
|
+
--------------------------------------------------------------------------
|
62023
|
+
ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
62024
|
+
--------------------------------------------------------------------------
|
62025
|
+
[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]]
|
62026
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62027
|
+
[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]]
|
62028
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62029
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
62030
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62031
|
+
--------------------------------------------------------------------------
|
62032
|
+
ClarkKent::ReportableTest: test_0002_it works without any required filters
|
62033
|
+
--------------------------------------------------------------------------
|
62034
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62035
|
+
[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", "TestReportable"], ["created_at", 2017-03-22 01:01:24 UTC], ["updated_at", 2017-03-22 01:01:24 UTC]]
|
62036
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62037
|
+
[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]]
|
62038
|
+
[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"]]
|
62039
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
62040
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62041
|
+
------------------------------------------------------------------------
|
62042
|
+
ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
62043
|
+
------------------------------------------------------------------------
|
62044
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62045
|
+
[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-03-22 01:01:24 UTC], ["updated_at", 2017-03-22 01:01:24 UTC]]
|
62046
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62047
|
+
[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]]
|
62048
|
+
[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"]]
|
62049
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62050
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62051
|
+
--------------------------------------------------------------------------
|
62052
|
+
ClarkKent::ReportableTest: test_0003_doesn't blow up if order_sql is blank
|
62053
|
+
--------------------------------------------------------------------------
|
62054
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62055
|
+
[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-03-22 01:01:24 UTC], ["updated_at", 2017-03-22 01:01:24 UTC]]
|
62056
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62057
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62058
|
+
[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]]
|
62059
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62060
|
+
[1m[36mClarkKent::ReportColumn Load (0.3ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
62061
|
+
[1m[36mClarkKent::ReportFilter Load (0.3ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
62062
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
62063
|
+
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
62064
|
+
-----------------------------------------------------------------------------------------
|
62065
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
62066
|
+
-----------------------------------------------------------------------------------------
|
62067
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
62068
|
+
[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]]
|
62069
|
+
[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]]
|
62070
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62071
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
62072
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62073
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62074
|
+
[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"]]
|
62075
|
+
[1m[36mDepartment Load (0.4ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62076
|
+
[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]]
|
62077
|
+
[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]]
|
62078
|
+
[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]]
|
62079
|
+
[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"]]
|
62080
|
+
[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"]]
|
62081
|
+
[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]]
|
62082
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62083
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb
|
62084
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (1.8ms)
|
62085
|
+
ClarkKent::ReportMailer#report_error: processed outbound mail in 191.9ms
|
62086
|
+
Sent mail to taproot@gmail.com (7.2ms)
|
62087
|
+
Date: Tue, 21 Mar 2017 19:01:25 -0600
|
62088
|
+
From: reservations@invitedhome.com
|
62089
|
+
To: taproot@gmail.com
|
62090
|
+
Message-ID: <58d1cce57e0ec_8d1f3ffbfb43f9f488448@Erics-MacBook-Pro.local.mail>
|
62091
|
+
Subject: Your report has a problem
|
62092
|
+
Mime-Version: 1.0
|
62093
|
+
Content-Type: text/html;
|
62094
|
+
charset=UTF-8
|
62095
|
+
Content-Transfer-Encoding: 7bit
|
62096
|
+
|
62097
|
+
Your report could not be created due to the following problem:
|
62098
|
+
<strong>At least one date range is required.</strong>
|
62099
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62100
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62101
|
+
---------------------------------------------------
|
62102
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
62103
|
+
---------------------------------------------------
|
62104
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
62105
|
+
[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]]
|
62106
|
+
[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]]
|
62107
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62108
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
62109
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62110
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62111
|
+
[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-03-22 01:01:25 UTC], ["updated_at", 2017-03-22 01:01:25 UTC]]
|
62112
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62113
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62114
|
+
[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"]]
|
62115
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62116
|
+
[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]]
|
62117
|
+
[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]]
|
62118
|
+
[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]]
|
62119
|
+
[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"]]
|
62120
|
+
[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"]]
|
62121
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
62122
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
62123
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62124
|
+
--------------------------------------------------------------------------------------------------
|
62125
|
+
ClarkKent::ReportColumnsControllerTest: test_0003_should reject a report column with unusable sort
|
62126
|
+
--------------------------------------------------------------------------------------------------
|
62127
|
+
[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]]
|
62128
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
62129
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1", "report_sort"=>"ascending"}}
|
62130
|
+
[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]]
|
62131
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62132
|
+
[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]]
|
62133
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
62134
|
+
[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]]
|
62135
|
+
[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]]
|
62136
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (61.4ms)
|
62137
|
+
Completed 409 Conflict in 93ms (Views: 90.5ms | ActiveRecord: 0.5ms)
|
62138
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
62139
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62140
|
+
---------------------------------------------------------------------------------------------------
|
62141
|
+
ClarkKent::ReportColumnsControllerTest: test_0002_should reject a report column with no column_name
|
62142
|
+
---------------------------------------------------------------------------------------------------
|
62143
|
+
[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]]
|
62144
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
62145
|
+
Parameters: {"report_column"=>{"report_id"=>"1"}}
|
62146
|
+
[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]]
|
62147
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62148
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
62149
|
+
[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]]
|
62150
|
+
[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]]
|
62151
|
+
[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]]
|
62152
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (8.4ms)
|
62153
|
+
Completed 409 Conflict in 11ms (Views: 8.4ms | ActiveRecord: 0.5ms)
|
62154
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
62155
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62156
|
+
-------------------------------------------------------------------------------
|
62157
|
+
ClarkKent::ReportColumnsControllerTest: test_0001_should create a report column
|
62158
|
+
-------------------------------------------------------------------------------
|
62159
|
+
[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]]
|
62160
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
62161
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1"}}
|
62162
|
+
[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]]
|
62163
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62164
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name") VALUES (?, ?)[0m [["report_id", 1], ["column_name", "user_name"]]
|
62165
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62166
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.1ms)
|
62167
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (34.2ms)
|
62168
|
+
Completed 200 OK in 65ms (Views: 62.5ms | ActiveRecord: 0.6ms)
|
62169
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
62170
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62171
|
+
------------------------------------------------------------------------------------------------
|
62172
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
62173
|
+
------------------------------------------------------------------------------------------------
|
62174
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62175
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
62176
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
62177
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
62178
|
+
------------------------------------------------------------------------------------------
|
62179
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_an_object_filter
|
62180
|
+
------------------------------------------------------------------------------------------
|
62181
|
+
[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]]
|
62182
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62183
|
+
[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"]]
|
62184
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62185
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62186
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62187
|
+
[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-03-22 01:01:25 UTC], ["updated_at", 2017-03-22 01:01:25 UTC]]
|
62188
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62189
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
62190
|
+
Parameters: {"id"=>"1"}
|
62191
|
+
[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]]
|
62192
|
+
[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]]
|
62193
|
+
[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]]
|
62194
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62195
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.9ms)
|
62196
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.9ms)
|
62197
|
+
Completed 200 OK in 14ms (Views: 8.6ms | ActiveRecord: 0.3ms)
|
62198
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62199
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62200
|
+
-----------------------------------------------------------------------------
|
62201
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_report_filter
|
62202
|
+
-----------------------------------------------------------------------------
|
62203
|
+
[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]]
|
62204
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62205
|
+
[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"]]
|
62206
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62207
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62208
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
62209
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
62210
|
+
[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]]
|
62211
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62212
|
+
[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-03-22 01:01:25 UTC], ["updated_at", 2017-03-22 01:01:25 UTC]]
|
62213
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62214
|
+
[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]]
|
62215
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.5ms)
|
62216
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.7ms)
|
62217
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (6.2ms)
|
62218
|
+
Completed 200 OK in 22ms (Views: 9.1ms | ActiveRecord: 0.4ms)
|
62219
|
+
[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]]
|
62220
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62221
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
62222
|
+
-----------------------------------------------------------------------------------------
|
62223
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_string_filter
|
62224
|
+
-----------------------------------------------------------------------------------------
|
62225
|
+
[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]]
|
62226
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62227
|
+
[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"]]
|
62228
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62229
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62230
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62231
|
+
[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-03-22 01:01:25 UTC], ["updated_at", 2017-03-22 01:01:25 UTC]]
|
62232
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62233
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
62234
|
+
Parameters: {"id"=>"1"}
|
62235
|
+
[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]]
|
62236
|
+
[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]]
|
62237
|
+
[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]]
|
62238
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.4ms)
|
62239
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (11.8ms)
|
62240
|
+
Completed 200 OK in 17ms (Views: 14.6ms | ActiveRecord: 0.2ms)
|
62241
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
62242
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62243
|
+
---------------------------------------------------------------------------------------
|
62244
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_date_filter
|
62245
|
+
---------------------------------------------------------------------------------------
|
62246
|
+
[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]]
|
62247
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62248
|
+
[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"]]
|
62249
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62250
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62251
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62252
|
+
[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-03-22 01:01:25 UTC], ["updated_at", 2017-03-22 01:01:25 UTC]]
|
62253
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62254
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
62255
|
+
Parameters: {"id"=>"1"}
|
62256
|
+
[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]]
|
62257
|
+
[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]]
|
62258
|
+
[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]]
|
62259
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.6ms)
|
62260
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.3ms)
|
62261
|
+
Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 0.2ms)
|
62262
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
62263
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62264
|
+
------------------------------------------------------------------------------------------
|
62265
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_an_object_filter
|
62266
|
+
------------------------------------------------------------------------------------------
|
62267
|
+
[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]]
|
62268
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62269
|
+
[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"]]
|
62270
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62271
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62272
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62273
|
+
[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-03-22 01:01:25 UTC], ["updated_at", 2017-03-22 01:01:25 UTC]]
|
62274
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62275
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
62276
|
+
Parameters: {"id"=>"1"}
|
62277
|
+
[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]]
|
62278
|
+
[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]]
|
62279
|
+
[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]]
|
62280
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
62281
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (3.0ms)
|
62282
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (9.9ms)
|
62283
|
+
Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.3ms)
|
62284
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
62285
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62286
|
+
-------------------------------------------------------------------------------------
|
62287
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_an_object_report_filter
|
62288
|
+
-------------------------------------------------------------------------------------
|
62289
|
+
[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]]
|
62290
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62291
|
+
[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"]]
|
62292
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62293
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62294
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
62295
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_id", "filter_value"=>"1", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
62296
|
+
[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]]
|
62297
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62298
|
+
[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-03-22 01:01:25 UTC], ["updated_at", 2017-03-22 01:01:25 UTC]]
|
62299
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62300
|
+
[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]]
|
62301
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62302
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.5ms)
|
62303
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.2ms)
|
62304
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.4ms)
|
62305
|
+
Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.5ms)
|
62306
|
+
[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]]
|
62307
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62308
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62309
|
+
---------------------------------------------------------------------------------------
|
62310
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_date_filter
|
62311
|
+
---------------------------------------------------------------------------------------
|
62312
|
+
[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]]
|
62313
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62314
|
+
[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"]]
|
62315
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62316
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62317
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62318
|
+
[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-03-22 01:01:25 UTC], ["updated_at", 2017-03-22 01:01:25 UTC]]
|
62319
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62320
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
62321
|
+
Parameters: {"id"=>"1"}
|
62322
|
+
[1m[36mClarkKent::ReportFilter Load (0.3ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62323
|
+
[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]]
|
62324
|
+
[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]]
|
62325
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (4.0ms)
|
62326
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (11.4ms)
|
62327
|
+
Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.3ms)
|
62328
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62329
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62330
|
+
-----------------------------------------------------------------------------------------
|
62331
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_string_filter
|
62332
|
+
-----------------------------------------------------------------------------------------
|
62333
|
+
[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]]
|
62334
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62335
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
62336
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62337
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62338
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62339
|
+
[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-03-22 01:01:25 UTC], ["updated_at", 2017-03-22 01:01:25 UTC]]
|
62340
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62341
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
62342
|
+
Parameters: {"id"=>"1"}
|
62343
|
+
[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]]
|
62344
|
+
[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]]
|
62345
|
+
[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]]
|
62346
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.1ms)
|
62347
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.0ms)
|
62348
|
+
Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms)
|
62349
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62350
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62351
|
+
----------------------------------------------------------------------------------
|
62352
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_date_report_filter
|
62353
|
+
----------------------------------------------------------------------------------
|
62354
|
+
[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]]
|
62355
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62356
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
62357
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62358
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62359
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
62360
|
+
Parameters: {"report_filter"=>{"duration"=>"week", "filter_name"=>"created_at", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
|
62361
|
+
[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]]
|
62362
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62363
|
+
[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-03-22 01:01:26 UTC], ["updated_at", 2017-03-22 01:01:26 UTC]]
|
62364
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62365
|
+
[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]]
|
62366
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.1ms)
|
62367
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (1.9ms)
|
62368
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.1ms)
|
62369
|
+
Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms)
|
62370
|
+
[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]]
|
62371
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
62372
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
62373
|
+
----------------------------------------------------------------------
|
62374
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
62375
|
+
----------------------------------------------------------------------
|
62376
|
+
[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]]
|
62377
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62378
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
62379
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62380
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62381
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
62382
|
+
Parameters: {"created_at_from"=>"2017-03-21", "created_at_until"=>"2017-03-21", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
62383
|
+
[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]]
|
62384
|
+
[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
|
62385
|
+
[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"]]
|
62386
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
62387
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.2ms)
|
62388
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62389
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
62390
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.8ms)
|
62391
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.5ms)
|
62392
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
62393
|
+
[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]]
|
62394
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (5.4ms)
|
62395
|
+
[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]]
|
62396
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
62397
|
+
(SELECT u.name
|
62398
|
+
FROM users u
|
62399
|
+
WHERE u.id = orders.user_id)
|
62400
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
62401
|
+
[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]]
|
62402
|
+
[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]]
|
62403
|
+
[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]]
|
62404
|
+
[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]]
|
62405
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (1.1ms)
|
62406
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (37.4ms)
|
62407
|
+
Completed 200 OK in 251ms (Views: 236.4ms | ActiveRecord: 1.3ms)
|
62408
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
62409
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62410
|
+
-----------------------------------------------------------------
|
62411
|
+
ClarkKent::ReportsControllerTest: test_0010_should destroy report
|
62412
|
+
-----------------------------------------------------------------
|
62413
|
+
[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]]
|
62414
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62415
|
+
[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"]]
|
62416
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62417
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62418
|
+
[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-03-22 01:01:26 UTC], ["updated_at", 2017-03-22 01:01:26 UTC]]
|
62419
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62420
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
62421
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62422
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
62423
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
62424
|
+
[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]]
|
62425
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62426
|
+
[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"]]
|
62427
|
+
[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]]
|
62428
|
+
[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]]
|
62429
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
62430
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62431
|
+
Redirected to http://test.host/reports/reports
|
62432
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
|
62433
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
62434
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
62435
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62436
|
+
------------------------------------------------------------
|
62437
|
+
ClarkKent::ReportsControllerTest: test_0001_should get index
|
62438
|
+
------------------------------------------------------------
|
62439
|
+
[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]]
|
62440
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62441
|
+
[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"]]
|
62442
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62443
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62444
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
62445
|
+
Parameters: {"current_user_id"=>"1"}
|
62446
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application
|
62447
|
+
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62448
|
+
[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]]
|
62449
|
+
[1m[36mDepartment Load (0.3ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62450
|
+
[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]]
|
62451
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
62452
|
+
[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
|
62453
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (20.6ms)
|
62454
|
+
Completed 200 OK in 26ms (Views: 21.7ms | ActiveRecord: 1.0ms)
|
62455
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
62456
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62457
|
+
--------------------------------------------------------------
|
62458
|
+
ClarkKent::ReportsControllerTest: test_0005_should show report
|
62459
|
+
--------------------------------------------------------------
|
62460
|
+
[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]]
|
62461
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62462
|
+
[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"]]
|
62463
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62464
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62465
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
62466
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
62467
|
+
[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]]
|
62468
|
+
[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
|
62469
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
62470
|
+
[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"]]
|
62471
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.2ms)
|
62472
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62473
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
62474
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.2ms)
|
62475
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
62476
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
62477
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (4.8ms)
|
62478
|
+
Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.4ms)
|
62479
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62480
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62481
|
+
----------------------------------------------------------
|
62482
|
+
ClarkKent::ReportsControllerTest: test_0002_should get new
|
62483
|
+
----------------------------------------------------------
|
62484
|
+
[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]]
|
62485
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62486
|
+
[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"]]
|
62487
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62488
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62489
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
62490
|
+
Parameters: {"current_user_id"=>"1"}
|
62491
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
62492
|
+
[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]]
|
62493
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62494
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (12.6ms)
|
62495
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (16.2ms)
|
62496
|
+
Completed 200 OK in 22ms (Views: 18.7ms | ActiveRecord: 0.1ms)
|
62497
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62498
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62499
|
+
-------------------------------------------------------------------------
|
62500
|
+
ClarkKent::ReportsControllerTest: test_0007_should show report run errors
|
62501
|
+
-------------------------------------------------------------------------
|
62502
|
+
[1m[36mClarkKent::Report Load (0.5ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62503
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62504
|
+
[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"]]
|
62505
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62506
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62507
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
62508
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
62509
|
+
[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]]
|
62510
|
+
[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
|
62511
|
+
[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"]]
|
62512
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
62513
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.5ms)
|
62514
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62515
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
62516
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (0.9ms)
|
62517
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.3ms)
|
62518
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
62519
|
+
[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]]
|
62520
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (1.0ms)
|
62521
|
+
[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]]
|
62522
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
62523
|
+
(SELECT u.name
|
62524
|
+
FROM users u
|
62525
|
+
WHERE u.id = orders.user_id)
|
62526
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
62527
|
+
[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]]
|
62528
|
+
[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]]
|
62529
|
+
[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]]
|
62530
|
+
[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]]
|
62531
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (0.3ms)
|
62532
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (10.6ms)
|
62533
|
+
Completed 200 OK in 20ms (Views: 12.5ms | ActiveRecord: 1.0ms)
|
62534
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62535
|
+
[1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
|
62536
|
+
-----------------------------------------------------------
|
62537
|
+
ClarkKent::ReportsControllerTest: test_0008_should get edit
|
62538
|
+
-----------------------------------------------------------
|
62539
|
+
[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]]
|
62540
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62541
|
+
[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"]]
|
62542
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62543
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62544
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
62545
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
62546
|
+
[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]]
|
62547
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
62548
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (3.5ms)
|
62549
|
+
[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"]]
|
62550
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (8.1ms)
|
62551
|
+
[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]]
|
62552
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.7ms)
|
62553
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (3.4ms)
|
62554
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.4ms)
|
62555
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.6ms)
|
62556
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.2ms)
|
62557
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.4ms)
|
62558
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.2ms)
|
62559
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.5ms)
|
62560
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (30.7ms)
|
62561
|
+
[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]]
|
62562
|
+
[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"]]
|
62563
|
+
[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]]
|
62564
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (19.3ms)
|
62565
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (22.5ms)
|
62566
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (27.5ms)
|
62567
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (93.0ms)
|
62568
|
+
Completed 200 OK in 100ms (Views: 94.2ms | ActiveRecord: 0.8ms)
|
62569
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
62570
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62571
|
+
----------------------------------------------------------------
|
62572
|
+
ClarkKent::ReportsControllerTest: test_0003_should create report
|
62573
|
+
----------------------------------------------------------------
|
62574
|
+
[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]]
|
62575
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62576
|
+
[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"]]
|
62577
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62578
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62579
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
62580
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
62581
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62582
|
+
[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-03-22 01:01:26 UTC], ["updated_at", 2017-03-22 01:01:26 UTC]]
|
62583
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62584
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
62585
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (0.9ms)
|
62586
|
+
[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"]]
|
62587
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (2.9ms)
|
62588
|
+
[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]]
|
62589
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (1.6ms)
|
62590
|
+
[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]]
|
62591
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (1.1ms)
|
62592
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (7.4ms)
|
62593
|
+
Completed 200 OK in 12ms (Views: 9.2ms | ActiveRecord: 0.5ms)
|
62594
|
+
[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]]
|
62595
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62596
|
+
[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"]]
|
62597
|
+
[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]]
|
62598
|
+
[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]]
|
62599
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
62600
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62601
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
62602
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62603
|
+
--------------------------------------------------------------------------------
|
62604
|
+
ClarkKent::ReportsControllerTest: test_0004_should render errors during creation
|
62605
|
+
--------------------------------------------------------------------------------
|
62606
|
+
[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]]
|
62607
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62608
|
+
[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"]]
|
62609
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62610
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62611
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
62612
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
62613
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62614
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
62615
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
62616
|
+
[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]]
|
62617
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62618
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (5.9ms)
|
62619
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (6.5ms)
|
62620
|
+
Completed 409 Conflict in 10ms (Views: 8.3ms | ActiveRecord: 0.2ms)
|
62621
|
+
[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]]
|
62622
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62623
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62624
|
+
----------------------------------------------------------------
|
62625
|
+
ClarkKent::ReportsControllerTest: test_0009_should update report
|
62626
|
+
----------------------------------------------------------------
|
62627
|
+
[1m[36mClarkKent::Report Load (0.5ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62628
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62629
|
+
[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"]]
|
62630
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62631
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62632
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
62633
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}, "id"=>"1"}
|
62634
|
+
[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]]
|
62635
|
+
[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]]
|
62636
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62637
|
+
[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-03-22 01:01:26 UTC], ["id", 1]]
|
62638
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62639
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.1ms)
|
62640
|
+
Completed 200 OK in 8ms (Views: 1.5ms | ActiveRecord: 0.4ms)
|
62641
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62642
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
62643
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)[0m
|
62644
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
62645
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
62646
|
+
[1m[35m (1.1ms)[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
|
62647
|
+
[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
|
62648
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
62649
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
62650
|
+
FROM sqlite_master
|
62651
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
62652
|
+
UNION ALL
|
62653
|
+
SELECT sql
|
62654
|
+
FROM sqlite_temp_master
|
62655
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
62656
|
+
[0m
|
62657
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
62658
|
+
[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
|
62659
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
62660
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
62661
|
+
FROM sqlite_master
|
62662
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
62663
|
+
UNION ALL
|
62664
|
+
SELECT sql
|
62665
|
+
FROM sqlite_temp_master
|
62666
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
62667
|
+
[0m
|
62668
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
62669
|
+
[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
|
62670
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
62671
|
+
[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
|
62672
|
+
[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
|
62673
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
62674
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
62675
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
62676
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
62677
|
+
('20131226170042'),
|
62678
|
+
('20131226170112'),
|
62679
|
+
('20140114010048'),
|
62680
|
+
('20140129051754'),
|
62681
|
+
('20150304233739');
|
62682
|
+
|
62683
|
+
[0m
|
62684
|
+
[1m[35m (1.1ms)[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
|
62685
|
+
[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]]
|
62686
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62687
|
+
[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-03-22 01:01:34 UTC], ["updated_at", 2017-03-22 01:01:34 UTC]]
|
62688
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
62689
|
+
[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]]
|
62690
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
62691
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
62692
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62693
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-03-22 01:01:34 UTC], ["updated_at", 2017-03-22 01:01:34 UTC]]
|
62694
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
62695
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62696
|
+
[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]]
|
62697
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
62698
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
62699
|
+
[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]]
|
62700
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
62701
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62702
|
+
[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]]
|
62703
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
62704
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
62705
|
+
[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]]
|
62706
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
62707
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
62708
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
62709
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
62710
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
62711
|
+
[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]]
|
62712
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
62713
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62714
|
+
[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-03-22 01:01:34 UTC], ["updated_at", 2017-03-22 01:01:34 UTC]]
|
62715
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
62716
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62717
|
+
---------------------------------------------------
|
62718
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
62719
|
+
---------------------------------------------------
|
62720
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
62721
|
+
[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]]
|
62722
|
+
[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]]
|
62723
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62724
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
62725
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62726
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62727
|
+
[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-03-22 01:01:34 UTC], ["updated_at", 2017-03-22 01:01:34 UTC]]
|
62728
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62729
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62730
|
+
[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"]]
|
62731
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62732
|
+
[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]]
|
62733
|
+
[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]]
|
62734
|
+
[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]]
|
62735
|
+
[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"]]
|
62736
|
+
[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"]]
|
62737
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
62738
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
62739
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62740
|
+
-----------------------------------------------------------------------------------------
|
62741
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
62742
|
+
-----------------------------------------------------------------------------------------
|
62743
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
62744
|
+
[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]]
|
62745
|
+
[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]]
|
62746
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62747
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
62748
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62749
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62750
|
+
[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"]]
|
62751
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62752
|
+
[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]]
|
62753
|
+
[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]]
|
62754
|
+
[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]]
|
62755
|
+
[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"]]
|
62756
|
+
[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"]]
|
62757
|
+
[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]]
|
62758
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62759
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb
|
62760
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (1.2ms)
|
62761
|
+
ClarkKent::ReportMailer#report_error: processed outbound mail in 162.5ms
|
62762
|
+
Sent mail to taproot@gmail.com (4.6ms)
|
62763
|
+
Date: Tue, 21 Mar 2017 19:01:35 -0600
|
62764
|
+
From: reservations@invitedhome.com
|
62765
|
+
To: taproot@gmail.com
|
62766
|
+
Message-ID: <58d1ccef1343d_8d2e3fefe903fa0c61261@Erics-MacBook-Pro.local.mail>
|
62767
|
+
Subject: Your report has a problem
|
62768
|
+
Mime-Version: 1.0
|
62769
|
+
Content-Type: text/html;
|
62770
|
+
charset=UTF-8
|
62771
|
+
Content-Transfer-Encoding: 7bit
|
62772
|
+
|
62773
|
+
Your report could not be created due to the following problem:
|
62774
|
+
<strong>At least one date range is required.</strong>
|
62775
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
62776
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62777
|
+
-----------------------------------------------------
|
62778
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
62779
|
+
-----------------------------------------------------
|
62780
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
62781
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62782
|
+
----------------------------------------------------------
|
62783
|
+
ClarkKent::ReportsControllerTest: test_0002_should get new
|
62784
|
+
----------------------------------------------------------
|
62785
|
+
[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]]
|
62786
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62787
|
+
[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"]]
|
62788
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62789
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62790
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
62791
|
+
Parameters: {"current_user_id"=>"1"}
|
62792
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
62793
|
+
[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]]
|
62794
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62795
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (43.3ms)
|
62796
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (49.0ms)
|
62797
|
+
Completed 200 OK in 209ms (Views: 205.4ms | ActiveRecord: 0.2ms)
|
62798
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
62799
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62800
|
+
------------------------------------------------------------
|
62801
|
+
ClarkKent::ReportsControllerTest: test_0001_should get index
|
62802
|
+
------------------------------------------------------------
|
62803
|
+
[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]]
|
62804
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62805
|
+
[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"]]
|
62806
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62807
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62808
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
62809
|
+
Parameters: {"current_user_id"=>"1"}
|
62810
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application
|
62811
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62812
|
+
[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]]
|
62813
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62814
|
+
[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]]
|
62815
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
62816
|
+
[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
|
62817
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (12.4ms)
|
62818
|
+
Completed 200 OK in 17ms (Views: 13.8ms | ActiveRecord: 0.4ms)
|
62819
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
62820
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62821
|
+
-------------------------------------------------------------------------
|
62822
|
+
ClarkKent::ReportsControllerTest: test_0007_should show report run errors
|
62823
|
+
-------------------------------------------------------------------------
|
62824
|
+
[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]]
|
62825
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62826
|
+
[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"]]
|
62827
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62828
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62829
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
62830
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
62831
|
+
[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]]
|
62832
|
+
[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" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
62833
|
+
[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"]]
|
62834
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
62835
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (2.0ms)
|
62836
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62837
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
62838
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.9ms)
|
62839
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.5ms)
|
62840
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.6ms)
|
62841
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (17.7ms)
|
62842
|
+
Completed 200 OK in 31ms (Views: 19.4ms | ActiveRecord: 0.8ms)
|
62843
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
62844
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62845
|
+
--------------------------------------------------------------------------------
|
62846
|
+
ClarkKent::ReportsControllerTest: test_0004_should render errors during creation
|
62847
|
+
--------------------------------------------------------------------------------
|
62848
|
+
[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]]
|
62849
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62850
|
+
[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"]]
|
62851
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62852
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62853
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
62854
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
62855
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62856
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
62857
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
62858
|
+
[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]]
|
62859
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
62860
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (7.4ms)
|
62861
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (8.1ms)
|
62862
|
+
Completed 409 Conflict in 13ms (Views: 10.2ms | ActiveRecord: 0.3ms)
|
62863
|
+
[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]]
|
62864
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
62865
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62866
|
+
----------------------------------------------------------------
|
62867
|
+
ClarkKent::ReportsControllerTest: test_0009_should update report
|
62868
|
+
----------------------------------------------------------------
|
62869
|
+
[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]]
|
62870
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62871
|
+
[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"]]
|
62872
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62873
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62874
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
62875
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}, "id"=>"1"}
|
62876
|
+
[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]]
|
62877
|
+
[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]]
|
62878
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62879
|
+
[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-03-22 01:01:35 UTC], ["id", 1]]
|
62880
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62881
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (2.7ms)
|
62882
|
+
Completed 200 OK in 14ms (Views: 5.8ms | ActiveRecord: 0.4ms)
|
62883
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62884
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62885
|
+
--------------------------------------------------------------
|
62886
|
+
ClarkKent::ReportsControllerTest: test_0005_should show report
|
62887
|
+
--------------------------------------------------------------
|
62888
|
+
[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]]
|
62889
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62890
|
+
[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"]]
|
62891
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62892
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62893
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
62894
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
62895
|
+
[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]]
|
62896
|
+
[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
|
62897
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
62898
|
+
[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"]]
|
62899
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.5ms)
|
62900
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62901
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
62902
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.0ms)
|
62903
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
62904
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
62905
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (4.0ms)
|
62906
|
+
Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.4ms)
|
62907
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62908
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62909
|
+
-----------------------------------------------------------------
|
62910
|
+
ClarkKent::ReportsControllerTest: test_0010_should destroy report
|
62911
|
+
-----------------------------------------------------------------
|
62912
|
+
[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]]
|
62913
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62914
|
+
[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"]]
|
62915
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62916
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62917
|
+
[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-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
62918
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62919
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
62920
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62921
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
62922
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
62923
|
+
[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]]
|
62924
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62925
|
+
[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"]]
|
62926
|
+
[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]]
|
62927
|
+
[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]]
|
62928
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
62929
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62930
|
+
Redirected to http://test.host/reports/reports
|
62931
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
|
62932
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
62933
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
62934
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62935
|
+
----------------------------------------------------------------
|
62936
|
+
ClarkKent::ReportsControllerTest: test_0003_should create report
|
62937
|
+
----------------------------------------------------------------
|
62938
|
+
[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]]
|
62939
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62940
|
+
[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"]]
|
62941
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62942
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62943
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
62944
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
62945
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62946
|
+
[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-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
62947
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62948
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
62949
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.0ms)
|
62950
|
+
[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"]]
|
62951
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (4.8ms)
|
62952
|
+
[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]]
|
62953
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (2.6ms)
|
62954
|
+
[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]]
|
62955
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (2.7ms)
|
62956
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (20.1ms)
|
62957
|
+
Completed 200 OK in 29ms (Views: 26.4ms | ActiveRecord: 0.6ms)
|
62958
|
+
[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]]
|
62959
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62960
|
+
[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"]]
|
62961
|
+
[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]]
|
62962
|
+
[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]]
|
62963
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
62964
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62965
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
62966
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
62967
|
+
-----------------------------------------------------------
|
62968
|
+
ClarkKent::ReportsControllerTest: test_0008_should get edit
|
62969
|
+
-----------------------------------------------------------
|
62970
|
+
[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]]
|
62971
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
62972
|
+
[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"]]
|
62973
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
62974
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
62975
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
62976
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
62977
|
+
[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]]
|
62978
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
62979
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.5ms)
|
62980
|
+
[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"]]
|
62981
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (2.8ms)
|
62982
|
+
[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]]
|
62983
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.1ms)
|
62984
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (4.5ms)
|
62985
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
62986
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.5ms)
|
62987
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.4ms)
|
62988
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.5ms)
|
62989
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
62990
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.5ms)
|
62991
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (11.9ms)
|
62992
|
+
[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]]
|
62993
|
+
[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"]]
|
62994
|
+
[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]]
|
62995
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (35.7ms)
|
62996
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (38.6ms)
|
62997
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (43.1ms)
|
62998
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (60.5ms)
|
62999
|
+
Completed 200 OK in 64ms (Views: 62.8ms | ActiveRecord: 0.7ms)
|
63000
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63001
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63002
|
+
----------------------------------------------------------------------
|
63003
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
63004
|
+
----------------------------------------------------------------------
|
63005
|
+
[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]]
|
63006
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63007
|
+
[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"]]
|
63008
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63009
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63010
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
63011
|
+
Parameters: {"created_at_from"=>"2017-03-21", "created_at_until"=>"2017-03-21", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
63012
|
+
[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]]
|
63013
|
+
[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
|
63014
|
+
[1m[36mClarkKent::ReportFilter Load (0.4ms)[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"]]
|
63015
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
63016
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.6ms)
|
63017
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63018
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
63019
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.2ms)
|
63020
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
63021
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
63022
|
+
[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]]
|
63023
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (5.9ms)
|
63024
|
+
[1m[36mClarkKent::ReportColumn Load (0.7ms)[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]]
|
63025
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
63026
|
+
(SELECT u.name
|
63027
|
+
FROM users u
|
63028
|
+
WHERE u.id = orders.user_id)
|
63029
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
63030
|
+
[1m[36mClarkKent::Report Load (0.5ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63031
|
+
[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]]
|
63032
|
+
[1m[36mClarkKent::Report Load (0.8ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63033
|
+
[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]]
|
63034
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (1.4ms)
|
63035
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (30.7ms)
|
63036
|
+
Completed 200 OK in 42ms (Views: 31.2ms | ActiveRecord: 3.3ms)
|
63037
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
63038
|
+
[1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
|
63039
|
+
---------------------------------------------------------------------------------------
|
63040
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_date_filter
|
63041
|
+
---------------------------------------------------------------------------------------
|
63042
|
+
[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]]
|
63043
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63044
|
+
[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"]]
|
63045
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63046
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63047
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63048
|
+
[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-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
63049
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63050
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
63051
|
+
Parameters: {"id"=>"1"}
|
63052
|
+
[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]]
|
63053
|
+
[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]]
|
63054
|
+
[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]]
|
63055
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.4ms)
|
63056
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (7.2ms)
|
63057
|
+
Completed 200 OK in 16ms (Views: 10.5ms | ActiveRecord: 0.3ms)
|
63058
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63059
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63060
|
+
------------------------------------------------------------------------------------------
|
63061
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_an_object_filter
|
63062
|
+
------------------------------------------------------------------------------------------
|
63063
|
+
[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]]
|
63064
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63065
|
+
[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"]]
|
63066
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63067
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63068
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63069
|
+
[1m[35mSQL (0.5ms)[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-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
63070
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63071
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
63072
|
+
Parameters: {"id"=>"1"}
|
63073
|
+
[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]]
|
63074
|
+
[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]]
|
63075
|
+
[1m[36mClarkKent::Report Load (0.5ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63076
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
63077
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (4.7ms)
|
63078
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (21.0ms)
|
63079
|
+
Completed 200 OK in 27ms (Views: 23.4ms | ActiveRecord: 0.7ms)
|
63080
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
63081
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63082
|
+
------------------------------------------------------------------------------------------
|
63083
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_an_object_filter
|
63084
|
+
------------------------------------------------------------------------------------------
|
63085
|
+
[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]]
|
63086
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63087
|
+
[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"]]
|
63088
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63089
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63090
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63091
|
+
[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-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
63092
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63093
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
63094
|
+
Parameters: {"id"=>"1"}
|
63095
|
+
[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]]
|
63096
|
+
[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]]
|
63097
|
+
[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]]
|
63098
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63099
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.8ms)
|
63100
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.2ms)
|
63101
|
+
Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.2ms)
|
63102
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
63103
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63104
|
+
-----------------------------------------------------------------------------------------
|
63105
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_string_filter
|
63106
|
+
-----------------------------------------------------------------------------------------
|
63107
|
+
[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]]
|
63108
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63109
|
+
[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"]]
|
63110
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63111
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63112
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63113
|
+
[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-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
63114
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63115
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
63116
|
+
Parameters: {"id"=>"1"}
|
63117
|
+
[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]]
|
63118
|
+
[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]]
|
63119
|
+
[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]]
|
63120
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.3ms)
|
63121
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (7.7ms)
|
63122
|
+
Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.2ms)
|
63123
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
63124
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63125
|
+
----------------------------------------------------------------------------------
|
63126
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_date_report_filter
|
63127
|
+
----------------------------------------------------------------------------------
|
63128
|
+
[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]]
|
63129
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63130
|
+
[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"]]
|
63131
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63132
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63133
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
63134
|
+
Parameters: {"report_filter"=>{"duration"=>"week", "filter_name"=>"created_at", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
|
63135
|
+
[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]]
|
63136
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63137
|
+
[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-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
63138
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63139
|
+
[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]]
|
63140
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.0ms)
|
63141
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.1ms)
|
63142
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.6ms)
|
63143
|
+
Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.4ms)
|
63144
|
+
[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]]
|
63145
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63146
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63147
|
+
-------------------------------------------------------------------------------------
|
63148
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_an_object_report_filter
|
63149
|
+
-------------------------------------------------------------------------------------
|
63150
|
+
[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]]
|
63151
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63152
|
+
[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"]]
|
63153
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63154
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63155
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
63156
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_id", "filter_value"=>"1", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
63157
|
+
[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]]
|
63158
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63159
|
+
[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-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
63160
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63161
|
+
[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]]
|
63162
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63163
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.4ms)
|
63164
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.5ms)
|
63165
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.6ms)
|
63166
|
+
Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.5ms)
|
63167
|
+
[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]]
|
63168
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
63169
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63170
|
+
---------------------------------------------------------------------------------------
|
63171
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_date_filter
|
63172
|
+
---------------------------------------------------------------------------------------
|
63173
|
+
[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]]
|
63174
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63175
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63176
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63177
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63178
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63179
|
+
[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-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
63180
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63181
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
63182
|
+
Parameters: {"id"=>"1"}
|
63183
|
+
[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]]
|
63184
|
+
[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]]
|
63185
|
+
[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]]
|
63186
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (6.2ms)
|
63187
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (13.1ms)
|
63188
|
+
Completed 200 OK in 16ms (Views: 13.4ms | ActiveRecord: 0.1ms)
|
63189
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63190
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63191
|
+
-----------------------------------------------------------------------------------------
|
63192
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_string_filter
|
63193
|
+
-----------------------------------------------------------------------------------------
|
63194
|
+
[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]]
|
63195
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63196
|
+
[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"]]
|
63197
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63198
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63199
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63200
|
+
[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-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
63201
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63202
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
63203
|
+
Parameters: {"id"=>"1"}
|
63204
|
+
[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]]
|
63205
|
+
[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]]
|
63206
|
+
[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]]
|
63207
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.4ms)
|
63208
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.6ms)
|
63209
|
+
Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.1ms)
|
63210
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63211
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63212
|
+
-----------------------------------------------------------------------------
|
63213
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_report_filter
|
63214
|
+
-----------------------------------------------------------------------------
|
63215
|
+
[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]]
|
63216
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63217
|
+
[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"]]
|
63218
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63219
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63220
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
63221
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
63222
|
+
[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]]
|
63223
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63224
|
+
[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_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
63225
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63226
|
+
[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]]
|
63227
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.0ms)
|
63228
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (1.8ms)
|
63229
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.0ms)
|
63230
|
+
Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms)
|
63231
|
+
[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]]
|
63232
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
63233
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63234
|
+
------------------------------------------------------------------------------------------------
|
63235
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
63236
|
+
------------------------------------------------------------------------------------------------
|
63237
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63238
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
63239
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
63240
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
63241
|
+
--------------------------------------------------------------------------
|
63242
|
+
ClarkKent::ReportableTest: test_0003_doesn't blow up if order_sql is blank
|
63243
|
+
--------------------------------------------------------------------------
|
63244
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63245
|
+
[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-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
63246
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63247
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63248
|
+
[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]]
|
63249
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63250
|
+
[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]]
|
63251
|
+
[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"]]
|
63252
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
63253
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63254
|
+
------------------------------------------------------------------------
|
63255
|
+
ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
63256
|
+
------------------------------------------------------------------------
|
63257
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63258
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "Order"], ["created_at", 2017-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
63259
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63260
|
+
[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]]
|
63261
|
+
[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"]]
|
63262
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
63263
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63264
|
+
--------------------------------------------------------------------------
|
63265
|
+
ClarkKent::ReportableTest: test_0002_it works without any required filters
|
63266
|
+
--------------------------------------------------------------------------
|
63267
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63268
|
+
[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-03-22 01:01:35 UTC], ["updated_at", 2017-03-22 01:01:35 UTC]]
|
63269
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63270
|
+
[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]]
|
63271
|
+
[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"]]
|
63272
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
63273
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63274
|
+
--------------------------------------------------------------------------------------------------
|
63275
|
+
ClarkKent::ReportColumnsControllerTest: test_0003_should reject a report column with unusable sort
|
63276
|
+
--------------------------------------------------------------------------------------------------
|
63277
|
+
[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]]
|
63278
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
63279
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1", "report_sort"=>"ascending"}}
|
63280
|
+
[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]]
|
63281
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63282
|
+
[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]]
|
63283
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
63284
|
+
[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]]
|
63285
|
+
[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]]
|
63286
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (21.8ms)
|
63287
|
+
Completed 409 Conflict in 68ms (Views: 62.5ms | ActiveRecord: 0.7ms)
|
63288
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
63289
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63290
|
+
-------------------------------------------------------------------------------
|
63291
|
+
ClarkKent::ReportColumnsControllerTest: test_0001_should create a report column
|
63292
|
+
-------------------------------------------------------------------------------
|
63293
|
+
[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]]
|
63294
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
63295
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1"}}
|
63296
|
+
[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]]
|
63297
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63298
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name") VALUES (?, ?)[0m [["report_id", 1], ["column_name", "user_name"]]
|
63299
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63300
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.1ms)
|
63301
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (36.9ms)
|
63302
|
+
Completed 200 OK in 73ms (Views: 70.0ms | ActiveRecord: 0.6ms)
|
63303
|
+
[1m[35m (2.1ms)[0m [1m[31mrollback transaction[0m
|
63304
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
63305
|
+
---------------------------------------------------------------------------------------------------
|
63306
|
+
ClarkKent::ReportColumnsControllerTest: test_0002_should reject a report column with no column_name
|
63307
|
+
---------------------------------------------------------------------------------------------------
|
63308
|
+
[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]]
|
63309
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
63310
|
+
Parameters: {"report_column"=>{"report_id"=>"1"}}
|
63311
|
+
[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]]
|
63312
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63313
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
63314
|
+
[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]]
|
63315
|
+
[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]]
|
63316
|
+
[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]]
|
63317
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (8.5ms)
|
63318
|
+
Completed 409 Conflict in 11ms (Views: 8.4ms | ActiveRecord: 0.6ms)
|
63319
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
63320
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
63321
|
+
--------------------------------------------------------------------------
|
63322
|
+
ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
63323
|
+
--------------------------------------------------------------------------
|
63324
|
+
[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]]
|
63325
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63326
|
+
[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]]
|
63327
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63328
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
63329
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
63330
|
+
-------------------------
|
63331
|
+
ClarkKentTest: test_truth
|
63332
|
+
-------------------------
|
63333
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|