test/dummy/log/test.log in ominous-0.0.5 vs test/dummy/log/test.log in ominous-0.1.0
- old
+ new
@@ -29480,5 +29480,1638 @@
[1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
Processing by ThingsController#index as HTML
[1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.1ms)
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (3.8ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (9.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-02-18 10:54:42', '2013-02-18 10:54:42')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-02-18 10:54:42', '2013-02-18 10:54:42')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-02-18 10:54:42', '2013-02-18 10:54:42', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-02-18 10:54:42', '2013-02-18 10:54:42', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-02-18 10:54:42', '2013-02-18 10:54:42', 113629430)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-02-18 10:54:42', '2013-02-18 10:54:42')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-02-18 10:54:42', '2013-02-18 10:54:42')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-02-18 10:54:42', '2013-02-18 10:54:42')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-02-18 10:54:42', '2013-02-18 10:54:42')
+ [1m[36m (145.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.9ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (6.0ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.5ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-02-18 10:54:43.407768' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.3ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 104ms (Views: 103.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (4.0ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Mon, 18 Feb 2013 10:54:43 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Mon, 18 Feb 2013 10:54:43 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 4.2ms)
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.1ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (3.8ms)
+Completed 200 OK in 66ms (Views: 63.0ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.2ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (3.6ms)
+Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (66.7ms)
+Completed 200 OK in 77ms (Views: 74.2ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.7ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.8ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.1ms)
+Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 1.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.4ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.9ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+Connecting to database specified by database.yml
+ [1m[36m (0.8ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-02-18 11:22:23', '2013-02-18 11:22:23')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-02-18 11:22:23', '2013-02-18 11:22:23')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-02-18 11:22:23', '2013-02-18 11:22:23', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-02-18 11:22:23', '2013-02-18 11:22:23', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-02-18 11:22:23', '2013-02-18 11:22:23', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-02-18 11:22:23', '2013-02-18 11:22:23')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-02-18 11:22:23', '2013-02-18 11:22:23')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (1.9ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-02-18 11:22:23', '2013-02-18 11:22:23')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-02-18 11:22:23', '2013-02-18 11:22:23')
+ [1m[36m (133.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.4ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (2.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.1ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.2ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.2ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-02-18 11:22:23.809329' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 36ms (Views: 34.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (3.8ms)[0m [1mUPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-02-18 11:22:23.897089' WHERE "ominous_closers"."id" = 1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.9ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (5.6ms)[0m INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 18 Feb 2013 11:22:23 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Mon, 18 Feb 2013 11:22:23 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/3
+Completed 302 Found in 12ms (ActiveRecord: 5.8ms)
+ [1m[35m (4.4ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (3.6ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "things" WHERE "things"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things
+Completed 302 Found in 6ms (ActiveRecord: 4.0ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered things/_form.html.erb (8.1ms)
+Completed 200 OK in 81ms (Views: 76.8ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (3.1ms)
+Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (1.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (44.5ms)
+Completed 200 OK in 55ms (Views: 51.0ms | ActiveRecord: 0.6ms)
+ [1m[36m (0.2ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (6.7ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.3ms)
+Completed 200 OK in 25ms (Views: 16.3ms | ActiveRecord: 7.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.3ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (1.8ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (3.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (3.7ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (3.9ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-02-18 11:22:36', '2013-02-18 11:22:36')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-02-18 11:22:36', '2013-02-18 11:22:36')
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-02-18 11:22:37', '2013-02-18 11:22:37', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-02-18 11:22:37', '2013-02-18 11:22:37', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-02-18 11:22:37', '2013-02-18 11:22:37', 113629430)
+ [1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-02-18 11:22:37', '2013-02-18 11:22:37')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-02-18 11:22:37', '2013-02-18 11:22:37')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-02-18 11:22:37', '2013-02-18 11:22:37')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-02-18 11:22:37', '2013-02-18 11:22:37')
+ [1m[36m (119.7ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (1.7ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (1.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (1.4ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-02-18 11:22:37.477554' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (1.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 80ms (Views: 77.6ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.9ms)[0m [1mUPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-02-18 11:22:37.605460' WHERE "ominous_closers"."id" = 1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.8ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (1.9ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 18 Feb 2013 11:22:37 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Mon, 18 Feb 2013 11:22:37 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/3
+Completed 302 Found in 9ms (ActiveRecord: 1.5ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.1ms)[0m [1mDELETE FROM "things" WHERE "things"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things
+Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered things/_form.html.erb (4.1ms)
+Completed 200 OK in 47ms (Views: 45.7ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (4.1ms)
+Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (65.5ms)
+Completed 200 OK in 82ms (Views: 79.7ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.6ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.9ms)
+Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.8ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (3.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/1
+Completed 302 Found in 10ms (ActiveRecord: 3.4ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (0.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-02-18 11:22:49', '2013-02-18 11:22:49')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-02-18 11:22:49', '2013-02-18 11:22:49')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-02-18 11:22:49', '2013-02-18 11:22:49', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-02-18 11:22:49', '2013-02-18 11:22:49', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-02-18 11:22:49', '2013-02-18 11:22:49', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-02-18 11:22:49', '2013-02-18 11:22:49')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-02-18 11:22:49', '2013-02-18 11:22:49')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-02-18 11:22:49', '2013-02-18 11:22:49')[0m
+ [1m[35mFixture Insert (0.0ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-02-18 11:22:49', '2013-02-18 11:22:49')
+ [1m[36m (177.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.3ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.9ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (2.4ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.3ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-02-18 11:22:50.204064' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (2.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.7ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 42ms (Views: 40.6ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.8ms)[0m [1mUPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-02-18 11:22:50.295013' WHERE "ominous_closers"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.5ms)[0m INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 18 Feb 2013 11:22:50 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Mon, 18 Feb 2013 11:22:50 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/3
+Completed 302 Found in 9ms (ActiveRecord: 1.6ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (2.6ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mDELETE FROM "things" WHERE "things"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things
+Completed 302 Found in 3ms (ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered things/_form.html.erb (4.3ms)
+Completed 200 OK in 48ms (Views: 46.9ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (3.2ms)
+Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (42.1ms)
+Completed 200 OK in 52ms (Views: 48.5ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Warning Load (1.6ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.0ms)
+Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 2.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.7ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.7ms)
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/1
+Completed 302 Found in 7ms (ActiveRecord: 0.3ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.7ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.7ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (1.7ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.6ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.9ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-05-01 12:44:54', '2013-05-01 12:44:54')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-05-01 12:44:54', '2013-05-01 12:44:54')
+ [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-05-01 12:44:54', '2013-05-01 12:44:54', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-05-01 12:44:54', '2013-05-01 12:44:54', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-05-01 12:44:54', '2013-05-01 12:44:54', 113629430)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-05-01 12:44:54', '2013-05-01 12:44:54')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-05-01 12:44:54', '2013-05-01 12:44:54')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-05-01 12:44:54', '2013-05-01 12:44:54')[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-05-01 12:44:54', '2013-05-01 12:44:54')
+ [1m[36m (304.2ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.5ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (1.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (13.6ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.7ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-05-01 12:44:55.450988' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.9ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (1.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 119ms (Views: 112.4ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.5ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (1.2ms)[0m [1mUPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-05-01 12:44:55.852547' WHERE "ominous_closers"."id" = 1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.5ms)[0m INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 01 May 2013 12:44:55 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Wed, 01 May 2013 12:44:55 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 1.6ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mDELETE FROM "things" WHERE "things"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things
+Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (1.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered things/_form.html.erb (6.1ms)
+Completed 200 OK in 49ms (Views: 46.8ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.8ms)
+Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.4ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (64.5ms)
+Completed 200 OK in 74ms (Views: 72.0ms | ActiveRecord: 0.7ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Warning Load (1.5ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.7ms)
+Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 2.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (1.9ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 1.9ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/1
+Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (2.4ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 2.4ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (6.0ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (3.5ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (5.5ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-05-01 12:50:41', '2013-05-01 12:50:41')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-05-01 12:50:41', '2013-05-01 12:50:41')
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-05-01 12:50:41', '2013-05-01 12:50:41', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-05-01 12:50:41', '2013-05-01 12:50:41', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-05-01 12:50:41', '2013-05-01 12:50:41', 113629430)
+ [1m[36mFixture Delete (1.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-05-01 12:50:41', '2013-05-01 12:50:41')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-05-01 12:50:41', '2013-05-01 12:50:41')[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-05-01 12:50:41', '2013-05-01 12:50:41')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-05-01 12:50:41', '2013-05-01 12:50:41')
+ [1m[36m (186.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.3ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.3ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (5.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (3.1ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.1ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (5.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-05-01 12:50:42.019467' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (5.3ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 89ms (Views: 84.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (1.9ms)[0m [1mUPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-05-01 12:50:42.255525' WHERE "ominous_closers"."id" = 1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (7.2ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (2.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 01 May 2013 12:50:42 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Wed, 01 May 2013 12:50:42 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/3
+Completed 302 Found in 29ms (ActiveRecord: 0.7ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (5.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (7.4ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (8.4ms)[0m [1mDELETE FROM "things" WHERE "things"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things
+Completed 302 Found in 29ms (ActiveRecord: 8.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered things/_form.html.erb (52.3ms)
+Completed 200 OK in 208ms (Views: 206.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (13.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 44ms (Views: 38.2ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (21.7ms)
+Completed 200 OK in 31ms (Views: 25.8ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (149.3ms)
+Completed 200 OK in 187ms (Views: 185.1ms | ActiveRecord: 0.6ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (7.8ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (10.1ms)
+Completed 200 OK in 41ms (Views: 31.9ms | ActiveRecord: 0.6ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Completed 200 OK in 18ms (Views: 7.6ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (11.9ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/1
+Completed 302 Found in 17ms (ActiveRecord: 12.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.2ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (2.0ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.3ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (1.0ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-05-01 14:17:34', '2013-05-01 14:17:34')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-05-01 14:17:34', '2013-05-01 14:17:34')
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-05-01 14:17:34', '2013-05-01 14:17:34', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-05-01 14:17:34', '2013-05-01 14:17:34', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-05-01 14:17:34', '2013-05-01 14:17:34', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-05-01 14:17:34', '2013-05-01 14:17:34')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-05-01 14:17:34', '2013-05-01 14:17:34')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-05-01 14:17:34', '2013-05-01 14:17:34')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-05-01 14:17:34', '2013-05-01 14:17:34')
+ [1m[36m (195.1ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (1.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.7ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.3ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (1.5ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-05-01 14:17:34.656850' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 38ms (Views: 35.5ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (1.0ms)[0m [1mUPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-05-01 14:17:34.754677' WHERE "ominous_closers"."id" = 1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.5ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (3.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.9ms)[0m INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 01 May 2013 14:17:34 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Wed, 01 May 2013 14:17:34 UTC +00:00]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/3
+Completed 302 Found in 9ms (ActiveRecord: 2.0ms)
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mDELETE FROM "things" WHERE "things"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered things/_form.html.erb (5.2ms)
+Completed 200 OK in 43ms (Views: 41.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.5ms)
+Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (1.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (42.4ms)
+Completed 200 OK in 50ms (Views: 47.9ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.7ms)
+Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/1
+Completed 302 Found in 7ms (ActiveRecord: 0.3ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 15ms (Views: 13.7ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction