clark_kent 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/clark_kent/report_columns_controller.rb +12 -3
- data/app/models/clark_kent/report_column.rb +1 -1
- data/app/validators/clark_kent/report_column_validator.rb +3 -1
- data/lib/clark_kent/version.rb +1 -1
- data/test/controllers/clark_kent/report_columns_controller_test.rb +28 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +1770 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bea419c4fea6d2354cee5b77eb4ba96ea80b2d6b
|
4
|
+
data.tar.gz: 5d86e96f8e26bf93d513e874ab83299c83891289
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39ed33a7428f3a8c0b52c0bcfb8d14b3d4c42ae1c2b24a052234d5ed6c182dcbafc12e2bac948fecf07f9059056815f08081e9c0ba2b7763b342e71f0888a19d
|
7
|
+
data.tar.gz: 42a259683e9f5992a0b7e66f672e98bce0fa4c61b7c725290c731d9d81736d129c156d3ccaddbb6f1a0416533a0804c0ec7027fa6a31bd4ec7a13150950e66c4
|
@@ -10,7 +10,11 @@ class ClarkKent::ReportColumnsController < ClarkKent::ApplicationController
|
|
10
10
|
def create
|
11
11
|
@report_column = ClarkKent::ReportColumn.new(report_column_params)
|
12
12
|
@report_column.save
|
13
|
-
|
13
|
+
if @report_column.errors.empty?
|
14
|
+
render partial: 'show_wrapper', locals: {report_column: @report_column}
|
15
|
+
else
|
16
|
+
render partial: 'form', locals: {report_column: @report_column}, status: :conflict
|
17
|
+
end
|
14
18
|
end
|
15
19
|
|
16
20
|
def show
|
@@ -23,8 +27,13 @@ class ClarkKent::ReportColumnsController < ClarkKent::ApplicationController
|
|
23
27
|
|
24
28
|
def update
|
25
29
|
@report_column.update_attributes(report_column_params)
|
26
|
-
@
|
27
|
-
|
30
|
+
if @report_column.errors.empty?
|
31
|
+
render json: {
|
32
|
+
flash_message: "Your changes were saved.",
|
33
|
+
html: render_to_string(partial: 'show', locals: {report_column: @report_column}) }
|
34
|
+
else
|
35
|
+
render partial: 'form', locals: {report_column: @report_column}, status: :conflict
|
36
|
+
end
|
28
37
|
end
|
29
38
|
|
30
39
|
def destroy
|
@@ -1,7 +1,9 @@
|
|
1
1
|
module ClarkKent
|
2
2
|
class ReportColumnValidator < ActiveModel::Validator
|
3
3
|
def validate(record)
|
4
|
-
record.
|
4
|
+
if record.report_sort.present?
|
5
|
+
record.errors[:report_sort] << "This column is not sortable." unless record.sortable?
|
6
|
+
end
|
5
7
|
end
|
6
8
|
end
|
7
9
|
end
|
data/lib/clark_kent/version.rb
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ClarkKent::ReportColumnsControllerTest < ControllerTest
|
4
|
+
|
5
|
+
let(:report) {ClarkKent::Report.first}
|
6
|
+
|
7
|
+
setup do
|
8
|
+
@routes = ClarkKent::Engine.routes
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should create a report column" do
|
12
|
+
xhr :post, :create, params: {report_column: {report_id: report.id, column_name: 'user_name'}}
|
13
|
+
assert_response :success
|
14
|
+
end
|
15
|
+
|
16
|
+
it "should reject a report column with no column_name" do
|
17
|
+
xhr :post, :create, params: {report_column: {report_id: report.id}}
|
18
|
+
assert_response :conflict
|
19
|
+
@response.body.must_match /can[^t]*t be blank/
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should reject a report column with unusable sort" do
|
23
|
+
xhr :post, :create, params: {report_column: {report_id: report.id, column_name: 'user_name', report_sort: 'ascending'}}
|
24
|
+
assert_response :conflict
|
25
|
+
@response.body.must_match 'This column is not sortable.'
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -53000,3 +53000,1773 @@ ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
|
53000
53000
|
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53001
53001
|
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53002
53002
|
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53003
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
53004
|
+
[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
|
53005
|
+
[1m[35m (0.4ms)[0m [1m[34mselect sqlite_version(*)[0m
|
53006
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
53007
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar)[0m
|
53008
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
53009
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
53010
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
53011
|
+
FROM sqlite_master
|
53012
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
53013
|
+
UNION ALL
|
53014
|
+
SELECT sql
|
53015
|
+
FROM sqlite_temp_master
|
53016
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
53017
|
+
[0m
|
53018
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
53019
|
+
[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
|
53020
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
53021
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
53022
|
+
FROM sqlite_master
|
53023
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
53024
|
+
UNION ALL
|
53025
|
+
SELECT sql
|
53026
|
+
FROM sqlite_temp_master
|
53027
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
53028
|
+
[0m
|
53029
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
53030
|
+
[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
|
53031
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
53032
|
+
[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
|
53033
|
+
[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
|
53034
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
53035
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
53036
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
53037
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
53038
|
+
('20131226170042'),
|
53039
|
+
('20131226170112'),
|
53040
|
+
('20140114010048'),
|
53041
|
+
('20140129051754'),
|
53042
|
+
('20150304233739');
|
53043
|
+
|
53044
|
+
[0m
|
53045
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
53046
|
+
[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]]
|
53047
|
+
[1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
|
53048
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-02-22 23:34:07 UTC], ["updated_at", 2017-02-22 23:34:07 UTC]]
|
53049
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
53050
|
+
[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]]
|
53051
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53052
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
53053
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53054
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-02-22 23:34:07 UTC], ["updated_at", 2017-02-22 23:34:07 UTC]]
|
53055
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
53056
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53057
|
+
[1m[35mSQL (0.7ms)[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]]
|
53058
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
53059
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53060
|
+
[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]]
|
53061
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
53062
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53063
|
+
[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]]
|
53064
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
53065
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53066
|
+
[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]]
|
53067
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
53068
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
53069
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
53070
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
53071
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
53072
|
+
[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]]
|
53073
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
53074
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53075
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "orders" ("user_id", "amount", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["amount", 1], ["description", "Guitar strings"], ["created_at", 2017-02-22 23:34:07 UTC], ["updated_at", 2017-02-22 23:34:07 UTC]]
|
53076
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
53077
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53078
|
+
-----------------------------------------------------
|
53079
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
53080
|
+
-----------------------------------------------------
|
53081
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
53082
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53083
|
+
------------------------------------------------------------------------
|
53084
|
+
ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
53085
|
+
------------------------------------------------------------------------
|
53086
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53087
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "Order"], ["created_at", 2017-02-22 23:34:07 UTC], ["updated_at", 2017-02-22 23:34:07 UTC]]
|
53088
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53089
|
+
[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]]
|
53090
|
+
[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"]]
|
53091
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
53092
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
53093
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53094
|
+
--------------------------------------------------------------------------
|
53095
|
+
ClarkKent::ReportableTest: test_0002_it works without any required filters
|
53096
|
+
--------------------------------------------------------------------------
|
53097
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53098
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-02-22 23:34:07 UTC], ["updated_at", 2017-02-22 23:34:07 UTC]]
|
53099
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53100
|
+
[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]]
|
53101
|
+
[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"]]
|
53102
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
53103
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
53104
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53105
|
+
--------------------------------------------------------------------------
|
53106
|
+
ClarkKent::ReportableTest: test_0003_doesn't blow up if order_sql is blank
|
53107
|
+
--------------------------------------------------------------------------
|
53108
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53109
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-02-22 23:34:07 UTC], ["updated_at", 2017-02-22 23:34:07 UTC]]
|
53110
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53111
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53112
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
53113
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53114
|
+
[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]]
|
53115
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
53116
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
53117
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53118
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53119
|
+
-------------------------
|
53120
|
+
ClarkKentTest: test_truth
|
53121
|
+
-------------------------
|
53122
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
53123
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
53124
|
+
--------------------------------------------------------------------------
|
53125
|
+
ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
53126
|
+
--------------------------------------------------------------------------
|
53127
|
+
[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]]
|
53128
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53129
|
+
[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]]
|
53130
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53131
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
53132
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
53133
|
+
----------------------------------------------------------
|
53134
|
+
ClarkKent::ReportsControllerTest: test_0002_should get new
|
53135
|
+
----------------------------------------------------------
|
53136
|
+
[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]]
|
53137
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53138
|
+
[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"]]
|
53139
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53140
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53141
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
53142
|
+
Parameters: {"current_user_id"=>"1"}
|
53143
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
53144
|
+
[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]]
|
53145
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53146
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (49.2ms)
|
53147
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (58.8ms)
|
53148
|
+
Completed 200 OK in 246ms (Views: 242.9ms | ActiveRecord: 0.3ms)
|
53149
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
53150
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53151
|
+
----------------------------------------------------------------------
|
53152
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
53153
|
+
----------------------------------------------------------------------
|
53154
|
+
[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]]
|
53155
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53156
|
+
[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"]]
|
53157
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53158
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53159
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
53160
|
+
Parameters: {"created_at_from"=>"2017-02-21", "created_at_until"=>"2017-02-22", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
53161
|
+
[1m[36mClarkKent::Report Load (0.2ms)[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]]
|
53162
|
+
[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
|
53163
|
+
[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"]]
|
53164
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53165
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
53166
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.0ms)
|
53167
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53168
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
53169
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.7ms)
|
53170
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.6ms)
|
53171
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
53172
|
+
[1m[35m (0.3ms)[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]]
|
53173
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (7.7ms)
|
53174
|
+
[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]]
|
53175
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
53176
|
+
(SELECT u.name
|
53177
|
+
FROM users u
|
53178
|
+
WHERE u.id = orders.user_id)
|
53179
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
53180
|
+
[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]]
|
53181
|
+
[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]]
|
53182
|
+
[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]]
|
53183
|
+
[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]]
|
53184
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (1.6ms)
|
53185
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (44.0ms)
|
53186
|
+
Completed 200 OK in 59ms (Views: 45.1ms | ActiveRecord: 1.8ms)
|
53187
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53188
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53189
|
+
--------------------------------------------------------------
|
53190
|
+
ClarkKent::ReportsControllerTest: test_0005_should show report
|
53191
|
+
--------------------------------------------------------------
|
53192
|
+
[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]]
|
53193
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53194
|
+
[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"]]
|
53195
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53196
|
+
[1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53197
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
53198
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
53199
|
+
[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]]
|
53200
|
+
[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
|
53201
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
53202
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
53203
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
53204
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
53205
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.2ms)
|
53206
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53207
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
53208
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (0.9ms)
|
53209
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
53210
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
53211
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (5.7ms)
|
53212
|
+
Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 0.5ms)
|
53213
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53214
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53215
|
+
----------------------------------------------------------------
|
53216
|
+
ClarkKent::ReportsControllerTest: test_0009_should update report
|
53217
|
+
----------------------------------------------------------------
|
53218
|
+
[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]]
|
53219
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53220
|
+
[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"]]
|
53221
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53222
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53223
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
53224
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}, "id"=>"1"}
|
53225
|
+
[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]]
|
53226
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53227
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "name" = ?, "sharing_scope_type" = ?, "updated_at" = ? WHERE "clark_kent_reports"."id" = ?[0m [["name", ""], ["sharing_scope_type", ""], ["updated_at", 2017-02-22 23:34:08 UTC], ["id", 1]]
|
53228
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53229
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (3.0ms)
|
53230
|
+
Completed 200 OK in 13ms (Views: 6.1ms | ActiveRecord: 0.4ms)
|
53231
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53232
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53233
|
+
-----------------------------------------------------------------
|
53234
|
+
ClarkKent::ReportsControllerTest: test_0010_should destroy report
|
53235
|
+
-----------------------------------------------------------------
|
53236
|
+
[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]]
|
53237
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53238
|
+
[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"]]
|
53239
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53240
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53241
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["created_at", 2017-02-22 23:34:08 UTC], ["updated_at", 2017-02-22 23:34:08 UTC]]
|
53242
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53243
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
53244
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53245
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
53246
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
53247
|
+
[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]]
|
53248
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53249
|
+
[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"]]
|
53250
|
+
[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]]
|
53251
|
+
[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]]
|
53252
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
53253
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53254
|
+
Redirected to http://test.host/reports/reports
|
53255
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
|
53256
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
53257
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53258
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
53259
|
+
--------------------------------------------------------------------------------
|
53260
|
+
ClarkKent::ReportsControllerTest: test_0004_should render errors during creation
|
53261
|
+
--------------------------------------------------------------------------------
|
53262
|
+
[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]]
|
53263
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53264
|
+
[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"]]
|
53265
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53266
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53267
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
53268
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
53269
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53270
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
53271
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
53272
|
+
[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]]
|
53273
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53274
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (6.3ms)
|
53275
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (6.8ms)
|
53276
|
+
Completed 409 Conflict in 11ms (Views: 9.2ms | ActiveRecord: 0.2ms)
|
53277
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT ?[0m [["name", "delete me"], ["LIMIT", 1]]
|
53278
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53279
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53280
|
+
-------------------------------------------------------------------------
|
53281
|
+
ClarkKent::ReportsControllerTest: test_0007_should show report run errors
|
53282
|
+
-------------------------------------------------------------------------
|
53283
|
+
[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]]
|
53284
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53285
|
+
[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"]]
|
53286
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53287
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53288
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
53289
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
53290
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53291
|
+
[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
|
53292
|
+
[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"]]
|
53293
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53294
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
53295
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
53296
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53297
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
53298
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.1ms)
|
53299
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
53300
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
53301
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (2.6ms)
|
53302
|
+
Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 0.5ms)
|
53303
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53304
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53305
|
+
----------------------------------------------------------------
|
53306
|
+
ClarkKent::ReportsControllerTest: test_0003_should create report
|
53307
|
+
----------------------------------------------------------------
|
53308
|
+
[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]]
|
53309
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53310
|
+
[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"]]
|
53311
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53312
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53313
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
53314
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
53315
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53316
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "sharing_scope_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["sharing_scope_type", ""], ["created_at", 2017-02-22 23:34:08 UTC], ["updated_at", 2017-02-22 23:34:08 UTC]]
|
53317
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53318
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
53319
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.3ms)
|
53320
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
53321
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (5.9ms)
|
53322
|
+
[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]]
|
53323
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (3.1ms)
|
53324
|
+
[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]]
|
53325
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (3.2ms)
|
53326
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (24.8ms)
|
53327
|
+
Completed 200 OK in 32ms (Views: 29.0ms | ActiveRecord: 0.7ms)
|
53328
|
+
[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]]
|
53329
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53330
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
53331
|
+
[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]]
|
53332
|
+
[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]]
|
53333
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
53334
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53335
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53336
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53337
|
+
------------------------------------------------------------
|
53338
|
+
ClarkKent::ReportsControllerTest: test_0001_should get index
|
53339
|
+
------------------------------------------------------------
|
53340
|
+
[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]]
|
53341
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53342
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
53343
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53344
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53345
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
53346
|
+
Parameters: {"current_user_id"=>"1"}
|
53347
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application
|
53348
|
+
[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]]
|
53349
|
+
[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]]
|
53350
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53351
|
+
[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]]
|
53352
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
53353
|
+
[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
|
53354
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (15.8ms)
|
53355
|
+
Completed 200 OK in 21ms (Views: 17.2ms | ActiveRecord: 0.5ms)
|
53356
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53357
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53358
|
+
-----------------------------------------------------------
|
53359
|
+
ClarkKent::ReportsControllerTest: test_0008_should get edit
|
53360
|
+
-----------------------------------------------------------
|
53361
|
+
[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]]
|
53362
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53363
|
+
[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"]]
|
53364
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53365
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53366
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
53367
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
53368
|
+
[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]]
|
53369
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
53370
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (2.3ms)
|
53371
|
+
[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"]]
|
53372
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (2.7ms)
|
53373
|
+
[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]]
|
53374
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.1ms)
|
53375
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (4.1ms)
|
53376
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.4ms)
|
53377
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.6ms)
|
53378
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.4ms)
|
53379
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.5ms)
|
53380
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
53381
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.4ms)
|
53382
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (10.6ms)
|
53383
|
+
[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]]
|
53384
|
+
[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"]]
|
53385
|
+
[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]]
|
53386
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (22.6ms)
|
53387
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (26.6ms)
|
53388
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (32.1ms)
|
53389
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (49.1ms)
|
53390
|
+
Completed 200 OK in 53ms (Views: 51.3ms | ActiveRecord: 0.7ms)
|
53391
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53392
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53393
|
+
-------------------------------------------------------------------------------------
|
53394
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_an_object_report_filter
|
53395
|
+
-------------------------------------------------------------------------------------
|
53396
|
+
[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]]
|
53397
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53398
|
+
[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"]]
|
53399
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53400
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53401
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
53402
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_id", "filter_value"=>"1", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
53403
|
+
[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]]
|
53404
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53405
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-22 23:34:08 UTC], ["updated_at", 2017-02-22 23:34:08 UTC]]
|
53406
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53407
|
+
[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]]
|
53408
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53409
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (3.2ms)
|
53410
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (11.0ms)
|
53411
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (15.0ms)
|
53412
|
+
Completed 200 OK in 41ms (Views: 18.4ms | ActiveRecord: 1.0ms)
|
53413
|
+
[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]]
|
53414
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53415
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53416
|
+
----------------------------------------------------------------------------------
|
53417
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_date_report_filter
|
53418
|
+
----------------------------------------------------------------------------------
|
53419
|
+
[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]]
|
53420
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53421
|
+
[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"]]
|
53422
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53423
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53424
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
53425
|
+
Parameters: {"report_filter"=>{"duration"=>"week", "filter_name"=>"created_at", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
|
53426
|
+
[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]]
|
53427
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53428
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-22 23:34:08 UTC], ["updated_at", 2017-02-22 23:34:08 UTC]]
|
53429
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53430
|
+
[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]]
|
53431
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.5ms)
|
53432
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.4ms)
|
53433
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (6.2ms)
|
53434
|
+
Completed 200 OK in 18ms (Views: 6.5ms | ActiveRecord: 0.5ms)
|
53435
|
+
[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]]
|
53436
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53437
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53438
|
+
------------------------------------------------------------------------------------------
|
53439
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_an_object_filter
|
53440
|
+
------------------------------------------------------------------------------------------
|
53441
|
+
[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]]
|
53442
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53443
|
+
[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"]]
|
53444
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53445
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53446
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53447
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-22 23:34:08 UTC], ["updated_at", 2017-02-22 23:34:08 UTC]]
|
53448
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53449
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
53450
|
+
Parameters: {"id"=>"1"}
|
53451
|
+
[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]]
|
53452
|
+
[1m[36mClarkKent::ReportEmail Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53453
|
+
[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]]
|
53454
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
53455
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (3.2ms)
|
53456
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (15.3ms)
|
53457
|
+
Completed 200 OK in 24ms (Views: 19.9ms | ActiveRecord: 0.5ms)
|
53458
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
53459
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53460
|
+
---------------------------------------------------------------------------------------
|
53461
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_date_filter
|
53462
|
+
---------------------------------------------------------------------------------------
|
53463
|
+
[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]]
|
53464
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53465
|
+
[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"]]
|
53466
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53467
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53468
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53469
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-22 23:34:08 UTC], ["updated_at", 2017-02-22 23:34:08 UTC]]
|
53470
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53471
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
53472
|
+
Parameters: {"id"=>"1"}
|
53473
|
+
[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]]
|
53474
|
+
[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]]
|
53475
|
+
[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]]
|
53476
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.1ms)
|
53477
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.0ms)
|
53478
|
+
Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)
|
53479
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53480
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53481
|
+
---------------------------------------------------------------------------------------
|
53482
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_date_filter
|
53483
|
+
---------------------------------------------------------------------------------------
|
53484
|
+
[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]]
|
53485
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53486
|
+
[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"]]
|
53487
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53488
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53489
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53490
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-22 23:34:08 UTC], ["updated_at", 2017-02-22 23:34:08 UTC]]
|
53491
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53492
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
53493
|
+
Parameters: {"id"=>"1"}
|
53494
|
+
[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]]
|
53495
|
+
[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]]
|
53496
|
+
[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]]
|
53497
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (6.3ms)
|
53498
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (17.7ms)
|
53499
|
+
Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 0.2ms)
|
53500
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53501
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53502
|
+
-----------------------------------------------------------------------------------------
|
53503
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_string_filter
|
53504
|
+
-----------------------------------------------------------------------------------------
|
53505
|
+
[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]]
|
53506
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53507
|
+
[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"]]
|
53508
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53509
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53510
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53511
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-22 23:34:08 UTC], ["updated_at", 2017-02-22 23:34:08 UTC]]
|
53512
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53513
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
53514
|
+
Parameters: {"id"=>"1"}
|
53515
|
+
[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]]
|
53516
|
+
[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]]
|
53517
|
+
[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]]
|
53518
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.4ms)
|
53519
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (10.2ms)
|
53520
|
+
Completed 200 OK in 14ms (Views: 10.9ms | ActiveRecord: 0.2ms)
|
53521
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53522
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53523
|
+
-----------------------------------------------------------------------------
|
53524
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_report_filter
|
53525
|
+
-----------------------------------------------------------------------------
|
53526
|
+
[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]]
|
53527
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53528
|
+
[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"]]
|
53529
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53530
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53531
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
53532
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
53533
|
+
[1m[36mClarkKent::Report Load (0.4ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53534
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53535
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-22 23:34:08 UTC], ["updated_at", 2017-02-22 23:34:08 UTC]]
|
53536
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53537
|
+
[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]]
|
53538
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.4ms)
|
53539
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (11.9ms)
|
53540
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (12.1ms)
|
53541
|
+
Completed 200 OK in 19ms (Views: 12.4ms | ActiveRecord: 0.7ms)
|
53542
|
+
[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]]
|
53543
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53544
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53545
|
+
-----------------------------------------------------------------------------------------
|
53546
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_string_filter
|
53547
|
+
-----------------------------------------------------------------------------------------
|
53548
|
+
[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]]
|
53549
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53550
|
+
[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"]]
|
53551
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53552
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53553
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53554
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-22 23:34:08 UTC], ["updated_at", 2017-02-22 23:34:08 UTC]]
|
53555
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53556
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
53557
|
+
Parameters: {"id"=>"1"}
|
53558
|
+
[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]]
|
53559
|
+
[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]]
|
53560
|
+
[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]]
|
53561
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.0ms)
|
53562
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (1.9ms)
|
53563
|
+
Completed 200 OK in 7ms (Views: 2.3ms | ActiveRecord: 0.2ms)
|
53564
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53565
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53566
|
+
------------------------------------------------------------------------------------------
|
53567
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_an_object_filter
|
53568
|
+
------------------------------------------------------------------------------------------
|
53569
|
+
[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]]
|
53570
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53571
|
+
[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"]]
|
53572
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53573
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53574
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53575
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-22 23:34:08 UTC], ["updated_at", 2017-02-22 23:34:08 UTC]]
|
53576
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53577
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
53578
|
+
Parameters: {"id"=>"1"}
|
53579
|
+
[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]]
|
53580
|
+
[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]]
|
53581
|
+
[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]]
|
53582
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53583
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.4ms)
|
53584
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.2ms)
|
53585
|
+
Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.2ms)
|
53586
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53587
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53588
|
+
------------------------------------------------------------------------------------------------
|
53589
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
53590
|
+
------------------------------------------------------------------------------------------------
|
53591
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53592
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
53593
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
53594
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
53595
|
+
---------------------------------------------------
|
53596
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
53597
|
+
---------------------------------------------------
|
53598
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
53599
|
+
[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]]
|
53600
|
+
[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]]
|
53601
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53602
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
53603
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53604
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53605
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "this_week"], ["created_at", 2017-02-22 23:34:08 UTC], ["updated_at", 2017-02-22 23:34:08 UTC]]
|
53606
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53607
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53608
|
+
[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"]]
|
53609
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53610
|
+
[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]]
|
53611
|
+
[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]]
|
53612
|
+
[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]]
|
53613
|
+
[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"]]
|
53614
|
+
[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"]]
|
53615
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53616
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53617
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53618
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53619
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
53620
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53621
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53622
|
+
-----------------------------------------------------------------------------------------
|
53623
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
53624
|
+
-----------------------------------------------------------------------------------------
|
53625
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
53626
|
+
[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]]
|
53627
|
+
[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]]
|
53628
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53629
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
53630
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53631
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53632
|
+
[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"]]
|
53633
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53634
|
+
[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]]
|
53635
|
+
[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]]
|
53636
|
+
[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]]
|
53637
|
+
[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"]]
|
53638
|
+
[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"]]
|
53639
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53640
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53641
|
+
[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]]
|
53642
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53643
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb
|
53644
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (0.5ms)
|
53645
|
+
ClarkKent::ReportMailer#report_error: processed outbound mail in 160.3ms
|
53646
|
+
Sent mail to taproot@gmail.com (8.7ms)
|
53647
|
+
Date: Wed, 22 Feb 2017 16:34:09 -0700
|
53648
|
+
From: reservations@invitedhome.com
|
53649
|
+
To: taproot@gmail.com
|
53650
|
+
Message-ID: <58ae1ff157df2_179793fc537c3fa1467345@Erics-MacBook-Pro.local.mail>
|
53651
|
+
Subject: Your report has a problem
|
53652
|
+
Mime-Version: 1.0
|
53653
|
+
Content-Type: text/html;
|
53654
|
+
charset=UTF-8
|
53655
|
+
Content-Transfer-Encoding: 7bit
|
53656
|
+
|
53657
|
+
Your report could not be created due to the following problem:
|
53658
|
+
<strong>At least one date range is required.</strong>
|
53659
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53660
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
53661
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)[0m
|
53662
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
53663
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
53664
|
+
[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
|
53665
|
+
[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
|
53666
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
53667
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
53668
|
+
FROM sqlite_master
|
53669
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
53670
|
+
UNION ALL
|
53671
|
+
SELECT sql
|
53672
|
+
FROM sqlite_temp_master
|
53673
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
53674
|
+
[0m
|
53675
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
53676
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)[0m
|
53677
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
53678
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
53679
|
+
FROM sqlite_master
|
53680
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
53681
|
+
UNION ALL
|
53682
|
+
SELECT sql
|
53683
|
+
FROM sqlite_temp_master
|
53684
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
53685
|
+
[0m
|
53686
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
53687
|
+
[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
|
53688
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
53689
|
+
[1m[35m (1.2ms)[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
|
53690
|
+
[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
|
53691
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
53692
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
53693
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
53694
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
53695
|
+
('20131226170042'),
|
53696
|
+
('20131226170112'),
|
53697
|
+
('20140114010048'),
|
53698
|
+
('20140129051754'),
|
53699
|
+
('20150304233739');
|
53700
|
+
|
53701
|
+
[0m
|
53702
|
+
[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
|
53703
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
53704
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53705
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-02-22 23:37:29 UTC], ["updated_at", 2017-02-22 23:37:29 UTC]]
|
53706
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
53707
|
+
[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]]
|
53708
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
53709
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
53710
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53711
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-02-22 23:37:29 UTC], ["updated_at", 2017-02-22 23:37:29 UTC]]
|
53712
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
53713
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
53714
|
+
[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]]
|
53715
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
53716
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53717
|
+
[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]]
|
53718
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
53719
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53720
|
+
[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]]
|
53721
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
53722
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53723
|
+
[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]]
|
53724
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
53725
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53726
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
53727
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
53728
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53729
|
+
[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]]
|
53730
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
53731
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53732
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "orders" ("user_id", "amount", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["amount", 1], ["description", "Guitar strings"], ["created_at", 2017-02-22 23:37:30 UTC], ["updated_at", 2017-02-22 23:37:30 UTC]]
|
53733
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
53734
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53735
|
+
-----------------------------------------------------------------------------------------
|
53736
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
53737
|
+
-----------------------------------------------------------------------------------------
|
53738
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
53739
|
+
[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]]
|
53740
|
+
[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]]
|
53741
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53742
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
53743
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53744
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53745
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
53746
|
+
[1m[36mDepartment Load (0.2ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53747
|
+
[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]]
|
53748
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53749
|
+
[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]]
|
53750
|
+
[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"]]
|
53751
|
+
[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"]]
|
53752
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53753
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53754
|
+
[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]]
|
53755
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53756
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb
|
53757
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (1.8ms)
|
53758
|
+
ClarkKent::ReportMailer#report_error: processed outbound mail in 181.2ms
|
53759
|
+
Sent mail to taproot@gmail.com (7.6ms)
|
53760
|
+
Date: Wed, 22 Feb 2017 16:37:30 -0700
|
53761
|
+
From: reservations@invitedhome.com
|
53762
|
+
To: taproot@gmail.com
|
53763
|
+
Message-ID: <58ae20ba97ed0_17a953ff82bc3fa249716@Erics-MacBook-Pro.local.mail>
|
53764
|
+
Subject: Your report has a problem
|
53765
|
+
Mime-Version: 1.0
|
53766
|
+
Content-Type: text/html;
|
53767
|
+
charset=UTF-8
|
53768
|
+
Content-Transfer-Encoding: 7bit
|
53769
|
+
|
53770
|
+
Your report could not be created due to the following problem:
|
53771
|
+
<strong>At least one date range is required.</strong>
|
53772
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53773
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53774
|
+
---------------------------------------------------
|
53775
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
53776
|
+
---------------------------------------------------
|
53777
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
53778
|
+
[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]]
|
53779
|
+
[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]]
|
53780
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53781
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
53782
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53783
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53784
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "this_week"], ["created_at", 2017-02-22 23:37:30 UTC], ["updated_at", 2017-02-22 23:37:30 UTC]]
|
53785
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53786
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53787
|
+
[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"]]
|
53788
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53789
|
+
[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]]
|
53790
|
+
[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]]
|
53791
|
+
[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]]
|
53792
|
+
[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"]]
|
53793
|
+
[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"]]
|
53794
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53795
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53796
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53797
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
53798
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
53799
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
53800
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53801
|
+
--------------------------------------------------------------------------
|
53802
|
+
ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
53803
|
+
--------------------------------------------------------------------------
|
53804
|
+
[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]]
|
53805
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53806
|
+
[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]]
|
53807
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53808
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
53809
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53810
|
+
----------------------------------------------------------------------------------
|
53811
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_date_report_filter
|
53812
|
+
----------------------------------------------------------------------------------
|
53813
|
+
[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]]
|
53814
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53815
|
+
[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"]]
|
53816
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53817
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53818
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
53819
|
+
Parameters: {"report_filter"=>{"duration"=>"week", "filter_name"=>"created_at", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
|
53820
|
+
[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]]
|
53821
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53822
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-22 23:37:30 UTC], ["updated_at", 2017-02-22 23:37:30 UTC]]
|
53823
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53824
|
+
[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]]
|
53825
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.4ms)
|
53826
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (11.1ms)
|
53827
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (14.7ms)
|
53828
|
+
Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.4ms)
|
53829
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
53830
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53831
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53832
|
+
-----------------------------------------------------------------------------------------
|
53833
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_string_filter
|
53834
|
+
-----------------------------------------------------------------------------------------
|
53835
|
+
[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]]
|
53836
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53837
|
+
[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"]]
|
53838
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53839
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53840
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53841
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-22 23:37:30 UTC], ["updated_at", 2017-02-22 23:37:30 UTC]]
|
53842
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53843
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
53844
|
+
Parameters: {"id"=>"1"}
|
53845
|
+
[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]]
|
53846
|
+
[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]]
|
53847
|
+
[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]]
|
53848
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.4ms)
|
53849
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (45.2ms)
|
53850
|
+
Completed 200 OK in 51ms (Views: 48.1ms | ActiveRecord: 0.2ms)
|
53851
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
53852
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53853
|
+
-----------------------------------------------------------------------------------------
|
53854
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_string_filter
|
53855
|
+
-----------------------------------------------------------------------------------------
|
53856
|
+
[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]]
|
53857
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53858
|
+
[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"]]
|
53859
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53860
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53861
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53862
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-22 23:37:30 UTC], ["updated_at", 2017-02-22 23:37:30 UTC]]
|
53863
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53864
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
53865
|
+
Parameters: {"id"=>"1"}
|
53866
|
+
[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]]
|
53867
|
+
[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]]
|
53868
|
+
[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]]
|
53869
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.5ms)
|
53870
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (4.9ms)
|
53871
|
+
Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.1ms)
|
53872
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53873
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53874
|
+
-----------------------------------------------------------------------------
|
53875
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_report_filter
|
53876
|
+
-----------------------------------------------------------------------------
|
53877
|
+
[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]]
|
53878
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53879
|
+
[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"]]
|
53880
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53881
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53882
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
53883
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
53884
|
+
[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]]
|
53885
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53886
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-02-22 23:37:30 UTC], ["updated_at", 2017-02-22 23:37:30 UTC]]
|
53887
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53888
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53889
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.1ms)
|
53890
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (9.4ms)
|
53891
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (9.6ms)
|
53892
|
+
Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 0.6ms)
|
53893
|
+
[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]]
|
53894
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53895
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53896
|
+
-------------------------------------------------------------------------------------
|
53897
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_an_object_report_filter
|
53898
|
+
-------------------------------------------------------------------------------------
|
53899
|
+
[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]]
|
53900
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53901
|
+
[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"]]
|
53902
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53903
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53904
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
53905
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_id", "filter_value"=>"1", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
53906
|
+
[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]]
|
53907
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53908
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-22 23:37:30 UTC], ["updated_at", 2017-02-22 23:37:30 UTC]]
|
53909
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53910
|
+
[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]]
|
53911
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
53912
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (1.1ms)
|
53913
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (6.2ms)
|
53914
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (6.4ms)
|
53915
|
+
Completed 200 OK in 20ms (Views: 6.6ms | ActiveRecord: 0.5ms)
|
53916
|
+
[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]]
|
53917
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53918
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53919
|
+
---------------------------------------------------------------------------------------
|
53920
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_date_filter
|
53921
|
+
---------------------------------------------------------------------------------------
|
53922
|
+
[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]]
|
53923
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53924
|
+
[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"]]
|
53925
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53926
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53927
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53928
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-22 23:37:30 UTC], ["updated_at", 2017-02-22 23:37:30 UTC]]
|
53929
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53930
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
53931
|
+
Parameters: {"id"=>"1"}
|
53932
|
+
[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]]
|
53933
|
+
[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]]
|
53934
|
+
[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]]
|
53935
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (7.1ms)
|
53936
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (14.8ms)
|
53937
|
+
Completed 200 OK in 17ms (Views: 15.1ms | ActiveRecord: 0.1ms)
|
53938
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
53939
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53940
|
+
---------------------------------------------------------------------------------------
|
53941
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_date_filter
|
53942
|
+
---------------------------------------------------------------------------------------
|
53943
|
+
[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]]
|
53944
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53945
|
+
[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"]]
|
53946
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53947
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53948
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53949
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-02-22 23:37:30 UTC], ["updated_at", 2017-02-22 23:37:30 UTC]]
|
53950
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53951
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
53952
|
+
Parameters: {"id"=>"1"}
|
53953
|
+
[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]]
|
53954
|
+
[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]]
|
53955
|
+
[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]]
|
53956
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.1ms)
|
53957
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (1.9ms)
|
53958
|
+
Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.2ms)
|
53959
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
53960
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53961
|
+
------------------------------------------------------------------------------------------
|
53962
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_an_object_filter
|
53963
|
+
------------------------------------------------------------------------------------------
|
53964
|
+
[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]]
|
53965
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53966
|
+
[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"]]
|
53967
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53968
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53969
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53970
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-22 23:37:30 UTC], ["updated_at", 2017-02-22 23:37:30 UTC]]
|
53971
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53972
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
53973
|
+
Parameters: {"id"=>"1"}
|
53974
|
+
[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]]
|
53975
|
+
[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]]
|
53976
|
+
[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]]
|
53977
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
53978
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (2.9ms)
|
53979
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (10.9ms)
|
53980
|
+
Completed 200 OK in 14ms (Views: 11.1ms | ActiveRecord: 0.3ms)
|
53981
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
53982
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
53983
|
+
------------------------------------------------------------------------------------------
|
53984
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_an_object_filter
|
53985
|
+
------------------------------------------------------------------------------------------
|
53986
|
+
[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]]
|
53987
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53988
|
+
[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"]]
|
53989
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53990
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
53991
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
53992
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-02-22 23:37:30 UTC], ["updated_at", 2017-02-22 23:37:30 UTC]]
|
53993
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
53994
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
53995
|
+
Parameters: {"id"=>"1"}
|
53996
|
+
[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]]
|
53997
|
+
[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]]
|
53998
|
+
[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]]
|
53999
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
54000
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.4ms)
|
54001
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.1ms)
|
54002
|
+
Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)
|
54003
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
54004
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54005
|
+
-------------------------
|
54006
|
+
ClarkKentTest: test_truth
|
54007
|
+
-------------------------
|
54008
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
54009
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54010
|
+
------------------------------------------------------------------------------------------------
|
54011
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
54012
|
+
------------------------------------------------------------------------------------------------
|
54013
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54014
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
54015
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
54016
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54017
|
+
-------------------------------------------------------------------------
|
54018
|
+
ClarkKent::ReportsControllerTest: test_0007_should show report run errors
|
54019
|
+
-------------------------------------------------------------------------
|
54020
|
+
[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]]
|
54021
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54022
|
+
[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"]]
|
54023
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54024
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54025
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
54026
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
54027
|
+
[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]]
|
54028
|
+
[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
|
54029
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
54030
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
54031
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
54032
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
54033
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.0ms)
|
54034
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54035
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
54036
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (2.0ms)
|
54037
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.6ms)
|
54038
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
54039
|
+
[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]]
|
54040
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (5.9ms)
|
54041
|
+
[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]]
|
54042
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
54043
|
+
(SELECT u.name
|
54044
|
+
FROM users u
|
54045
|
+
WHERE u.id = orders.user_id)
|
54046
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
54047
|
+
[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]]
|
54048
|
+
[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]]
|
54049
|
+
[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]]
|
54050
|
+
[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]]
|
54051
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (1.0ms)
|
54052
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (42.1ms)
|
54053
|
+
Completed 200 OK in 258ms (Views: 242.8ms | ActiveRecord: 1.9ms)
|
54054
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
54055
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54056
|
+
-----------------------------------------------------------
|
54057
|
+
ClarkKent::ReportsControllerTest: test_0008_should get edit
|
54058
|
+
-----------------------------------------------------------
|
54059
|
+
[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]]
|
54060
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54061
|
+
[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"]]
|
54062
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54063
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54064
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
54065
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
54066
|
+
[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]]
|
54067
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
54068
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (2.5ms)
|
54069
|
+
[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"]]
|
54070
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (4.6ms)
|
54071
|
+
[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]]
|
54072
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.1ms)
|
54073
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (6.1ms)
|
54074
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
54075
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.5ms)
|
54076
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
54077
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.5ms)
|
54078
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.6ms)
|
54079
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.8ms)
|
54080
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (15.1ms)
|
54081
|
+
[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]]
|
54082
|
+
[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"]]
|
54083
|
+
[1m[36mUser Load (0.4ms)[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]]
|
54084
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (40.8ms)
|
54085
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (44.8ms)
|
54086
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (52.2ms)
|
54087
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (90.8ms)
|
54088
|
+
Completed 200 OK in 98ms (Views: 93.3ms | ActiveRecord: 0.9ms)
|
54089
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
54090
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54091
|
+
--------------------------------------------------------------------------------
|
54092
|
+
ClarkKent::ReportsControllerTest: test_0004_should render errors during creation
|
54093
|
+
--------------------------------------------------------------------------------
|
54094
|
+
[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]]
|
54095
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54096
|
+
[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"]]
|
54097
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54098
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54099
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
54100
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
54101
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54102
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
54103
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
54104
|
+
[1m[36mUser Load (0.6ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
54105
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
54106
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (12.5ms)
|
54107
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (16.5ms)
|
54108
|
+
Completed 409 Conflict in 24ms (Views: 21.4ms | ActiveRecord: 0.8ms)
|
54109
|
+
[1m[36mClarkKent::Report Load (0.4ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT ?[0m [["name", "delete me"], ["LIMIT", 1]]
|
54110
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
54111
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54112
|
+
----------------------------------------------------------
|
54113
|
+
ClarkKent::ReportsControllerTest: test_0002_should get new
|
54114
|
+
----------------------------------------------------------
|
54115
|
+
[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]]
|
54116
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54117
|
+
[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"]]
|
54118
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54119
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54120
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
54121
|
+
Parameters: {"current_user_id"=>"1"}
|
54122
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
54123
|
+
[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]]
|
54124
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
54125
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (7.2ms)
|
54126
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (8.1ms)
|
54127
|
+
Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.1ms)
|
54128
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
54129
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
54130
|
+
----------------------------------------------------------------------
|
54131
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
54132
|
+
----------------------------------------------------------------------
|
54133
|
+
[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]]
|
54134
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54135
|
+
[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"]]
|
54136
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54137
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54138
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
54139
|
+
Parameters: {"created_at_from"=>"2017-02-21", "created_at_until"=>"2017-02-22", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
54140
|
+
[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]]
|
54141
|
+
[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
|
54142
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
54143
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
54144
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
54145
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
54146
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
54147
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54148
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
54149
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.3ms)
|
54150
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
54151
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
54152
|
+
[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]]
|
54153
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (1.4ms)
|
54154
|
+
[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]]
|
54155
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
54156
|
+
(SELECT u.name
|
54157
|
+
FROM users u
|
54158
|
+
WHERE u.id = orders.user_id)
|
54159
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
54160
|
+
[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]]
|
54161
|
+
[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]]
|
54162
|
+
[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]]
|
54163
|
+
[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]]
|
54164
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (0.7ms)
|
54165
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (12.6ms)
|
54166
|
+
Completed 200 OK in 25ms (Views: 14.4ms | ActiveRecord: 1.5ms)
|
54167
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
54168
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54169
|
+
----------------------------------------------------------------
|
54170
|
+
ClarkKent::ReportsControllerTest: test_0003_should create report
|
54171
|
+
----------------------------------------------------------------
|
54172
|
+
[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]]
|
54173
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54174
|
+
[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"]]
|
54175
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54176
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54177
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
54178
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
54179
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54180
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "sharing_scope_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["sharing_scope_type", ""], ["created_at", 2017-02-22 23:37:31 UTC], ["updated_at", 2017-02-22 23:37:31 UTC]]
|
54181
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54182
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
54183
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.6ms)
|
54184
|
+
[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"]]
|
54185
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (3.6ms)
|
54186
|
+
[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]]
|
54187
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (2.4ms)
|
54188
|
+
[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]]
|
54189
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (1.7ms)
|
54190
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (10.3ms)
|
54191
|
+
Completed 200 OK in 17ms (Views: 13.3ms | ActiveRecord: 0.6ms)
|
54192
|
+
[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]]
|
54193
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54194
|
+
[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"]]
|
54195
|
+
[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]]
|
54196
|
+
[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]]
|
54197
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
54198
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54199
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
54200
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54201
|
+
------------------------------------------------------------
|
54202
|
+
ClarkKent::ReportsControllerTest: test_0001_should get index
|
54203
|
+
------------------------------------------------------------
|
54204
|
+
[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]]
|
54205
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54206
|
+
[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"]]
|
54207
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54208
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54209
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
54210
|
+
Parameters: {"current_user_id"=>"1"}
|
54211
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application
|
54212
|
+
[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]]
|
54213
|
+
[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]]
|
54214
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
54215
|
+
[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]]
|
54216
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
54217
|
+
[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
|
54218
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (11.2ms)
|
54219
|
+
Completed 200 OK in 17ms (Views: 12.9ms | ActiveRecord: 0.5ms)
|
54220
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
54221
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54222
|
+
--------------------------------------------------------------
|
54223
|
+
ClarkKent::ReportsControllerTest: test_0005_should show report
|
54224
|
+
--------------------------------------------------------------
|
54225
|
+
[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]]
|
54226
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54227
|
+
[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"]]
|
54228
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54229
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54230
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
54231
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
54232
|
+
[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]]
|
54233
|
+
[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
|
54234
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
54235
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
54236
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
54237
|
+
[1m[35m (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
54238
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
54239
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54240
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
54241
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (0.9ms)
|
54242
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
54243
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
54244
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (5.9ms)
|
54245
|
+
Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.4ms)
|
54246
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
54247
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54248
|
+
----------------------------------------------------------------
|
54249
|
+
ClarkKent::ReportsControllerTest: test_0009_should update report
|
54250
|
+
----------------------------------------------------------------
|
54251
|
+
[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]]
|
54252
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54253
|
+
[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"]]
|
54254
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54255
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54256
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
54257
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}, "id"=>"1"}
|
54258
|
+
[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]]
|
54259
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54260
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "name" = ?, "sharing_scope_type" = ?, "updated_at" = ? WHERE "clark_kent_reports"."id" = ?[0m [["name", ""], ["sharing_scope_type", ""], ["updated_at", 2017-02-22 23:37:31 UTC], ["id", 1]]
|
54261
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54262
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.2ms)
|
54263
|
+
Completed 200 OK in 5ms (Views: 1.5ms | ActiveRecord: 0.3ms)
|
54264
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
54265
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54266
|
+
-----------------------------------------------------------------
|
54267
|
+
ClarkKent::ReportsControllerTest: test_0010_should destroy report
|
54268
|
+
-----------------------------------------------------------------
|
54269
|
+
[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]]
|
54270
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54271
|
+
[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"]]
|
54272
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54273
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54274
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["created_at", 2017-02-22 23:37:31 UTC], ["updated_at", 2017-02-22 23:37:31 UTC]]
|
54275
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54276
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
54277
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
54278
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
54279
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
54280
|
+
[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]]
|
54281
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54282
|
+
[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"]]
|
54283
|
+
[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]]
|
54284
|
+
[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]]
|
54285
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
54286
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54287
|
+
Redirected to http://test.host/reports/reports
|
54288
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
|
54289
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
54290
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
54291
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54292
|
+
------------------------------------------------------------------------
|
54293
|
+
ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
54294
|
+
------------------------------------------------------------------------
|
54295
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54296
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "Order"], ["created_at", 2017-02-22 23:37:31 UTC], ["updated_at", 2017-02-22 23:37:31 UTC]]
|
54297
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54298
|
+
[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]]
|
54299
|
+
[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"]]
|
54300
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
54301
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
54302
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
54303
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54304
|
+
--------------------------------------------------------------------------
|
54305
|
+
ClarkKent::ReportableTest: test_0002_it works without any required filters
|
54306
|
+
--------------------------------------------------------------------------
|
54307
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54308
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-02-22 23:37:31 UTC], ["updated_at", 2017-02-22 23:37:31 UTC]]
|
54309
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54310
|
+
[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]]
|
54311
|
+
[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"]]
|
54312
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
54313
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
54314
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54315
|
+
--------------------------------------------------------------------------
|
54316
|
+
ClarkKent::ReportableTest: test_0003_doesn't blow up if order_sql is blank
|
54317
|
+
--------------------------------------------------------------------------
|
54318
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54319
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-02-22 23:37:31 UTC], ["updated_at", 2017-02-22 23:37:31 UTC]]
|
54320
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54321
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54322
|
+
[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]]
|
54323
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54324
|
+
[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]]
|
54325
|
+
[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"]]
|
54326
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 2], ["LIMIT", 1]]
|
54327
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
54328
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54329
|
+
-------------------------------------------------------------------------------
|
54330
|
+
ClarkKent::ReportColumnsControllerTest: test_0001_should create a report column
|
54331
|
+
-------------------------------------------------------------------------------
|
54332
|
+
[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]]
|
54333
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
54334
|
+
Parameters: {"report_column"=>{"name"=>"user_name", "report_id"=>"1"}}
|
54335
|
+
Unpermitted parameter: name
|
54336
|
+
[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]]
|
54337
|
+
Unpermitted parameter: name
|
54338
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54339
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
54340
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54341
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54342
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54343
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54344
|
+
[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]]
|
54345
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
54346
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (15.9ms)
|
54347
|
+
Completed 409 Conflict in 47ms (Views: 43.9ms | ActiveRecord: 0.9ms)
|
54348
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
54349
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54350
|
+
-----------------------------------------------------
|
54351
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
54352
|
+
-----------------------------------------------------
|
54353
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
54354
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
54355
|
+
[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
|
54356
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
54357
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
54358
|
+
[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
|
54359
|
+
[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
|
54360
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
54361
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
54362
|
+
FROM sqlite_master
|
54363
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
54364
|
+
UNION ALL
|
54365
|
+
SELECT sql
|
54366
|
+
FROM sqlite_temp_master
|
54367
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
54368
|
+
[0m
|
54369
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
54370
|
+
[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
|
54371
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
54372
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
54373
|
+
FROM sqlite_master
|
54374
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
54375
|
+
UNION ALL
|
54376
|
+
SELECT sql
|
54377
|
+
FROM sqlite_temp_master
|
54378
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
54379
|
+
[0m
|
54380
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
54381
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)[0m
|
54382
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
54383
|
+
[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
|
54384
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer)[0m
|
54385
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
54386
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
54387
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
54388
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
54389
|
+
('20131226170042'),
|
54390
|
+
('20131226170112'),
|
54391
|
+
('20140114010048'),
|
54392
|
+
('20140129051754'),
|
54393
|
+
('20150304233739');
|
54394
|
+
|
54395
|
+
[0m
|
54396
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
54397
|
+
[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]]
|
54398
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
54399
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-02-22 23:38:54 UTC], ["updated_at", 2017-02-22 23:38:54 UTC]]
|
54400
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
54401
|
+
[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]]
|
54402
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54403
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
54404
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54405
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-02-22 23:38:54 UTC], ["updated_at", 2017-02-22 23:38:54 UTC]]
|
54406
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
54407
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54408
|
+
[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]]
|
54409
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
54410
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54411
|
+
[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]]
|
54412
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
54413
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54414
|
+
[1m[35mSQL (0.7ms)[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]]
|
54415
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
54416
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54417
|
+
[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]]
|
54418
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
54419
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54420
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
54421
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
54422
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54423
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?)[0m [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
54424
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
54425
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54426
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "orders" ("user_id", "amount", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["amount", 1], ["description", "Guitar strings"], ["created_at", 2017-02-22 23:38:54 UTC], ["updated_at", 2017-02-22 23:38:54 UTC]]
|
54427
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
54428
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54429
|
+
-------------------------------------------------------------------------------
|
54430
|
+
ClarkKent::ReportColumnsControllerTest: test_0001_should create a report column
|
54431
|
+
-------------------------------------------------------------------------------
|
54432
|
+
[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]]
|
54433
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
54434
|
+
Parameters: {"report_column"=>{"name"=>"user_name", "report_id"=>"1"}}
|
54435
|
+
Unpermitted parameter: name
|
54436
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
54437
|
+
Unpermitted parameter: name
|
54438
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54439
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
54440
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54441
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54442
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54443
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54444
|
+
[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]]
|
54445
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
54446
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (56.4ms)
|
54447
|
+
Completed 409 Conflict in 99ms (Views: 88.4ms | ActiveRecord: 1.2ms)
|
54448
|
+
[1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
|
54449
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
54450
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)[0m
|
54451
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
54452
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
54453
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar)[0m
|
54454
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
54455
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
54456
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
54457
|
+
FROM sqlite_master
|
54458
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
54459
|
+
UNION ALL
|
54460
|
+
SELECT sql
|
54461
|
+
FROM sqlite_temp_master
|
54462
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
54463
|
+
[0m
|
54464
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
54465
|
+
[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
|
54466
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
54467
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
54468
|
+
FROM sqlite_master
|
54469
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
54470
|
+
UNION ALL
|
54471
|
+
SELECT sql
|
54472
|
+
FROM sqlite_temp_master
|
54473
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
54474
|
+
[0m
|
54475
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
54476
|
+
[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
|
54477
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
54478
|
+
[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
|
54479
|
+
[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
|
54480
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
54481
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
54482
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
54483
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
54484
|
+
('20131226170042'),
|
54485
|
+
('20131226170112'),
|
54486
|
+
('20140114010048'),
|
54487
|
+
('20140129051754'),
|
54488
|
+
('20150304233739');
|
54489
|
+
|
54490
|
+
[0m
|
54491
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
54492
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
54493
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54494
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-02-22 23:39:25 UTC], ["updated_at", 2017-02-22 23:39:25 UTC]]
|
54495
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
54496
|
+
[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]]
|
54497
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54498
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
54499
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54500
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-02-22 23:39:25 UTC], ["updated_at", 2017-02-22 23:39:25 UTC]]
|
54501
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
54502
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54503
|
+
[1m[35mSQL (0.7ms)[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]]
|
54504
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
54505
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54506
|
+
[1m[35mSQL (1.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]]
|
54507
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
54508
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54509
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "amount"], ["column_order", 3]]
|
54510
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
54511
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54512
|
+
[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]]
|
54513
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
54514
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54515
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
54516
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
54517
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54518
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?)[0m [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
54519
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
54520
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54521
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "orders" ("user_id", "amount", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["amount", 1], ["description", "Guitar strings"], ["created_at", 2017-02-22 23:39:25 UTC], ["updated_at", 2017-02-22 23:39:25 UTC]]
|
54522
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
54523
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54524
|
+
-------------------------------------------------------------------------------
|
54525
|
+
ClarkKent::ReportColumnsControllerTest: test_0001_should create a report column
|
54526
|
+
-------------------------------------------------------------------------------
|
54527
|
+
[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]]
|
54528
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
54529
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1"}}
|
54530
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
54531
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54532
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name") VALUES (?, ?)[0m [["report_id", 1], ["column_name", "user_name"]]
|
54533
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54534
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (3.9ms)
|
54535
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (37.6ms)
|
54536
|
+
Completed 200 OK in 74ms (Views: 68.3ms | ActiveRecord: 0.8ms)
|
54537
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
54538
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
54539
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)[0m
|
54540
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
54541
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
54542
|
+
[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
|
54543
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
54544
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
54545
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
54546
|
+
FROM sqlite_master
|
54547
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
54548
|
+
UNION ALL
|
54549
|
+
SELECT sql
|
54550
|
+
FROM sqlite_temp_master
|
54551
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
54552
|
+
[0m
|
54553
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
54554
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)[0m
|
54555
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
54556
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
54557
|
+
FROM sqlite_master
|
54558
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
54559
|
+
UNION ALL
|
54560
|
+
SELECT sql
|
54561
|
+
FROM sqlite_temp_master
|
54562
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
54563
|
+
[0m
|
54564
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
54565
|
+
[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
|
54566
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
54567
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
54568
|
+
[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
|
54569
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
54570
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
54571
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
54572
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
54573
|
+
('20131226170042'),
|
54574
|
+
('20131226170112'),
|
54575
|
+
('20140114010048'),
|
54576
|
+
('20140129051754'),
|
54577
|
+
('20150304233739');
|
54578
|
+
|
54579
|
+
[0m
|
54580
|
+
[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
|
54581
|
+
[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]]
|
54582
|
+
[1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
|
54583
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-02-22 23:40:41 UTC], ["updated_at", 2017-02-22 23:40:41 UTC]]
|
54584
|
+
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
54585
|
+
[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]]
|
54586
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54587
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
54588
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54589
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-02-22 23:40:41 UTC], ["updated_at", 2017-02-22 23:40:41 UTC]]
|
54590
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
54591
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54592
|
+
[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]]
|
54593
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
54594
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54595
|
+
[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]]
|
54596
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
54597
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54598
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "amount"], ["column_order", 3]]
|
54599
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
54600
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54601
|
+
[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]]
|
54602
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
54603
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54604
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
54605
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
54606
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54607
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?)[0m [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
54608
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
54609
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54610
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "orders" ("user_id", "amount", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["amount", 1], ["description", "Guitar strings"], ["created_at", 2017-02-22 23:40:41 UTC], ["updated_at", 2017-02-22 23:40:41 UTC]]
|
54611
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
54612
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54613
|
+
-------------------------------------------------------------------------------
|
54614
|
+
ClarkKent::ReportColumnsControllerTest: test_0001_should create a report column
|
54615
|
+
-------------------------------------------------------------------------------
|
54616
|
+
[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]]
|
54617
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
54618
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1"}}
|
54619
|
+
[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]]
|
54620
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54621
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name") VALUES (?, ?)[0m [["report_id", 1], ["column_name", "user_name"]]
|
54622
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54623
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (3.7ms)
|
54624
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (34.2ms)
|
54625
|
+
Completed 200 OK in 71ms (Views: 66.8ms | ActiveRecord: 0.6ms)
|
54626
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
54627
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54628
|
+
---------------------------------------------------------------------------------------------------
|
54629
|
+
ClarkKent::ReportColumnsControllerTest: test_0002_should reject a report column with no column_name
|
54630
|
+
---------------------------------------------------------------------------------------------------
|
54631
|
+
[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]]
|
54632
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
54633
|
+
Parameters: {"report_column"=>{"report_id"=>"1"}}
|
54634
|
+
[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]]
|
54635
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54636
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
54637
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54638
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54639
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54640
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54641
|
+
[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]]
|
54642
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
54643
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (55.1ms)
|
54644
|
+
Completed 409 Conflict in 95ms (Views: 87.1ms | ActiveRecord: 0.9ms)
|
54645
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
54646
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
54647
|
+
[1m[35m (1.7ms)[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
|
54648
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
54649
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
54650
|
+
[1m[35m (1.4ms)[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
|
54651
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
54652
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
54653
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
54654
|
+
FROM sqlite_master
|
54655
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
54656
|
+
UNION ALL
|
54657
|
+
SELECT sql
|
54658
|
+
FROM sqlite_temp_master
|
54659
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
54660
|
+
[0m
|
54661
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
54662
|
+
[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
|
54663
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
54664
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
54665
|
+
FROM sqlite_master
|
54666
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
54667
|
+
UNION ALL
|
54668
|
+
SELECT sql
|
54669
|
+
FROM sqlite_temp_master
|
54670
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
54671
|
+
[0m
|
54672
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
54673
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)[0m
|
54674
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
54675
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
54676
|
+
[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
|
54677
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
54678
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
54679
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
54680
|
+
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
54681
|
+
('20131226170042'),
|
54682
|
+
('20131226170112'),
|
54683
|
+
('20140114010048'),
|
54684
|
+
('20140129051754'),
|
54685
|
+
('20150304233739');
|
54686
|
+
|
54687
|
+
[0m
|
54688
|
+
[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
|
54689
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
54690
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54691
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-02-22 23:43:59 UTC], ["updated_at", 2017-02-22 23:43:59 UTC]]
|
54692
|
+
[1m[35m (3.2ms)[0m [1m[36mcommit transaction[0m
|
54693
|
+
[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]]
|
54694
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54695
|
+
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
54696
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54697
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-02-22 23:43:59 UTC], ["updated_at", 2017-02-22 23:43:59 UTC]]
|
54698
|
+
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
54699
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54700
|
+
[1m[35mSQL (2.1ms)[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]]
|
54701
|
+
[1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
|
54702
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54703
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "id"], ["column_order", 2]]
|
54704
|
+
[1m[35m (4.4ms)[0m [1m[36mcommit transaction[0m
|
54705
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54706
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "amount"], ["column_order", 3]]
|
54707
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
54708
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54709
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "description"], ["column_order", 4]]
|
54710
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
54711
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54712
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
54713
|
+
[1m[35m (3.5ms)[0m [1m[36mcommit transaction[0m
|
54714
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54715
|
+
[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]]
|
54716
|
+
[1m[35m (0.5ms)[0m [1m[36mcommit transaction[0m
|
54717
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54718
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "orders" ("user_id", "amount", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["amount", 1], ["description", "Guitar strings"], ["created_at", 2017-02-22 23:43:59 UTC], ["updated_at", 2017-02-22 23:43:59 UTC]]
|
54719
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
54720
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54721
|
+
--------------------------------------------------------------------------------------------------
|
54722
|
+
ClarkKent::ReportColumnsControllerTest: test_0003_should reject a report column with unusable sort
|
54723
|
+
--------------------------------------------------------------------------------------------------
|
54724
|
+
[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]]
|
54725
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
54726
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1", "report_sort"=>"ascending"}}
|
54727
|
+
[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]]
|
54728
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54729
|
+
[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]]
|
54730
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
54731
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54732
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54733
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54734
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54735
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
54736
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (81.3ms)
|
54737
|
+
Completed 409 Conflict in 132ms (Views: 122.7ms | ActiveRecord: 1.0ms)
|
54738
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
54739
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
54740
|
+
-------------------------------------------------------------------------------
|
54741
|
+
ClarkKent::ReportColumnsControllerTest: test_0001_should create a report column
|
54742
|
+
-------------------------------------------------------------------------------
|
54743
|
+
[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]]
|
54744
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
54745
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1"}}
|
54746
|
+
[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]]
|
54747
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54748
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name") VALUES (?, ?)[0m [["report_id", 1], ["column_name", "user_name"]]
|
54749
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
54750
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.8ms)
|
54751
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (31.9ms)
|
54752
|
+
Completed 200 OK in 70ms (Views: 66.9ms | ActiveRecord: 0.7ms)
|
54753
|
+
[1m[35m (1.3ms)[0m [1m[31mrollback transaction[0m
|
54754
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
54755
|
+
---------------------------------------------------------------------------------------------------
|
54756
|
+
ClarkKent::ReportColumnsControllerTest: test_0002_should reject a report column with no column_name
|
54757
|
+
---------------------------------------------------------------------------------------------------
|
54758
|
+
[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]]
|
54759
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
54760
|
+
Parameters: {"report_column"=>{"report_id"=>"1"}}
|
54761
|
+
[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]]
|
54762
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
54763
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
54764
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54765
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54766
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54767
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns"."column_name" FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
54768
|
+
[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]]
|
54769
|
+
[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" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
54770
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (11.9ms)
|
54771
|
+
Completed 409 Conflict in 14ms (Views: 11.3ms | ActiveRecord: 1.0ms)
|
54772
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|