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 @@ Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things" Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (3.8ms) begin transaction + Fixture Delete (1.1ms) DELETE FROM "ominous_warnings" + Fixture Insert (9.2ms) INSERT 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') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) 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) + Fixture Insert (0.1ms) INSERT 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) + Fixture Insert (0.1ms) 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) + Fixture Delete (0.6ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) 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') + Fixture Insert (0.1ms) INSERT 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') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (145.0ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.9ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (6.0ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.5ms) 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 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) 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 + Ominous::WarningCloser Load (0.2ms) SELECT 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 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.2ms) 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 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-02-18 10:54:43.407768' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.4ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) 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 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 104ms (Views: 103.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.0ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 4.2ms) +  (0.2ms) SELECT COUNT(*) FROM "things"  +  (0.5ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.1ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.2ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) 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) +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) 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.6ms) +Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) 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 (66.7ms) +Completed 200 OK in 77ms (Views: 74.2ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.8ms) 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) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) 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"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 5ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (0.8ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT 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') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) 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) + Fixture Insert (0.1ms) INSERT 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) + Fixture Insert (0.1ms) 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) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) 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') + Fixture Insert (0.1ms) INSERT 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') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (1.9ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (133.0ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.4ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) 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 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (2.3ms) 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 + Ominous::WarningCloser Load (0.1ms) SELECT 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 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.2ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) 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 +  (0.2ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-02-18 11:22:23.809329' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) 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 +  (0.6ms) rollback transaction +  (0.2ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 36ms (Views: 34.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) 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 +  (0.0ms) SAVEPOINT active_record_1 +  (3.8ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-02-18 11:22:23.897089' WHERE "ominous_closers"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) 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 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.9ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (5.6ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 12ms (ActiveRecord: 5.8ms) +  (4.4ms) SELECT COUNT(*) FROM "things" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (3.6ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 6ms (ActiveRecord: 4.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.2ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (8.1ms) +Completed 200 OK in 81ms (Views: 76.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things"  +Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) 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) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (1.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) 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) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (6.7ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) 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 (2.3ms) +Completed 200 OK in 25ms (Views: 16.3ms | ActiveRecord: 7.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.3ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (1.8ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.2ms) 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"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (3.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things"  +Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (3.7ms) begin transaction + Fixture Delete (3.9ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT 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') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.1ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) 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) + Fixture Insert (0.1ms) INSERT 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) + Fixture Insert (0.1ms) 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) + Fixture Delete (0.1ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) 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') + Fixture Insert (0.1ms) INSERT 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') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (119.7ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (1.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (1.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) 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 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (1.4ms) 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 + Ominous::WarningCloser Load (0.2ms) SELECT 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 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) 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 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-02-18 11:22:37.477554' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (1.3ms) 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 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 80ms (Views: 77.6ms | ActiveRecord: 0.4ms) +  (0.2ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) 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 +  (0.0ms) SAVEPOINT active_record_1 +  (0.9ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-02-18 11:22:37.605460' WHERE "ominous_closers"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (1.9ms) 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 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.4ms) 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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 9ms (ActiveRecord: 1.5ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.1ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 6ms (ActiveRecord: 1.4ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.7ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (4.1ms) +Completed 200 OK in 47ms (Views: 45.7ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things"  +Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.3ms) 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) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) 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) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.6ms) 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 (2.9ms) +Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) 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"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (3.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 10ms (ActiveRecord: 3.4ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things"  +Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.9ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT 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') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) 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) + Fixture Insert (0.1ms) INSERT 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) + Fixture Insert (0.1ms) 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) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) 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') + Fixture Insert (0.1ms) INSERT 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') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.0ms) 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') +  (177.4ms) commit transaction +  (0.3ms) begin transaction + Ominous::Warning Load (0.9ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (2.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) 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 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) 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 + Ominous::WarningCloser Load (0.3ms) SELECT 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 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.3ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) 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 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-02-18 11:22:50.204064' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (2.3ms) 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 42ms (Views: 40.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) 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 +  (0.1ms) SAVEPOINT active_record_1 +  (0.8ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-02-18 11:22:50.295013' WHERE "ominous_closers"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) 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 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 9ms (ActiveRecord: 1.6ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.7ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (2.6ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (4.3ms) +Completed 200 OK in 48ms (Views: 46.9ms | ActiveRecord: 0.1ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things"  +Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) 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) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (1.6ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) 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.0ms) +Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 2.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.7ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.7ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) 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"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 7ms (ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.7ms) SELECT "things".* FROM "things"  +Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (1.7ms) begin transaction + Fixture Delete (1.6ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.9ms) INSERT 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') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.8ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) 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) + Fixture Insert (0.1ms) INSERT 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) + Fixture Insert (0.1ms) 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) + Fixture Delete (0.6ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) 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') + Fixture Insert (0.1ms) INSERT 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') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.2ms) 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') +  (304.2ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.5ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (1.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (13.6ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) 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 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) 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 + Ominous::WarningCloser Load (0.2ms) SELECT 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 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) 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 +  (0.7ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-05-01 12:44:55.450988' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.2ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.9ms) 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 +  (1.4ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 119ms (Views: 112.4ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.5ms) 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 +  (0.1ms) SAVEPOINT active_record_1 +  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-05-01 12:44:55.852547' WHERE "ominous_closers"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) 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 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 1.6ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.6ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (1.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (6.1ms) +Completed 200 OK in 49ms (Views: 46.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things"  +Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) 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) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.4ms) 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) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (1.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) 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 (2.7ms) +Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 2.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (1.9ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) 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"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 5ms (ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (2.4ms) SELECT "things".* FROM "things"  +Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 2.4ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (6.0ms) begin transaction + Fixture Delete (3.5ms) DELETE FROM "ominous_warnings" + Fixture Insert (5.5ms) INSERT 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') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.6ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) 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) + Fixture Insert (0.1ms) INSERT 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) + Fixture Insert (0.1ms) 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) + Fixture Delete (1.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.2ms) 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') + Fixture Insert (0.1ms) INSERT 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') + Fixture Delete (0.6ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (186.4ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.3ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.3ms) 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 +  (0.1ms) rollback transaction +  (5.2ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) 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 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.3ms) 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 + Ominous::WarningCloser Load (3.1ms) SELECT 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 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.1ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (5.1ms) 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 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-05-01 12:50:42.019467' WHERE "ominous_warning_closers"."id" = 298486374 +  (5.3ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) 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 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 89ms (Views: 84.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) 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 +  (0.1ms) SAVEPOINT active_record_1 +  (1.9ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-05-01 12:50:42.255525' WHERE "ominous_closers"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (7.2ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) 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 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (2.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 29ms (ActiveRecord: 0.7ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (5.5ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (7.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (8.4ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 29ms (ActiveRecord: 8.6ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (52.3ms) +Completed 200 OK in 208ms (Views: 206.3ms | ActiveRecord: 0.1ms) +  (0.2ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (13.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things"  +Completed 200 OK in 44ms (Views: 38.2ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (7.8ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) 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 (10.1ms) +Completed 200 OK in 41ms (Views: 31.9ms | ActiveRecord: 0.6ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.2ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) 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"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (11.9ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 17ms (ActiveRecord: 12.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things"  +Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +Connecting to database specified by database.yml +  (2.0ms) begin transaction + Fixture Delete (1.3ms) DELETE FROM "ominous_warnings" + Fixture Insert (1.0ms) INSERT 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') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.6ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) 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) + Fixture Insert (0.1ms) INSERT 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) + Fixture Insert (0.1ms) 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) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) 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') + Fixture Insert (0.1ms) INSERT 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') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (195.1ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (1.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.3ms) 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 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (1.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) 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 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) 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 + Ominous::WarningCloser Load (0.2ms) SELECT 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 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) 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 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-05-01 14:17:34.656850' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) 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 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 38ms (Views: 35.5ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) 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 +  (0.1ms) SAVEPOINT active_record_1 +  (1.0ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-05-01 14:17:34.754677' WHERE "ominous_closers"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.5ms) 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 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (3.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.9ms) 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 9ms (ActiveRecord: 2.0ms) +  (0.2ms) SELECT COUNT(*) FROM "things" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.9ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.5ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.5ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (5.2ms) +Completed 200 OK in 43ms (Views: 41.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things"  +Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.2ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) 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) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (1.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) 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) +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) 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.7ms) +Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) 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"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 7ms (ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things"  +Completed 200 OK in 15ms (Views: 13.7ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction