test/dummy/log/test.log in ominous-0.0.1 vs test/dummy/log/test.log in ominous-0.0.2
- old
+ new
@@ -16540,5 +16540,806 @@
[1m[35m (1.6ms)[0m SAVEPOINT active_record_1
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
Redirected to http://test.host/things/1
Completed 302 Found in 6ms (ActiveRecord: 2.4ms)
[1m[35m (0.3ms)[0m ROLLBACK
+Connecting to database specified by database.yml
+ [1m[36m (0.4ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
+ [1m[35m (0.3ms)[0m SET FOREIGN_KEY_CHECKS = 0
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM `ominous_warnings`
+ [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 15:30:34', '2012-12-10 15:30:34')[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 15:30:34', '2012-12-10 15:30:34')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM `ominous_warning_closers`[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 15:30:34', '2012-12-10 15:30:34', 980190962)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 15:30:34', '2012-12-10 15:30:34', 298486374)[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 15:30:34', '2012-12-10 15:30:34', 113629430)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM `ominous_closers`[0m
+ [1m[35mFixture Insert (0.7ms)[0m INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 15:30:34', '2012-12-10 15:30:34')
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 15:30:34', '2012-12-10 15:30:34')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM `things`
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 15:30:34', '2012-12-10 15:30:34')[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 15:30:34', '2012-12-10 15:30:34')
+ [1m[36m (56.0ms)[0m [1mCOMMIT[0m
+ [1m[35m (3.3ms)[0m SET FOREIGN_KEY_CHECKS = 1
+ [1m[36m (2.5ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (2.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (1.5ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.8ms)[0m SELECT COUNT(*) FROM `ominous_warning_closers`
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Load (0.9ms)[0m SELECT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1) ORDER BY ominous_warning_closers.position DESC LIMIT 1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO `ominous_warning_closers` (`closer_id`, `created_at`, `position`, `updated_at`, `warning_id`) VALUES (1, '2012-12-10 15:30:34', 3, '2012-12-10 15:30:34', 1)[0m
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `ominous_warning_closers` [0m
+ [1m[35m (31.4ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Exists (8.2ms)[0m SELECT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (7.0ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.4ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (1.5ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (5.1ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.7ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.5ms)[0m [1mSELECT DISTINCT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_warning_closers`.`closer_id` = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (7.6ms)[0m [1mUPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)[0m
+ [1m[35m (0.5ms)[0m UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:30:35' WHERE `ominous_warning_closers`.`id` = 298486374
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)[0m
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.6ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
+ [1m[36m (42.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.8ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.4ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Warning Exists (0.6ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Warning Exists (0.6ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ Rendered text template (0.0ms)
+Completed 200 OK in 45ms (Views: 42.1ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.6ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM `things`
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 15:30:35', NULL, 'Foo', '2012-12-10 15:30:35')
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/5
+Completed 302 Found in 10ms (ActiveRecord: 1.2ms)
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
+ [1m[36m (47.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (4.9ms)[0m BEGIN
+ [1m[36mThing Load (3.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (1.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.9ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35m (1.2ms)[0m SELECT COUNT(*) FROM `things`
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mDELETE FROM `things` WHERE `things`.`id` = 1[0m
+ [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things
+Completed 302 Found in 9ms (ActiveRecord: 2.2ms)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
+ [1m[35m (40.5ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.9ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (2.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ Rendered things/_form.html.erb (12.9ms)
+ [1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.7ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.7ms)
+Completed 200 OK in 44ms (Views: 39.6ms | ActiveRecord: 1.7ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` [0m
+Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (4.6ms)
+Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.4ms)[0m SELECT `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 (3.3ms)
+Completed 200 OK in 42ms (Views: 38.6ms | ActiveRecord: 1.5ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (1.8ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (4.1ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 4.1ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (1.9ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (4.6ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Exists (6.8ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (3.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.4ms)
+Completed 200 OK in 23ms (Views: 9.1ms | ActiveRecord: 11.0ms)
+ [1m[35m (1.1ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (1.7ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.6ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Exists (0.4ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.8ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (3.8ms)[0m BEGIN
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (1.0ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (1.0ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[35mThing Load (0.7ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/1
+Completed 302 Found in 17ms (ActiveRecord: 1.4ms)
+ [1m[36m (0.5ms)[0m [1mROLLBACK[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.5ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
+ [1m[35m (7.7ms)[0m SET FOREIGN_KEY_CHECKS = 0
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (0.9ms)[0m DELETE FROM `ominous_warnings`
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 15:31:02', '2012-12-10 15:31:02')[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 15:31:02', '2012-12-10 15:31:02')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM `ominous_warning_closers`[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 15:31:02', '2012-12-10 15:31:02', 980190962)
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 15:31:02', '2012-12-10 15:31:02', 298486374)[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 15:31:02', '2012-12-10 15:31:02', 113629430)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM `ominous_closers`[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 15:31:02', '2012-12-10 15:31:02')
+ [1m[36mFixture Insert (2.0ms)[0m [1mINSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 15:31:02', '2012-12-10 15:31:02')[0m
+ [1m[35mFixture Delete (0.3ms)[0m DELETE FROM `things`
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 15:31:02', '2012-12-10 15:31:02')[0m
+ [1m[35mFixture Insert (1.2ms)[0m INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 15:31:02', '2012-12-10 15:31:02')
+ [1m[36m (50.8ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m SET FOREIGN_KEY_CHECKS = 1
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.7ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.7ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.7ms)[0m SELECT COUNT(*) FROM `ominous_warning_closers`
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Load (7.0ms)[0m SELECT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1) ORDER BY ominous_warning_closers.position DESC LIMIT 1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO `ominous_warning_closers` (`closer_id`, `created_at`, `position`, `updated_at`, `warning_id`) VALUES (1, '2012-12-10 15:31:02', 3, '2012-12-10 15:31:02', 1)[0m
+ [1m[35m (4.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `ominous_warning_closers` [0m
+ [1m[35m (32.5ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (2.1ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Exists (0.7ms)[0m SELECT DISTINCT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.6ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.4ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (2.7ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.6ms)[0m [1mSELECT DISTINCT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_warning_closers`.`closer_id` = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.5ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mUPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)[0m
+ [1m[35m (0.6ms)[0m UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:31:02' WHERE `ominous_warning_closers`.`id` = 298486374
+ [1m[36m (4.0ms)[0m [1mSELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)[0m
+ [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.7ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
+ [1m[36m (41.8ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36m (0.7ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Warning Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Warning Exists (0.4ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mOminous::Warning Load (0.6ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ Rendered text template (0.0ms)
+Completed 200 OK in 47ms (Views: 44.1ms | ActiveRecord: 0.6ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36m (0.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.8ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 15:31:03', NULL, 'Foo', '2012-12-10 15:31:03')
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/6
+Completed 302 Found in 13ms (ActiveRecord: 1.5ms)
+ [1m[35m (1.4ms)[0m SELECT COUNT(*) FROM `things`
+ [1m[36m (41.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (1.1ms)[0m BEGIN
+ [1m[36mThing Load (3.0ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (1.7ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (1.2ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.5ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.7ms)[0m [1mDELETE FROM `things` WHERE `things`.`id` = 1[0m
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things
+Completed 302 Found in 7ms (ActiveRecord: 1.9ms)
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
+ [1m[35m (42.2ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ Rendered things/_form.html.erb (10.8ms)
+ [1m[35mOminous::Warning Load (0.6ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.8ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.5ms)
+Completed 200 OK in 36ms (Views: 32.6ms | ActiveRecord: 1.7ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` [0m
+Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (1.7ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.0ms)
+Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.6ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.5ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.7ms)
+Completed 200 OK in 40ms (Views: 36.5ms | ActiveRecord: 1.4ms)
+ [1m[36m (0.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.6ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Exists (0.4ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.7ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.6ms)
+Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 2.0ms)
+ [1m[35m (1.2ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.6ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.6ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.7ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (4.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Exists (4.6ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+Completed 200 OK in 14ms (Views: 2.0ms | ActiveRecord: 9.1ms)
+ [1m[36m (5.2ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (5.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[35mThing Load (1.0ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/1
+Completed 302 Found in 8ms (ActiveRecord: 2.0ms)
+ [1m[36m (1.4ms)[0m [1mROLLBACK[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.7ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
+ [1m[35m (0.3ms)[0m SET FOREIGN_KEY_CHECKS = 0
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (1.3ms)[0m DELETE FROM `ominous_warnings`
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 15:58:09', '2012-12-10 15:58:09')[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 15:58:09', '2012-12-10 15:58:09')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM `ominous_warning_closers`[0m
+ [1m[35mFixture Insert (0.6ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 15:58:10', '2012-12-10 15:58:10', 980190962)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 15:58:10', '2012-12-10 15:58:10', 298486374)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 15:58:10', '2012-12-10 15:58:10', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM `ominous_closers`[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 15:58:10', '2012-12-10 15:58:10')
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 15:58:10', '2012-12-10 15:58:10')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM `things`
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 15:58:10', '2012-12-10 15:58:10')[0m
+ [1m[35mFixture Insert (0.5ms)[0m INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 15:58:10', '2012-12-10 15:58:10')
+ [1m[36m (80.5ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.8ms)[0m SET FOREIGN_KEY_CHECKS = 1
+ [1m[36m (1.2ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (1.9ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.9ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35m (1.3ms)[0m SELECT COUNT(*) FROM `ominous_warning_closers`
+ [1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.7ms)[0m SELECT 1 AS one FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`closer_id` = BINARY 1 AND `ominous_warning_closers`.`warning_id` = 1) LIMIT 1
+ [1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (4.1ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.4ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Exists (0.7ms)[0m SELECT DISTINCT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.4ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.8ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (1.6ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (7.6ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.4ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.5ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.9ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.6ms)[0m [1mSELECT DISTINCT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_warning_closers`.`closer_id` = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mUPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.7ms)[0m SELECT 1 AS one FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`closer_id` = BINARY 2 AND `ominous_warning_closers`.`id` != 298486374 AND `ominous_warning_closers`.`warning_id` = 1) LIMIT 1
+ [1m[36m (0.6ms)[0m [1mUPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:58:10' WHERE `ominous_warning_closers`.`id` = 298486374[0m
+ [1m[35m (3.5ms)[0m SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)
+ [1m[36m (7.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (2.8ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.9ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
+ [1m[35m (67.9ms)[0m ROLLBACK
+ [1m[36m (1.0ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (1.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (9.2ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35m (3.1ms)[0m ROLLBACK
+ [1m[36m (0.6ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (2.0ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Warning Exists (0.8ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+ [1m[36m (0.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.7ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.5ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Warning Exists (0.7ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (1.1ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.7ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ Rendered text template (0.0ms)
+Completed 200 OK in 40ms (Views: 37.4ms | ActiveRecord: 0.7ms)
+ [1m[35m (0.7ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (1.8ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (1.6ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 15:58:10', NULL, 'Foo', '2012-12-10 15:58:10')[0m
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/7
+Completed 302 Found in 10ms (ActiveRecord: 2.5ms)
+ [1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
+ [1m[35m (45.7ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.7ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (1.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m DELETE FROM `things` WHERE `things`.`id` = 1
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 6ms (ActiveRecord: 1.6ms)
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
+ [1m[36m (46.5ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ Rendered things/_form.html.erb (3.9ms)
+ [1m[36mOminous::Warning Load (2.7ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (1.2ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (11.2ms)
+Completed 200 OK in 35ms (Views: 28.8ms | ActiveRecord: 4.4ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.6ms)[0m SELECT `things`.* FROM `things`
+Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (1.6ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.8ms)
+Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (28.2ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.5ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.8ms)
+Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 1.6ms)
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (6.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.5ms)
+ [1m[35m (9.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (1.1ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (4.2ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Exists (0.4ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.6ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (4.1ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (12.8ms)
+Completed 200 OK in 24ms (Views: 11.8ms | ActiveRecord: 9.3ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (1.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (3.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (2.9ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+Completed 200 OK in 6ms (Views: 1.4ms | ActiveRecord: 2.9ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (1.8ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (2.6ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (1.0ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Exists (3.6ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 10ms (Views: 2.2ms | ActiveRecord: 4.5ms)
+ [1m[35m (4.1ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (1.1ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (2.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36m (2.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 13ms (ActiveRecord: 3.9ms)
+ [1m[35m (2.7ms)[0m ROLLBACK
+Connecting to database specified by database.yml
+ [1m[36m (0.4ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
+ [1m[35m (0.3ms)[0m SET FOREIGN_KEY_CHECKS = 0
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM `ominous_warnings`
+ [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 15:58:56', '2012-12-10 15:58:56')[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 15:58:56', '2012-12-10 15:58:56')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM `ominous_warning_closers`[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 15:58:56', '2012-12-10 15:58:56', 980190962)
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 15:58:56', '2012-12-10 15:58:56', 298486374)[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 15:58:56', '2012-12-10 15:58:56', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM `ominous_closers`[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 15:58:56', '2012-12-10 15:58:56')
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 15:58:56', '2012-12-10 15:58:56')[0m
+ [1m[35mFixture Delete (0.9ms)[0m DELETE FROM `things`
+ [1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 15:58:56', '2012-12-10 15:58:56')[0m
+ [1m[35mFixture Insert (1.8ms)[0m INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 15:58:56', '2012-12-10 15:58:56')
+ [1m[36m (43.9ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 1
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (5.0ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.5ms)[0m SAVEPOINT active_record_1
+ [1m[36mOminous::WarningCloser Exists (0.6ms)[0m [1mSELECT 1 AS one FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`closer_id` = BINARY 1 AND `ominous_warning_closers`.`warning_id` = 1) LIMIT 1[0m
+ [1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Exists (0.8ms)[0m [1mSELECT 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[0m
+ [1m[35m (0.5ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.7ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.4ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Closer Load (0.6ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
+ [1m[35mOminous::WarningCloser Load (1.7ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.6ms)[0m UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)
+ [1m[36mOminous::WarningCloser Exists (0.6ms)[0m [1mSELECT 1 AS one FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`closer_id` = BINARY 2 AND `ominous_warning_closers`.`id` != 298486374 AND `ominous_warning_closers`.`warning_id` = 1) LIMIT 1[0m
+ [1m[35m (0.7ms)[0m UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:58:56' WHERE `ominous_warning_closers`.`id` = 298486374
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)[0m
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.6ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
+ [1m[36m (41.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.9ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.6ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Warning Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.6ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.5ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Warning Exists (0.4ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ Rendered text template (0.0ms)
+Completed 200 OK in 36ms (Views: 34.2ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.5ms)[0m BEGIN
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.7ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 15:58:56', NULL, 'Foo', '2012-12-10 15:58:56')
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/8
+Completed 302 Found in 11ms (ActiveRecord: 1.0ms)
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
+ [1m[36m (47.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `things`
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mDELETE FROM `things` WHERE `things`.`id` = 1[0m
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
+ [1m[35m (40.0ms)[0m ROLLBACK
+ [1m[36m (2.6ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (1.0ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.8ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.6ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ Rendered things/_form.html.erb (4.3ms)
+ [1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.8ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.6ms)
+Completed 200 OK in 32ms (Views: 28.7ms | ActiveRecord: 1.7ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.6ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` [0m
+Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.3ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (4.3ms)
+Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.3ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.4ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.6ms)
+Completed 200 OK in 13ms (Views: 9.7ms | ActiveRecord: 1.2ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.2ms)[0m BEGIN
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.7ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (2.9ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Exists (0.4ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Warning Load (3.7ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (4.7ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.3ms)
+Completed 200 OK in 21ms (Views: 6.2ms | ActiveRecord: 11.6ms)
+ [1m[35m (0.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (1.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (4.0ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (3.9ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 3.9ms)
+ [1m[35m (5.4ms)[0m ROLLBACK
+ [1m[36m (0.3ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (6.2ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
+ [1m[35mOminous::Warning Exists (0.4ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+Completed 200 OK in 10ms (Views: 2.0ms | ActiveRecord: 6.6ms)
+ [1m[36m (10.7ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[35mThing Load (5.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/1
+Completed 302 Found in 12ms (ActiveRecord: 6.0ms)
+ [1m[36m (0.4ms)[0m [1mROLLBACK[0m