clark_kent 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/clark_kent/application_helper.rb +10 -1
- data/app/models/clark_kent/report.rb +1 -1
- data/app/models/clark_kent/report_column.rb +8 -0
- data/app/models/clark_kent/report_config.rb +1 -1
- data/app/views/clark_kent/reports/show.html.erb +1 -1
- data/lib/clark_kent/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +1180 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/7wkkNeyL-5f8CXSn7mMl8AVNJDqKAiYwQs3n_B6mQyU.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/8S9BWbkqyqZJQUbtQschJbKqEQhGcIJGHi3MQwciyag.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/9wAn82iO6baAuljoEQVoaVPuY9XDGcbcBtl8qv6StxQ.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HOfAHEuP6I8KPPyp98JcoOXTGi11_FBhOJwFtsevX-A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/HoeR2i4C0fFw3InDLqJk6bUaQeky8AuUobvnvjv6pHM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/ICbkYKfaoZRUPEOztDCgFmCKItizJSF6nxzG5MhlT5k.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/JbcAACpMmVlknG104wCtLY73aNeelGB5NNPiF4uDf5s.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/MBGxecGwxTYQEY7eD6RjPwyEK-nzQYdEg6L1CKxeNrg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/O8akbUwAbmIKY-AhITimq-JDQ6IgsO3Hvq2v5etufFw.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/O_lf7JlEpHIA6lJttTUysIjiZne0WHcrriF_gfYEPuk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/QiWdA0USMx1DANK8U_xj8UkshlB2A5ERdXEtrOCdNgU.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/UwMFS8rJmeOVTOPUAsy5rBsPqe-mwJgvTSCg-8xwSK8.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/VnraCsf7KCfpeFS2tHzBzKw_a2CO0CW7p-jo_0Ov0-U.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/X-bY_yeJIl4hwsbTN_dx12dUEzsaExaUkthjOEOBjUM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/Yg4blpsarsGK85xxkPyxeXWfUmlqediuIlTkheX7BH4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/hj8Ir9wcVSy1KYrnWu9bpD24vDhCG3tvt-nKbNxb1Wg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/oCsZTGZyV4kH8Y4OeSDUdrwfkJFPzTODZjuBKZB8oGQ.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v3.0/tPF6H9NRpGO3whu2y5_e_R_1EACKdCwu5437D83qJT0.cache +0 -0
- data/test/helpers/clark_kent/reports_helper_test.rb +20 -0
- data/test/models/clark_kent/report_email_test.rb +1 -1
- metadata +26 -2
data/test/dummy/log/test.log
CHANGED
@@ -35726,3 +35726,1183 @@ ClarkKent::ReportableTest: test_it_works_without_any_required_filters
|
|
35726
35726
|
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
35727
35727
|
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 2]]
|
35728
35728
|
[1m[35m (0.3ms)[0m rollback transaction
|
35729
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35730
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)
|
35731
|
+
[1m[36m (0.3ms)[0m [1mselect sqlite_version(*)[0m
|
35732
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
|
35733
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) [0m
|
35734
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)
|
35735
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
35736
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
35737
|
+
FROM sqlite_master
|
35738
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
35739
|
+
UNION ALL
|
35740
|
+
SELECT sql
|
35741
|
+
FROM sqlite_temp_master
|
35742
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
35743
|
+
|
35744
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
35745
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)
|
35746
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
35747
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
35748
|
+
FROM sqlite_master
|
35749
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
35750
|
+
UNION ALL
|
35751
|
+
SELECT sql
|
35752
|
+
FROM sqlite_temp_master
|
35753
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
35754
|
+
|
35755
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
35756
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
|
35757
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
35758
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)
|
35759
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) [0m
|
35760
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
35761
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
35762
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
35763
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
35764
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
|
35765
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131226170112')[0m
|
35766
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
|
35767
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140129051754')[0m
|
35768
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
|
35769
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35770
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-07-31 22:01:26.748681"], ["updated_at", "2016-07-31 22:01:26.748681"]]
|
35771
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
35772
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35773
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "user_name"], ["column_order", 1], ["report_id", 1]]
|
35774
|
+
[1m[35m (0.7ms)[0m commit transaction
|
35775
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35776
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "id"], ["column_order", 2], ["report_id", 1]]
|
35777
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
35778
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35779
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
|
35780
|
+
[1m[35m (0.6ms)[0m commit transaction
|
35781
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35782
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
|
35783
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
35784
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35785
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
35786
|
+
[1m[35m (0.8ms)[0m commit transaction
|
35787
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35788
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
35789
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
35790
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35791
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "description", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["description", "Guitar strings"], ["amount", 1], ["created_at", "2016-07-31 22:01:26.799340"], ["updated_at", "2016-07-31 22:01:26.799340"]]
|
35792
|
+
[1m[35m (0.7ms)[0m commit transaction
|
35793
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35794
|
+
-------------------------------------------------------------------
|
35795
|
+
ClarkKent::ReportableTest: test_it_adds_required_filters_if_present
|
35796
|
+
-------------------------------------------------------------------
|
35797
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35798
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "Order"], ["created_at", "2016-07-31 22:01:26.849371"], ["updated_at", "2016-07-31 22:01:26.849371"]]
|
35799
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35800
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "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]]
|
35801
|
+
[1m[35mClarkKent::ReportFilter Load (0.2ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
35802
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 2]]
|
35803
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
35804
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35805
|
+
---------------------------------------------------------------------
|
35806
|
+
ClarkKent::ReportableTest: test_it_works_without_any_required_filters
|
35807
|
+
---------------------------------------------------------------------
|
35808
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35809
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", "2016-07-31 22:01:26.861072"], ["updated_at", "2016-07-31 22:01:26.861072"]]
|
35810
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35811
|
+
[1m[36mClarkKent::ReportColumn Load (0.0ms)[0m [1mSELECT "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]]
|
35812
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
35813
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 2]]
|
35814
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
35815
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35816
|
+
---------------------------------------------------
|
35817
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
35818
|
+
---------------------------------------------------
|
35819
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "taproot@gmail.com"]]
|
35820
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
35821
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ? [["id", 1]]
|
35822
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35823
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_emails" ("name", "report_id") VALUES (?, ?) [["name", "test_emailer"], ["report_id", 1]]
|
35824
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35825
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35826
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "clark_kent_report_filters" ("type", "filter_name", "duration", "kind_of_day", "offset", "filterable_id", "filterable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "ClarkKent::ReportDateFilter"], ["filter_name", "created_at"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "this_week"], ["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["created_at", "2016-07-31 22:01:26.912555"], ["updated_at", "2016-07-31 22:01:26.912555"]]
|
35827
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35828
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
35829
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35830
|
+
-----------------------------------------------------------------------------------------
|
35831
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
35832
|
+
-----------------------------------------------------------------------------------------
|
35833
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "taproot@gmail.com"]]
|
35834
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
35835
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
35836
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35837
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "clark_kent_report_emails" ("name", "report_id") VALUES (?, ?)[0m [["name", "test_emailer"], ["report_id", 1]]
|
35838
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35839
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
35840
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
35841
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1mSELECT "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"]]
|
35842
|
+
[1m[35mDepartment Load (0.1ms)[0m SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
|
35843
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1[0m [["id", 1]]
|
35844
|
+
[1m[35mClarkKent::Report Load (0.0ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
35845
|
+
[1m[36mClarkKent::ReportColumn Load (0.0ms)[0m [1mSELECT "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]]
|
35846
|
+
[1m[35mClarkKent::ReportFilter Load (0.1ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35847
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1mSELECT "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"]]
|
35848
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
35849
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
35850
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
35851
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35852
|
+
------------------------------------------------------------------------------------------------
|
35853
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
35854
|
+
------------------------------------------------------------------------------------------------
|
35855
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35856
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
35857
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35858
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35859
|
+
-------------------------
|
35860
|
+
ClarkKentTest: test_truth
|
35861
|
+
-------------------------
|
35862
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35863
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35864
|
+
-------------------------------------------------------
|
35865
|
+
ClarkKent::ReportsController: test_should_create_report
|
35866
|
+
-------------------------------------------------------
|
35867
|
+
[1m[35mClarkKent::Report Load (0.2ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
35868
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
35869
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
35870
|
+
Parameters: {"report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>nil, "sharing_scope_type"=>nil}, "current_user_id"=>"1"}
|
35871
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35872
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["created_at", "2016-07-31 22:01:26.957984"], ["updated_at", "2016-07-31 22:01:26.957984"]]
|
35873
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35874
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (6.1ms)
|
35875
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1mSELECT "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"]]
|
35876
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (3.6ms)
|
35877
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
|
35878
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (4.5ms)
|
35879
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
35880
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (3.5ms)
|
35881
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (34.7ms)
|
35882
|
+
Completed 200 OK in 469ms (Views: 465.5ms | ActiveRecord: 0.7ms)
|
35883
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT 1 [["name", "delete me"]]
|
35884
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35885
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
35886
|
+
[1m[36mClarkKent::ReportColumn Load (0.0ms)[0m [1mSELECT "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]]
|
35887
|
+
[1m[35mClarkKent::ReportEmail Load (0.0ms)[0m SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 2]]
|
35888
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
35889
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35890
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
35891
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35892
|
+
--------------------------------------------------------
|
35893
|
+
ClarkKent::ReportsController: test_should_destroy_report
|
35894
|
+
--------------------------------------------------------
|
35895
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
35896
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35897
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35898
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "delete me"], ["resource_type", "Order"], ["created_at", "2016-07-31 22:01:27.431435"], ["updated_at", "2016-07-31 22:01:27.431435"]]
|
35899
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35900
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "clark_kent_reports"
|
35901
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
35902
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
35903
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 2]]
|
35904
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35905
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1mSELECT "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"]]
|
35906
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
|
35907
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
35908
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? [["id", 2]]
|
35909
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35910
|
+
Redirected to http://test.host/reports/reports
|
35911
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
35912
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "clark_kent_reports"
|
35913
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
35914
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35915
|
+
--------------------------------------------------
|
35916
|
+
ClarkKent::ReportsController: test_should_get_edit
|
35917
|
+
--------------------------------------------------
|
35918
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
35919
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35920
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
35921
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
35922
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
35923
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (4.2ms)
|
35924
|
+
[1m[35mClarkKent::ReportFilter Load (0.1ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35925
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (3.2ms)
|
35926
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "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]]
|
35927
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.9ms)
|
35928
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (6.2ms)
|
35929
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.1ms)
|
35930
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.3ms)
|
35931
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.5ms)
|
35932
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.7ms)
|
35933
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.5ms)
|
35934
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.7ms)
|
35935
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (20.2ms)
|
35936
|
+
[1m[35mClarkKent::ReportEmail Load (0.1ms)[0m SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 1]]
|
35937
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (2.9ms)
|
35938
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (33.6ms)
|
35939
|
+
Completed 200 OK in 37ms (Views: 35.9ms | ActiveRecord: 0.3ms)
|
35940
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35941
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35942
|
+
---------------------------------------------------
|
35943
|
+
ClarkKent::ReportsController: test_should_get_index
|
35944
|
+
---------------------------------------------------
|
35945
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
35946
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35947
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
35948
|
+
Parameters: {"current_user_id"=>"1"}
|
35949
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
35950
|
+
[1m[35mClarkKent::Report Exists (0.1ms)[0m SELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT 1 [["sharing_scope_id", 1], ["sharing_scope_type", "User"]]
|
35951
|
+
[1m[36mDepartment Load (0.0ms)[0m [1mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1[0m [["id", 1]]
|
35952
|
+
[1m[35mClarkKent::Report Exists (0.0ms)[0m SELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT 1 [["sharing_scope_id", 1], ["sharing_scope_type", "Department"]]
|
35953
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
35954
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL
|
35955
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (21.0ms)
|
35956
|
+
Completed 200 OK in 27ms (Views: 25.9ms | ActiveRecord: 0.5ms)
|
35957
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35958
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35959
|
+
-------------------------------------------------
|
35960
|
+
ClarkKent::ReportsController: test_should_get_new
|
35961
|
+
-------------------------------------------------
|
35962
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
35963
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35964
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
35965
|
+
Parameters: {"current_user_id"=>"1"}
|
35966
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
35967
|
+
[1m[35mDepartment Load (0.0ms)[0m SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
|
35968
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (66.6ms)
|
35969
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (71.9ms)
|
35970
|
+
Completed 200 OK in 78ms (Views: 77.4ms | ActiveRecord: 0.1ms)
|
35971
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35972
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35973
|
+
-----------------------------------------------------
|
35974
|
+
ClarkKent::ReportsController: test_should_show_report
|
35975
|
+
-----------------------------------------------------
|
35976
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
35977
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35978
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
35979
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
35980
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m [["id", 1]]
|
35981
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order
|
35982
|
+
[1m[36m (0.1ms)[0m [1mSELECT "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"]]
|
35983
|
+
[1m[35m (0.0ms)[0m SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35984
|
+
[1m[36m (0.0ms)[0m [1mSELECT "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"]]
|
35985
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.0ms)
|
35986
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35987
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
35988
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (2.0ms)
|
35989
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.5ms)
|
35990
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.7ms)
|
35991
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (21.0ms)
|
35992
|
+
Completed 200 OK in 34ms (Views: 26.4ms | ActiveRecord: 0.6ms)
|
35993
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35994
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35995
|
+
-------------------------------------------------------------
|
35996
|
+
ClarkKent::ReportsController: test_should_show_report_results
|
35997
|
+
-------------------------------------------------------------
|
35998
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
35999
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
36000
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
36001
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>true, "created_at_until"=>"2016-07-31", "created_at_from"=>"2016-07-30", "id"=>"1"}
|
36002
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1 [["id", 1]]
|
36003
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order[0m
|
36004
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
36005
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
36006
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
36007
|
+
[1m[36m (0.1ms)[0m [1mSELECT "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"]]
|
36008
|
+
[1m[35m (0.0ms)[0m SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
36009
|
+
[1m[36m (0.0ms)[0m [1mSELECT "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"]]
|
36010
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.2ms)
|
36011
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
36012
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
36013
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (0.8ms)
|
36014
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
36015
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)
|
36016
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT "orders"."id" AS count_column FROM "orders" WHERE (orders.user_id > 0) LIMIT 10 OFFSET 0) subquery_for_count[0m
|
36017
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (4.3ms)
|
36018
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 1]]
|
36019
|
+
[1m[36mOrder Load (0.1ms)[0m [1mSELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
36020
|
+
(SELECT u.name
|
36021
|
+
FROM users u
|
36022
|
+
WHERE u.id = orders.user_id)
|
36023
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT 10 OFFSET 0[0m
|
36024
|
+
[1m[35mClarkKent::Report Load (0.0ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
36025
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
36026
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
36027
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
36028
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (2.6ms)
|
36029
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (29.0ms)
|
36030
|
+
Completed 200 OK in 46ms (Views: 30.1ms | ActiveRecord: 1.3ms)
|
36031
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
36032
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36033
|
+
----------------------------------------------------------------
|
36034
|
+
ClarkKent::ReportsController: test_should_show_report_run_errors
|
36035
|
+
----------------------------------------------------------------
|
36036
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
36037
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
36038
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
36039
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>true, "id"=>"1"}
|
36040
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1 [["id", 1]]
|
36041
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order[0m
|
36042
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
36043
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
36044
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
36045
|
+
[1m[36m (0.1ms)[0m [1mSELECT "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"]]
|
36046
|
+
[1m[35m (0.1ms)[0m SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
36047
|
+
[1m[36m (0.1ms)[0m [1mSELECT "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"]]
|
36048
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
36049
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
36050
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
36051
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.3ms)
|
36052
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
36053
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
36054
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (8.0ms)
|
36055
|
+
Completed 200 OK in 14ms (Views: 9.6ms | ActiveRecord: 0.9ms)
|
36056
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
36057
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36058
|
+
-------------------------------------------------------
|
36059
|
+
ClarkKent::ReportsController: test_should_update_report
|
36060
|
+
-------------------------------------------------------
|
36061
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
36062
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
36063
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
36064
|
+
Parameters: {"report"=>{"name"=>nil, "resource_type"=>"Order", "sharing_scope_id"=>nil, "sharing_scope_type"=>nil}, "current_user_id"=>"1", "id"=>"1"}
|
36065
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
36066
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36067
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36068
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (4.0ms)
|
36069
|
+
Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms)
|
36070
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36071
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36072
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)
|
36073
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
36074
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
|
36075
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) [0m
|
36076
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)
|
36077
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
36078
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
36079
|
+
FROM sqlite_master
|
36080
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36081
|
+
UNION ALL
|
36082
|
+
SELECT sql
|
36083
|
+
FROM sqlite_temp_master
|
36084
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36085
|
+
|
36086
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
36087
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)
|
36088
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
36089
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36090
|
+
FROM sqlite_master
|
36091
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36092
|
+
UNION ALL
|
36093
|
+
SELECT sql
|
36094
|
+
FROM sqlite_temp_master
|
36095
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36096
|
+
|
36097
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
36098
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
|
36099
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
36100
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)
|
36101
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) [0m
|
36102
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
36103
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
36104
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
36105
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
36106
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
|
36107
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131226170112')[0m
|
36108
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
|
36109
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140129051754')[0m
|
36110
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
|
36111
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36112
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-07-31 22:02:57.137498"], ["updated_at", "2016-07-31 22:02:57.137498"]]
|
36113
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
36114
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36115
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "user_name"], ["column_order", 1], ["report_id", 1]]
|
36116
|
+
[1m[35m (1.0ms)[0m commit transaction
|
36117
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36118
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "id"], ["column_order", 2], ["report_id", 1]]
|
36119
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
36120
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36121
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
|
36122
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36123
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36124
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
|
36125
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36126
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36127
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
36128
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36129
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36130
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
36131
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
36132
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36133
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "description", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["description", "Guitar strings"], ["amount", 1], ["created_at", "2016-07-31 22:02:57.189630"], ["updated_at", "2016-07-31 22:02:57.189630"]]
|
36134
|
+
[1m[35m (1.2ms)[0m commit transaction
|
36135
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36136
|
+
-------------------------------------------------------
|
36137
|
+
ClarkKent::ReportsController: test_should_create_report
|
36138
|
+
-------------------------------------------------------
|
36139
|
+
[1m[35mClarkKent::Report Load (0.2ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
36140
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
36141
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
36142
|
+
Parameters: {"report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>nil, "sharing_scope_type"=>nil}, "current_user_id"=>"1"}
|
36143
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36144
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["created_at", "2016-07-31 22:02:57.241050"], ["updated_at", "2016-07-31 22:02:57.241050"]]
|
36145
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36146
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (13.7ms)
|
36147
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1mSELECT "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"]]
|
36148
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (9.7ms)
|
36149
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
|
36150
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (3.7ms)
|
36151
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
36152
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (14.0ms)
|
36153
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (54.1ms)
|
36154
|
+
Completed 200 OK in 239ms (Views: 235.4ms | ActiveRecord: 1.0ms)
|
36155
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT 1 [["name", "delete me"]]
|
36156
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36157
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
36158
|
+
[1m[36mClarkKent::ReportColumn Load (0.0ms)[0m [1mSELECT "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]]
|
36159
|
+
[1m[35mClarkKent::ReportEmail Load (0.0ms)[0m SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 2]]
|
36160
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
36161
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36162
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
36163
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36164
|
+
--------------------------------------------------------
|
36165
|
+
ClarkKent::ReportsController: test_should_destroy_report
|
36166
|
+
--------------------------------------------------------
|
36167
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
36168
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
36169
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36170
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "delete me"], ["resource_type", "Order"], ["created_at", "2016-07-31 22:02:57.490012"], ["updated_at", "2016-07-31 22:02:57.490012"]]
|
36171
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36172
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "clark_kent_reports"
|
36173
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
36174
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
36175
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 2]]
|
36176
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
36177
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1mSELECT "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"]]
|
36178
|
+
[1m[35mClarkKent::ReportColumn Load (0.0ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
|
36179
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
36180
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? [["id", 2]]
|
36181
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36182
|
+
Redirected to http://test.host/reports/reports
|
36183
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.7ms)
|
36184
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "clark_kent_reports"
|
36185
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
36186
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36187
|
+
--------------------------------------------------
|
36188
|
+
ClarkKent::ReportsController: test_should_get_edit
|
36189
|
+
--------------------------------------------------
|
36190
|
+
[1m[36mClarkKent::Report Load (0.3ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
36191
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
36192
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
36193
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
36194
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
36195
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (3.9ms)
|
36196
|
+
[1m[35mClarkKent::ReportFilter Load (0.1ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
36197
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (2.9ms)
|
36198
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "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]]
|
36199
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.9ms)
|
36200
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (5.5ms)
|
36201
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.3ms)
|
36202
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.5ms)
|
36203
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.8ms)
|
36204
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.2ms)
|
36205
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (2.5ms)
|
36206
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.9ms)
|
36207
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (19.2ms)
|
36208
|
+
[1m[35mClarkKent::ReportEmail Load (0.0ms)[0m SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 1]]
|
36209
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (2.7ms)
|
36210
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (31.5ms)
|
36211
|
+
Completed 200 OK in 35ms (Views: 33.7ms | ActiveRecord: 0.3ms)
|
36212
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36213
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36214
|
+
---------------------------------------------------
|
36215
|
+
ClarkKent::ReportsController: test_should_get_index
|
36216
|
+
---------------------------------------------------
|
36217
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
36218
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
36219
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
36220
|
+
Parameters: {"current_user_id"=>"1"}
|
36221
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
36222
|
+
[1m[35mClarkKent::Report Exists (0.2ms)[0m SELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT 1 [["sharing_scope_id", 1], ["sharing_scope_type", "User"]]
|
36223
|
+
[1m[36mDepartment Load (0.3ms)[0m [1mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1[0m [["id", 1]]
|
36224
|
+
[1m[35mClarkKent::Report Exists (0.0ms)[0m SELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT 1 [["sharing_scope_id", 1], ["sharing_scope_type", "Department"]]
|
36225
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
36226
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL
|
36227
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (20.5ms)
|
36228
|
+
Completed 200 OK in 26ms (Views: 24.5ms | ActiveRecord: 0.8ms)
|
36229
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36230
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36231
|
+
-------------------------------------------------
|
36232
|
+
ClarkKent::ReportsController: test_should_get_new
|
36233
|
+
-------------------------------------------------
|
36234
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
36235
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
36236
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
36237
|
+
Parameters: {"current_user_id"=>"1"}
|
36238
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
36239
|
+
[1m[35mDepartment Load (0.0ms)[0m SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
|
36240
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (60.9ms)
|
36241
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (66.1ms)
|
36242
|
+
Completed 200 OK in 71ms (Views: 70.5ms | ActiveRecord: 0.1ms)
|
36243
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36244
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36245
|
+
-----------------------------------------------------
|
36246
|
+
ClarkKent::ReportsController: test_should_show_report
|
36247
|
+
-----------------------------------------------------
|
36248
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
36249
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
36250
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
36251
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
36252
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m [["id", 1]]
|
36253
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order
|
36254
|
+
[1m[36m (0.1ms)[0m [1mSELECT "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"]]
|
36255
|
+
[1m[35m (0.0ms)[0m SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
36256
|
+
[1m[36m (0.0ms)[0m [1mSELECT "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"]]
|
36257
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.0ms)
|
36258
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
36259
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users"[0m
|
36260
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.5ms)
|
36261
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.6ms)
|
36262
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (1.1ms)
|
36263
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (19.2ms)
|
36264
|
+
Completed 200 OK in 30ms (Views: 23.6ms | ActiveRecord: 0.7ms)
|
36265
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
36266
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36267
|
+
-------------------------------------------------------------
|
36268
|
+
ClarkKent::ReportsController: test_should_show_report_results
|
36269
|
+
-------------------------------------------------------------
|
36270
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
36271
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
36272
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
36273
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>true, "created_at_until"=>"2016-07-31", "created_at_from"=>"2016-07-30", "id"=>"1"}
|
36274
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1 [["id", 1]]
|
36275
|
+
[1m[36mClarkKent::ReportColumn Load (0.4ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order[0m
|
36276
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
36277
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
36278
|
+
[1m[35m (0.1ms)[0m SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
36279
|
+
[1m[36m (0.0ms)[0m [1mSELECT "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"]]
|
36280
|
+
[1m[35m (0.0ms)[0m SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
36281
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
36282
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
36283
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
36284
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (0.9ms)
|
36285
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
36286
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
36287
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(count_column) FROM (SELECT "orders"."id" AS count_column FROM "orders" WHERE (orders.user_id > 0) LIMIT 10 OFFSET 0) subquery_for_count
|
36288
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (3.9ms)
|
36289
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "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]]
|
36290
|
+
[1m[35mOrder Load (0.1ms)[0m SELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
36291
|
+
(SELECT u.name
|
36292
|
+
FROM users u
|
36293
|
+
WHERE u.id = orders.user_id)
|
36294
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT 10 OFFSET 0
|
36295
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
36296
|
+
[1m[35mClarkKent::Report Load (0.0ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
36297
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
36298
|
+
[1m[35mClarkKent::Report Load (0.0ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
36299
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (2.8ms)
|
36300
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (28.5ms)
|
36301
|
+
Completed 200 OK in 43ms (Views: 36.4ms | ActiveRecord: 1.4ms)
|
36302
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36303
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36304
|
+
----------------------------------------------------------------
|
36305
|
+
ClarkKent::ReportsController: test_should_show_report_run_errors
|
36306
|
+
----------------------------------------------------------------
|
36307
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
36308
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
36309
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
36310
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>true, "id"=>"1"}
|
36311
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m [["id", 1]]
|
36312
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order
|
36313
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1mSELECT "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"]]
|
36314
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
36315
|
+
[1m[36m (0.1ms)[0m [1mSELECT "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"]]
|
36316
|
+
[1m[35m (0.0ms)[0m SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
36317
|
+
[1m[36m (0.1ms)[0m [1mSELECT "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"]]
|
36318
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.2ms)
|
36319
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
36320
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
36321
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (0.8ms)
|
36322
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
36323
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
36324
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (6.4ms)
|
36325
|
+
Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 0.6ms)
|
36326
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
36327
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36328
|
+
-------------------------------------------------------
|
36329
|
+
ClarkKent::ReportsController: test_should_update_report
|
36330
|
+
-------------------------------------------------------
|
36331
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
36332
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
36333
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
36334
|
+
Parameters: {"report"=>{"name"=>nil, "resource_type"=>"Order", "sharing_scope_id"=>nil, "sharing_scope_type"=>nil}, "current_user_id"=>"1", "id"=>"1"}
|
36335
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
36336
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36337
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36338
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (3.7ms)
|
36339
|
+
Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.1ms)
|
36340
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
36341
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36342
|
+
------------------------------------------------------------------------------------------------
|
36343
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
36344
|
+
------------------------------------------------------------------------------------------------
|
36345
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36346
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
36347
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
36348
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36349
|
+
---------------------------------------------------
|
36350
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
36351
|
+
---------------------------------------------------
|
36352
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "taproot@gmail.com"]]
|
36353
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
36354
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
36355
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36356
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "clark_kent_report_emails" ("name", "report_id") VALUES (?, ?)[0m [["name", "test_emailer"], ["report_id", 1]]
|
36357
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
36358
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
36359
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "clark_kent_report_filters" ("type", "filter_name", "duration", "kind_of_day", "offset", "filterable_id", "filterable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["type", "ClarkKent::ReportDateFilter"], ["filter_name", "created_at"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "this_week"], ["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["created_at", "2016-07-31 22:02:57.790436"], ["updated_at", "2016-07-31 22:02:57.790436"]]
|
36360
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36361
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
36362
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
36363
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
36364
|
+
[1m[36mDepartment Load (0.0ms)[0m [1mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1[0m [["id", 1]]
|
36365
|
+
[1m[35mClarkKent::ReportEmail Load (0.1ms)[0m SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
|
36366
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
36367
|
+
[1m[35mClarkKent::ReportColumn Load (0.0ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 1]]
|
36368
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1mSELECT "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"]]
|
36369
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
36370
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
36371
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
36372
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
36373
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
36374
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
36375
|
+
[1m[35m (1.3ms)[0m rollback transaction
|
36376
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36377
|
+
-----------------------------------------------------------------------------------------
|
36378
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
36379
|
+
-----------------------------------------------------------------------------------------
|
36380
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "taproot@gmail.com"]]
|
36381
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
36382
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ? [["id", 1]]
|
36383
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36384
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "clark_kent_report_emails" ("name", "report_id") VALUES (?, ?) [["name", "test_emailer"], ["report_id", 1]]
|
36385
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36386
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
36387
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
36388
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
36389
|
+
[1m[36mDepartment Load (0.0ms)[0m [1mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1[0m [["id", 1]]
|
36390
|
+
[1m[35mClarkKent::ReportEmail Load (0.0ms)[0m SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1 [["id", 1]]
|
36391
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
36392
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 1]]
|
36393
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1mSELECT "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"]]
|
36394
|
+
[1m[35mClarkKent::ReportFilter Load (0.1ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
36395
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
36396
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
36397
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
36398
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36399
|
+
-------------------------
|
36400
|
+
ClarkKentTest: test_truth
|
36401
|
+
-------------------------
|
36402
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
36403
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36404
|
+
-------------------------------------------------------------------
|
36405
|
+
ClarkKent::ReportableTest: test_it_adds_required_filters_if_present
|
36406
|
+
-------------------------------------------------------------------
|
36407
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
36408
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test one"], ["resource_type", "Order"], ["created_at", "2016-07-31 22:02:57.932107"], ["updated_at", "2016-07-31 22:02:57.932107"]]
|
36409
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36410
|
+
[1m[35mClarkKent::ReportColumn Load (0.0ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
|
36411
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1mSELECT "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"]]
|
36412
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
36413
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
36414
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
36415
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36416
|
+
---------------------------------------------------------------------
|
36417
|
+
ClarkKent::ReportableTest: test_it_works_without_any_required_filters
|
36418
|
+
---------------------------------------------------------------------
|
36419
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36420
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", "2016-07-31 22:02:57.937655"], ["updated_at", "2016-07-31 22:02:57.937655"]]
|
36421
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
36422
|
+
[1m[36mClarkKent::ReportColumn Load (0.0ms)[0m [1mSELECT "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]]
|
36423
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
36424
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 2]]
|
36425
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
36426
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36427
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)
|
36428
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
36429
|
+
[1m[35m (0.9ms)[0m CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
|
36430
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) [0m
|
36431
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)
|
36432
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
36433
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36434
|
+
FROM sqlite_master
|
36435
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36436
|
+
UNION ALL
|
36437
|
+
SELECT sql
|
36438
|
+
FROM sqlite_temp_master
|
36439
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36440
|
+
|
36441
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
36442
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)
|
36443
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
36444
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36445
|
+
FROM sqlite_master
|
36446
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36447
|
+
UNION ALL
|
36448
|
+
SELECT sql
|
36449
|
+
FROM sqlite_temp_master
|
36450
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36451
|
+
|
36452
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
36453
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
|
36454
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
36455
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)
|
36456
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) [0m
|
36457
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
36458
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
36459
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
36460
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
36461
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
|
36462
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131226170112')[0m
|
36463
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
|
36464
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140129051754')[0m
|
36465
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
|
36466
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36467
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-07-31 22:08:26.301959"], ["updated_at", "2016-07-31 22:08:26.301959"]]
|
36468
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
36469
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36470
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "user_name"], ["column_order", 1], ["report_id", 1]]
|
36471
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36472
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36473
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "id"], ["column_order", 2], ["report_id", 1]]
|
36474
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36475
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36476
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
|
36477
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36478
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36479
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
|
36480
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36481
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36482
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
36483
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36484
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36485
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
36486
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
36487
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36488
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "description", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["description", "Guitar strings"], ["amount", 1], ["created_at", "2016-07-31 22:08:26.352783"], ["updated_at", "2016-07-31 22:08:26.352783"]]
|
36489
|
+
[1m[35m (0.8ms)[0m commit transaction
|
36490
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36491
|
+
-----------------------------------------------------
|
36492
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
36493
|
+
-----------------------------------------------------
|
36494
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
36495
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36496
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)
|
36497
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
36498
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
|
36499
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) [0m
|
36500
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)
|
36501
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
36502
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36503
|
+
FROM sqlite_master
|
36504
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36505
|
+
UNION ALL
|
36506
|
+
SELECT sql
|
36507
|
+
FROM sqlite_temp_master
|
36508
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36509
|
+
|
36510
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
36511
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)
|
36512
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
36513
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36514
|
+
FROM sqlite_master
|
36515
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36516
|
+
UNION ALL
|
36517
|
+
SELECT sql
|
36518
|
+
FROM sqlite_temp_master
|
36519
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36520
|
+
|
36521
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
36522
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
|
36523
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
36524
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)
|
36525
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) [0m
|
36526
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
36527
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
36528
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
36529
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
36530
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
|
36531
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131226170112')[0m
|
36532
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
|
36533
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140129051754')[0m
|
36534
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
|
36535
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36536
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-07-31 22:08:47.602138"], ["updated_at", "2016-07-31 22:08:47.602138"]]
|
36537
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
36538
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36539
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "user_name"], ["column_order", 1], ["report_id", 1]]
|
36540
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36541
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36542
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "id"], ["column_order", 2], ["report_id", 1]]
|
36543
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
36544
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36545
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
|
36546
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36547
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36548
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
|
36549
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36550
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36551
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
36552
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36553
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36554
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
36555
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36556
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36557
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "description", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["description", "Guitar strings"], ["amount", 1], ["created_at", "2016-07-31 22:08:47.645532"], ["updated_at", "2016-07-31 22:08:47.645532"]]
|
36558
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36559
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36560
|
+
-----------------------------------------------------
|
36561
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
36562
|
+
-----------------------------------------------------
|
36563
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
36564
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36565
|
+
[1m[35m (1.8ms)[0m CREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)
|
36566
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
36567
|
+
[1m[35m (1.1ms)[0m CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
|
36568
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) [0m
|
36569
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)
|
36570
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
36571
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36572
|
+
FROM sqlite_master
|
36573
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36574
|
+
UNION ALL
|
36575
|
+
SELECT sql
|
36576
|
+
FROM sqlite_temp_master
|
36577
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36578
|
+
|
36579
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
36580
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)
|
36581
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
36582
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36583
|
+
FROM sqlite_master
|
36584
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36585
|
+
UNION ALL
|
36586
|
+
SELECT sql
|
36587
|
+
FROM sqlite_temp_master
|
36588
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36589
|
+
|
36590
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
36591
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
|
36592
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
36593
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)
|
36594
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) [0m
|
36595
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
36596
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
36597
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
36598
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
36599
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
|
36600
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131226170112')[0m
|
36601
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
|
36602
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140129051754')[0m
|
36603
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
|
36604
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36605
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-07-31 22:13:11.762145"], ["updated_at", "2016-07-31 22:13:11.762145"]]
|
36606
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
36607
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36608
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "user_name"], ["column_order", 1], ["report_id", 1]]
|
36609
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36610
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36611
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "id"], ["column_order", 2], ["report_id", 1]]
|
36612
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36613
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36614
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
|
36615
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36616
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36617
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
|
36618
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
36619
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36620
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
36621
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36622
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36623
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
36624
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
36625
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36626
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "description", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["description", "Guitar strings"], ["amount", 1], ["created_at", "2016-07-31 22:13:11.808483"], ["updated_at", "2016-07-31 22:13:11.808483"]]
|
36627
|
+
[1m[35m (0.8ms)[0m commit transaction
|
36628
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36629
|
+
-----------------------------------------------------
|
36630
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
36631
|
+
-----------------------------------------------------
|
36632
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
36633
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36634
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)
|
36635
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
36636
|
+
[1m[35m (1.1ms)[0m CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
|
36637
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) [0m
|
36638
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)
|
36639
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
36640
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36641
|
+
FROM sqlite_master
|
36642
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36643
|
+
UNION ALL
|
36644
|
+
SELECT sql
|
36645
|
+
FROM sqlite_temp_master
|
36646
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36647
|
+
|
36648
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
36649
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)
|
36650
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
36651
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36652
|
+
FROM sqlite_master
|
36653
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36654
|
+
UNION ALL
|
36655
|
+
SELECT sql
|
36656
|
+
FROM sqlite_temp_master
|
36657
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36658
|
+
|
36659
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
36660
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
|
36661
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
36662
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)
|
36663
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) [0m
|
36664
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
36665
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
36666
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
36667
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
36668
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
|
36669
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131226170112')[0m
|
36670
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
|
36671
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140129051754')[0m
|
36672
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
|
36673
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36674
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-07-31 22:14:15.911326"], ["updated_at", "2016-07-31 22:14:15.911326"]]
|
36675
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36676
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36677
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "user_name"], ["column_order", 1], ["report_id", 1]]
|
36678
|
+
[1m[35m (0.8ms)[0m commit transaction
|
36679
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36680
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "id"], ["column_order", 2], ["report_id", 1]]
|
36681
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36682
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36683
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
|
36684
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36685
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36686
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
|
36687
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36688
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36689
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
36690
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36691
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36692
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
36693
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36694
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36695
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "description", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["description", "Guitar strings"], ["amount", 1], ["created_at", "2016-07-31 22:14:15.957335"], ["updated_at", "2016-07-31 22:14:15.957335"]]
|
36696
|
+
[1m[35m (0.9ms)[0m commit transaction
|
36697
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36698
|
+
-----------------------------------------------------
|
36699
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
36700
|
+
-----------------------------------------------------
|
36701
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
36702
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36703
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)
|
36704
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
36705
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
|
36706
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) [0m
|
36707
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)
|
36708
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
36709
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36710
|
+
FROM sqlite_master
|
36711
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36712
|
+
UNION ALL
|
36713
|
+
SELECT sql
|
36714
|
+
FROM sqlite_temp_master
|
36715
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36716
|
+
|
36717
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
36718
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)
|
36719
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
36720
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36721
|
+
FROM sqlite_master
|
36722
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36723
|
+
UNION ALL
|
36724
|
+
SELECT sql
|
36725
|
+
FROM sqlite_temp_master
|
36726
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36727
|
+
|
36728
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
36729
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
|
36730
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
36731
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)
|
36732
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) [0m
|
36733
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
36734
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
36735
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
36736
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
36737
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
|
36738
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131226170112')[0m
|
36739
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
|
36740
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140129051754')[0m
|
36741
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
|
36742
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36743
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-07-31 22:15:36.229328"], ["updated_at", "2016-07-31 22:15:36.229328"]]
|
36744
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36745
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36746
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "user_name"], ["column_order", 1], ["report_id", 1]]
|
36747
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36748
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36749
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "id"], ["column_order", 2], ["report_id", 1]]
|
36750
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36751
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36752
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
|
36753
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36754
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36755
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
|
36756
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36757
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36758
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
36759
|
+
[1m[35m (0.9ms)[0m commit transaction
|
36760
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36761
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
36762
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36763
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36764
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "description", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["description", "Guitar strings"], ["amount", 1], ["created_at", "2016-07-31 22:15:36.276203"], ["updated_at", "2016-07-31 22:15:36.276203"]]
|
36765
|
+
[1m[35m (0.9ms)[0m commit transaction
|
36766
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36767
|
+
-----------------------------------------------------
|
36768
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
36769
|
+
-----------------------------------------------------
|
36770
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
36771
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36772
|
+
[1m[35m (1.7ms)[0m CREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)
|
36773
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
36774
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
|
36775
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) [0m
|
36776
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)
|
36777
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
36778
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36779
|
+
FROM sqlite_master
|
36780
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36781
|
+
UNION ALL
|
36782
|
+
SELECT sql
|
36783
|
+
FROM sqlite_temp_master
|
36784
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36785
|
+
|
36786
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
36787
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)
|
36788
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
36789
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36790
|
+
FROM sqlite_master
|
36791
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36792
|
+
UNION ALL
|
36793
|
+
SELECT sql
|
36794
|
+
FROM sqlite_temp_master
|
36795
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36796
|
+
|
36797
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
36798
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
|
36799
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
36800
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)
|
36801
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) [0m
|
36802
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
36803
|
+
[1m[36m (0.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
36804
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
36805
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
36806
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
|
36807
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131226170112')[0m
|
36808
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
|
36809
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140129051754')[0m
|
36810
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
|
36811
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36812
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-07-31 22:17:27.100116"], ["updated_at", "2016-07-31 22:17:27.100116"]]
|
36813
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
36814
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36815
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "user_name"], ["column_order", 1], ["report_id", 1]]
|
36816
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36817
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36818
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "id"], ["column_order", 2], ["report_id", 1]]
|
36819
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36820
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36821
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
|
36822
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36823
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36824
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
|
36825
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36826
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36827
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
36828
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36829
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36830
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
36831
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36832
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36833
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "description", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["description", "Guitar strings"], ["amount", 1], ["created_at", "2016-07-31 22:17:27.147436"], ["updated_at", "2016-07-31 22:17:27.147436"]]
|
36834
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36835
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36836
|
+
-----------------------------------------------------
|
36837
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
36838
|
+
-----------------------------------------------------
|
36839
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
36840
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
36841
|
+
[1m[35m (2.0ms)[0m CREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)
|
36842
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
36843
|
+
[1m[35m (1.0ms)[0m CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
|
36844
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) [0m
|
36845
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)
|
36846
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
36847
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36848
|
+
FROM sqlite_master
|
36849
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36850
|
+
UNION ALL
|
36851
|
+
SELECT sql
|
36852
|
+
FROM sqlite_temp_master
|
36853
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
36854
|
+
|
36855
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
36856
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)
|
36857
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
36858
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
36859
|
+
FROM sqlite_master
|
36860
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36861
|
+
UNION ALL
|
36862
|
+
SELECT sql
|
36863
|
+
FROM sqlite_temp_master
|
36864
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
36865
|
+
|
36866
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
36867
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
|
36868
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
36869
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)
|
36870
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) [0m
|
36871
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
36872
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
36873
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
36874
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
36875
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
|
36876
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131226170112')[0m
|
36877
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
|
36878
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140129051754')[0m
|
36879
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
|
36880
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36881
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-07-31 22:18:09.905104"], ["updated_at", "2016-07-31 22:18:09.905104"]]
|
36882
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36883
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36884
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "user_name"], ["column_order", 1], ["report_id", 1]]
|
36885
|
+
[1m[35m (0.8ms)[0m commit transaction
|
36886
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36887
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "id"], ["column_order", 2], ["report_id", 1]]
|
36888
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36889
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36890
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
|
36891
|
+
[1m[35m (0.6ms)[0m commit transaction
|
36892
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36893
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
|
36894
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36895
|
+
[1m[35m (0.0ms)[0m begin transaction
|
36896
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
36897
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36898
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36899
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
36900
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
36901
|
+
[1m[35m (0.1ms)[0m begin transaction
|
36902
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "description", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["description", "Guitar strings"], ["amount", 1], ["created_at", "2016-07-31 22:18:09.949678"], ["updated_at", "2016-07-31 22:18:09.949678"]]
|
36903
|
+
[1m[35m (0.7ms)[0m commit transaction
|
36904
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
36905
|
+
-----------------------------------------------------
|
36906
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
36907
|
+
-----------------------------------------------------
|
36908
|
+
[1m[35m (0.1ms)[0m rollback transaction
|