test/dummy/log/test.log in ominous-0.0.4 vs test/dummy/log/test.log in ominous-0.0.5
- old
+ new
@@ -23444,5 +23444,6041 @@
[1m[35mOminous::Warning Exists (0.8ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
Processing by ThingsController#index as HTML
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` [0m
Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.4ms)
[1m[35m (0.4ms)[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.7ms)[0m [1mINSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-31 12:41:57', '2013-01-31 12:41:57')[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-31 12:41:57', '2013-01-31 12:41:57')
+ [1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM `ominous_warning_closers`[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-31 12:41:57', '2013-01-31 12:41:57', 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, '2013-01-31 12:41:57', '2013-01-31 12:41:57', 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, '2013-01-31 12:41:57', '2013-01-31 12:41:57', 113629430)
+ [1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM `ominous_closers`[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-31 12:41:57', '2013-01-31 12:41:57')
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-31 12:41:57', '2013-01-31 12:41:57')[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, '2013-01-31 12:41:57', '2013-01-31 12:41:57')[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-31 12:41:57', '2013-01-31 12:41:57')
+ [1m[36m (93.6ms)[0m [1mCOMMIT[0m
+ [1m[35m (0.3ms)[0m SET FOREIGN_KEY_CHECKS = 1
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (1.1ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Closer Load (0.8ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mOminous::WarningCloser Exists (0.8ms)[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.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::Closer Exists (1.0ms)[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.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.4ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (1.0ms)[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.2ms)[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.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.5ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 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
+ [1m[35mOminous::WarningCloser Load (1.4ms)[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.5ms)[0m UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)
+ [1m[36mOminous::WarningCloser Exists (0.5ms)[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 (3.3ms)[0m UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-31 12:41:58' WHERE `ominous_warning_closers`.`id` = 298486374
+ [1m[36m (7.7ms)[0m [1mSELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)[0m
+ [1m[35m (0.4ms)[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.8ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
+ [1m[36m (58.9ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.9ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (1.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35mOminous::Closer Load (1.0ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
+ [1m[36m (1.1ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.8ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (3.5ms)[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[36mOminous::Warning Exists (0.8ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
+ [1m[35m (0.5ms)[0m ROLLBACK
+ [1m[36m (0.4ms)[0m [1mBEGIN[0m
+ [1m[35mOminous::Warning Load (0.9ms)[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.7ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1
+ [1m[36m (1.0ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.4ms)[0m BEGIN
+ [1m[36mOminous::Warning Load (0.8ms)[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 54ms (Views: 52.0ms | 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.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
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[36m (2.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-31 12:41:58', NULL, 'Foo', '2013-01-31 12:41:58')
+ [1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 2.9ms)
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
+ [1m[36m (47.7ms)[0m [1mROLLBACK[0m
+ [1m[35m (0.3ms)[0m BEGIN
+ [1m[36mThing Load (1.0ms)[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 (4.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.6ms)[0m SELECT COUNT(*) FROM `things`
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (5.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ [1m[35m (0.4ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[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 10ms (ActiveRecord: 6.5ms)
+ [1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
+ [1m[35m (38.5ms)[0m ROLLBACK
+ [1m[36m (0.2ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.6ms)[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 (1.0ms)[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 (4.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+ Rendered things/_form.html.erb (5.1ms)
+Completed 200 OK in 23ms (Views: 16.5ms | ActiveRecord: 4.5ms)
+ [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 (1.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#index as HTML
+ [1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` [0m
+Completed 200 OK in 13ms (Views: 11.1ms | ActiveRecord: 0.6ms)
+ [1m[35m (1.1ms)[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 (1.7ms)[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 (3.7ms)
+Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.4ms)[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.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.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mOminous::Warning Load (0.8ms)[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 (44.2ms)
+Completed 200 OK in 53ms (Views: 49.1ms | ActiveRecord: 2.6ms)
+ [1m[36m (0.6ms)[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.4ms)[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.7ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.5ms)[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.4ms)[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 (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 (2.2ms)[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 (3.8ms)
+Completed 200 OK in 13ms (Views: 7.1ms | ActiveRecord: 3.6ms)
+ [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.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.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
+Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.5ms)[0m ROLLBACK
+ [1m[36m (0.5ms)[0m [1mBEGIN[0m
+ [1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36mThing Load (0.7ms)[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#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.8ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+Completed 200 OK in 10ms (Views: 2.3ms | ActiveRecord: 1.2ms)
+ [1m[36m (0.5ms)[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#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
+ [1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/1
+Completed 302 Found in 6ms (ActiveRecord: 1.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
+ [1m[35mOminous::Warning Exists (5.1ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (2.1ms)[0m [1mSELECT `things`.* FROM `things` [0m
+Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 2.1ms)
+ [1m[35m (0.4ms)[0m ROLLBACK
+Connecting to database specified by database.yml
+ [1m[36m (1.8ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (1.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (1.5ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.8ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.4ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (2.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (5.2ms)[0m [1mselect sqlite_version(*)[0m
+ [1m[35m (155.2ms)[0m CREATE TABLE "ominous_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "url" varchar(255), "closure_method" varchar(30), "start_hidden" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (130.1ms)[0m [1mCREATE TABLE "ominous_warning_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "warning_id" integer, "closer_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
+ [1m[35m (115.4ms)[0m CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (106.6ms)[0m [1mCREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "has_warning" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
+ [1m[35m (107.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
+ [1m[36m (107.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (90.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121207090710')[0m
+Connecting to database specified by database.yml
+ [1m[36m (1.7ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.1ms)[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', '2013-01-31 12:56:00', '2013-01-31 12:56:00')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "created_at", "updated_at") VALUES (2, 'other_alert', '2013-01-31 12:56:00', '2013-01-31 12:56:00')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 12:56:00', '2013-01-31 12:56:00', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 12:56:00', '2013-01-31 12:56:00', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 12:56:00', '2013-01-31 12:56:00', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-31 12:56:00', '2013-01-31 12:56:00')
+ [1m[36mFixture Insert (1.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-31 12:56:00', '2013-01-31 12:56:00')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 12:56:00', '2013-01-31 12:56:00')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 12:56:00', '2013-01-31 12:56:00')
+ [1m[36m (138.3ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.3ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.5ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.2ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 12:56:01.168593' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (2.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 35ms (Views: 33.6ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 12:56:01 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 12:56:01 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 9ms (ActiveRecord: 1.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (1.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (4.8ms)
+Completed 200 OK in 38ms (Views: 35.4ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.4ms)
+Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.5ms)
+Completed 200 OK in 17ms (Views: 14.5ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.7ms)
+Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (1.0ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (3.3ms)[0m [1mselect sqlite_version(*)[0m
+ [1m[35m (151.6ms)[0m CREATE TABLE "ominous_warning_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "warning_id" integer, "closer_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (182.1ms)[0m [1mCREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "has_warning" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
+ [1m[35m (158.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
+ [1m[36m (141.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
+ [1m[36m (146.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20130131131934')[0m
+ [1m[35m (133.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121207090710')
+ [1m[36m (132.5ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121206144249')[0m
+ [1m[35m (133.5ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20121206153254')
+ [1m[36m (107.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121206145743')[0m
+ [1m[35m (99.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20130131131756')
+Connecting to database specified by database.yml
+ [1m[36m (4.5ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (0.7ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (2.6ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
+ [1m[35m (162.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
+ [1m[36m (140.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+Migrating to CreateThings (20121207090710)
+ [1m[35m (0.1ms)[0m select sqlite_version(*)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (4.8ms)[0m CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "has_warning" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121207090710')[0m
+ [1m[35m (200.7ms)[0m commit transaction
+Migrating to CreateOminousWarnings (20130131132533)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (3.5ms)[0m CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130131132533')[0m
+ [1m[35m (168.9ms)[0m commit transaction
+Migrating to CreateOminousWarningClosers (20130131132534)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.7ms)[0m CREATE TABLE "ominous_warning_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "warning_id" integer, "closer_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130131132534')[0m
+ [1m[35m (163.7ms)[0m commit transaction
+Migrating to CreateOminousClosers (20130131132535)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (8.2ms)[0m CREATE TABLE "ominous_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "url" varchar(255), "closure_method" varchar(30), "start_hidden" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130131132535')[0m
+ [1m[35m (150.2ms)[0m commit transaction
+Migrating to AddTitleAndDescriptionToOminousWarnings (20130131132536)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (1.6ms)[0m ALTER TABLE "ominous_warnings" ADD "string" title
+ [1m[36m (1.3ms)[0m [1mALTER TABLE "ominous_warnings" ADD "text" description[0m
+ [1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130131132536')
+ [1m[36m (154.8ms)[0m [1mcommit transaction[0m
+Migrating to AddLinkTextAndMessageToOminousClosers (20130131132537)
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36m (5.2ms)[0m [1mALTER TABLE "ominous_closers" ADD "string" link_text[0m
+ [1m[35m (0.4ms)[0m ALTER TABLE "ominous_closers" ADD "text" message
+ [1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130131132537')[0m
+ [1m[35m (162.3ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+Connecting to database specified by database.yml
+ [1m[36m (5.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.6ms)[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', '2013-01-31 13:28:43', '2013-01-31 13:28:43')[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "created_at", "updated_at") VALUES (2, 'other_alert', '2013-01-31 13:28:43', '2013-01-31 13:28:43')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:28:44', '2013-01-31 13:28:44', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:28:44', '2013-01-31 13:28:44', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:28:44', '2013-01-31 13:28:44', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-31 13:28:44', '2013-01-31 13:28:44')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-31 13:28:44', '2013-01-31 13:28:44')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:28:44', '2013-01-31 13:28:44')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 13:28:44', '2013-01-31 13:28:44')
+ [1m[36m (172.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.8ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (1.9ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (1.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.1ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:28:44.450599' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 38ms (Views: 36.5ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 13:28:44 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 13:28:44 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 9ms (ActiveRecord: 1.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.0ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 8ms (ActiveRecord: 1.1ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (3.6ms)
+Completed 200 OK in 48ms (Views: 45.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.1ms)
+Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (9.0ms)
+Completed 200 OK in 17ms (Views: 15.2ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.9ms)
+Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (1.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (1.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (1.8ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 1.8ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (1.0ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.9ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (1.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.5ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.5ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (1.7ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (2.5ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (4.5ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.5ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29')
+ [1m[35m (0.4ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
+ [1m[35m (187.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
+ [1m[36m (191.6ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.3ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
+Migrating to CreateThings (20121207090710)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (1.6ms)[0m CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "has_warning" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (1.5ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121207090710')[0m
+ [1m[35m (186.7ms)[0m commit transaction
+Migrating to CreateOminousWarnings (20130131132533)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (8.5ms)[0m CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130131132533')[0m
+ [1m[35m (214.8ms)[0m commit transaction
+Migrating to CreateOminousWarningClosers (20130131132534)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (10.6ms)[0m CREATE TABLE "ominous_warning_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "warning_id" integer, "closer_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130131132534')[0m
+ [1m[35m (182.9ms)[0m commit transaction
+Migrating to CreateOminousClosers (20130131132535)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (2.1ms)[0m CREATE TABLE "ominous_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "url" varchar(255), "closure_method" varchar(30), "start_hidden" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130131132535')[0m
+ [1m[35m (194.0ms)[0m commit transaction
+Migrating to AddTitleAndDescriptionToOminousWarnings (20130131132536)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.6ms)[0m ALTER TABLE "ominous_warnings" ADD "string" title
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "ominous_warnings" ADD "text" description[0m
+ [1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130131132536')
+ [1m[36m (194.4ms)[0m [1mcommit transaction[0m
+Migrating to AddLinkTextAndMessageToOminousClosers (20130131132537)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.3ms)[0m [1mALTER TABLE "ominous_closers" ADD "string" link_text[0m
+ [1m[35m (0.2ms)[0m ALTER TABLE "ominous_closers" ADD "text" message
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130131132537')[0m
+ [1m[35m (171.6ms)[0m commit transaction
+ [1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+Connecting to database specified by database.yml
+ [1m[36m (1.0ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (2.6ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.6ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (2.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (3.3ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.9ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.8ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (2.6ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.7ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (2.0ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.5ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')[0m
+SQLite3::SQLException: table ominous_warnings has no column named title: INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34')
+ [1m[35m (0.4ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
+ [1m[35m (215.6ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
+ [1m[36m (163.7ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
+ [1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
+Migrating to CreateThings (20121207090710)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (1.8ms)[0m CREATE TABLE "things" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "has_warning" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (1.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121207090710')[0m
+ [1m[35m (160.1ms)[0m commit transaction
+Migrating to CreateOminousWarnings (20130131134020)
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.4ms)[0m CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130131134020')[0m
+ [1m[35m (169.3ms)[0m commit transaction
+Migrating to CreateOminousWarningClosers (20130131134021)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (3.0ms)[0m CREATE TABLE "ominous_warning_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "warning_id" integer, "closer_id" integer, "position" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130131134021')[0m
+ [1m[35m (146.8ms)[0m commit transaction
+Migrating to CreateOminousClosers (20130131134022)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (13.8ms)[0m CREATE TABLE "ominous_closers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "url" varchar(255), "closure_method" varchar(30), "start_hidden" boolean DEFAULT 'f', "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
+ [1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130131134022')[0m
+ [1m[35m (145.4ms)[0m commit transaction
+Migrating to AddTitleAndDescriptionToOminousWarnings (20130131134023)
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (6.1ms)[0m ALTER TABLE "ominous_warnings" ADD "title" varchar(255)
+ [1m[36m (0.7ms)[0m [1mALTER TABLE "ominous_warnings" ADD "description" text[0m
+ [1m[35m (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20130131134023')
+ [1m[36m (138.9ms)[0m [1mcommit transaction[0m
+Migrating to AddLinkTextAndMessageToOminousClosers (20130131134024)
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.5ms)[0m [1mALTER TABLE "ominous_closers" ADD "link_text" varchar(255)[0m
+ [1m[35m (0.2ms)[0m ALTER TABLE "ominous_closers" ADD "message" text
+ [1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20130131134024')[0m
+ [1m[35m (152.3ms)[0m commit transaction
+ [1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
+Connecting to database specified by database.yml
+ [1m[36m (0.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:40:58', '2013-01-31 13:40:58')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 13:40:58', '2013-01-31 13:40:58')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:40:58', '2013-01-31 13:40:58', 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, '2013-01-31 13:40:58', '2013-01-31 13:40:58', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:40:58', '2013-01-31 13:40:58', 113629430)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:40:58', '2013-01-31 13:40:58')
+ [1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:40:58', '2013-01-31 13:40:58')[0m
+ [1m[35mFixture Delete (2.8ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:40:58', '2013-01-31 13:40:58')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 13:40:58', '2013-01-31 13:40:58')
+ [1m[36m (192.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.5ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.7ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.2ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:40:58.858789' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (1.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.3ms)
+Completed 200 OK in 43ms (Views: 41.1ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 13:40:58 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 13:40:58 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 8ms (ActiveRecord: 1.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.5ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (2.5ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 7ms (ActiveRecord: 3.2ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (3.8ms)
+Completed 200 OK in 48ms (Views: 45.0ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.3ms)
+Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (11.6ms)
+Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.8ms)
+Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.7ms)
+ [1m[36m (0.2ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (2.6ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 7ms (ActiveRecord: 2.9ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (1.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:44:30', '2013-01-31 13:44:30')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 13:44:30', '2013-01-31 13:44:30')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:44:30', '2013-01-31 13:44:30', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:44:30', '2013-01-31 13:44:30', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:44:30', '2013-01-31 13:44:30', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:44:30', '2013-01-31 13:44:30')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:44:30', '2013-01-31 13:44:30')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:44:30', '2013-01-31 13:44:30')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 13:44:30', '2013-01-31 13:44:30')
+ [1m[36m (261.5ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (1.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.1ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:44:31.079244' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 40ms (Views: 38.6ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.2ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 13:44:31 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 13:44:31 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 22ms (ActiveRecord: 3.3ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (4.5ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (1.2ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.7ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (3.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 16ms (ActiveRecord: 11.2ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (4.1ms)
+Completed 200 OK in 62ms (Views: 60.4ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (5.1ms)
+Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (41.0ms)
+Completed 500 Internal Server Error in 49ms
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (1.6ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (1.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.3ms)
+Completed 500 Internal Server Error in 11ms
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.4ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:45:03', '2013-01-31 13:45:03')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 13:45:03', '2013-01-31 13:45:03')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:45:03', '2013-01-31 13:45:03', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:45:03', '2013-01-31 13:45:03', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:45:03', '2013-01-31 13:45:03', 113629430)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:45:03', '2013-01-31 13:45:03')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:45:03', '2013-01-31 13:45:03')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:45:03', '2013-01-31 13:45:03')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 13:45:03', '2013-01-31 13:45:03')
+ [1m[36m (248.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.7ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.4ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:45:04.183355' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 40ms (Views: 36.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.8ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 13:45:04 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 13:45:04 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 11ms (ActiveRecord: 1.9ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.9ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 2.0ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (4.0ms)
+Completed 200 OK in 55ms (Views: 53.0ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.6ms)
+Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (8.5ms)
+Completed 500 Internal Server Error in 15ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (4.2ms)
+Completed 500 Internal Server Error in 9ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (1.4ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 6ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.3ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (1.2ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (0.9ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:45:35', '2013-01-31 13:45:35')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 13:45:35', '2013-01-31 13:45:35')
+ [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:45:35', '2013-01-31 13:45:35', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:45:35', '2013-01-31 13:45:35', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:45:35', '2013-01-31 13:45:35', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.3ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:45:35', '2013-01-31 13:45:35')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:45:35', '2013-01-31 13:45:35')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:45:35', '2013-01-31 13:45:35')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 13:45:35', '2013-01-31 13:45:35')
+ [1m[36m (219.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (1.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:45:35.731918' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 44ms (Views: 42.9ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.4ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 13:45:35 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 13:45:35 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 3.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (3.7ms)
+Completed 200 OK in 43ms (Views: 41.4ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.3ms)
+Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (9.1ms)
+Completed 500 Internal Server Error in 15ms
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (4.1ms)
+Completed 500 Internal Server Error in 8ms
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.1ms)
+ [1m[35m (1.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (1.3ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.4ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:46:06', '2013-01-31 13:46:06')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 13:46:06', '2013-01-31 13:46:06')
+ [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:46:06', '2013-01-31 13:46:06', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:46:06', '2013-01-31 13:46:06', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:46:06', '2013-01-31 13:46:06', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:46:06', '2013-01-31 13:46:06')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:46:06', '2013-01-31 13:46:06')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:46:06', '2013-01-31 13:46:06')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 13:46:06', '2013-01-31 13:46:06')
+ [1m[36m (251.2ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (4.4ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (2.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (1.3ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.2ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:46:06.960626' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 42ms (Views: 40.6ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 13:46:07 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 13:46:07 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 9ms (ActiveRecord: 1.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (3.7ms)
+Completed 200 OK in 43ms (Views: 38.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (3.9ms)
+Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.4ms)
+Completed 200 OK in 14ms (Views: 11.4ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (3.3ms)
+Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (1.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.8ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:52:58', '2013-01-31 13:52:58')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 13:52:58', '2013-01-31 13:52:58')
+ [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:52:58', '2013-01-31 13:52:58', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:52:58', '2013-01-31 13:52:58', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:52:58', '2013-01-31 13:52:58', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:52:58', '2013-01-31 13:52:58')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:52:58', '2013-01-31 13:52:58')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:52:58', '2013-01-31 13:52:58')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 13:52:58', '2013-01-31 13:52:58')
+ [1m[36m (167.2ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.8ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:52:58.857020' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 49ms (Views: 47.8ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.7ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 13:52:58 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 13:52:58 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 1.8ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (1.8ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.9ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (1.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (4.0ms)
+Completed 200 OK in 51ms (Views: 49.1ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.5ms)
+Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.5ms)
+Completed 200 OK in 16ms (Views: 13.6ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.3ms)
+Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 1.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.3ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:59:35', '2013-01-31 13:59:35')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 13:59:35', '2013-01-31 13:59:35')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:59:35', '2013-01-31 13:59:35', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:59:35', '2013-01-31 13:59:35', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:59:35', '2013-01-31 13:59:35', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:59:35', '2013-01-31 13:59:35')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:59:35', '2013-01-31 13:59:35')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:59:35', '2013-01-31 13:59:35')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 13:59:35', '2013-01-31 13:59:35')
+ [1m[36m (163.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.6ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (1.7ms)[0m [1mUPDATE "ominous_closers" SET "link_text" = NULL, "updated_at" = '2013-01-31 13:59:35.591480' WHERE "ominous_closers"."id" = 1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Exists (1.1ms)[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.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT 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.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35mOminous::WarningCloser Load (0.1ms)[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.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.0ms)[0m UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)
+ [1m[36mOminous::WarningCloser Exists (0.5ms)[0m [1mSELECT 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[0m
+ [1m[35m (1.1ms)[0m UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:59:35.634047' WHERE "ominous_warning_closers"."id" = 298486374
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)[0m
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36m (0.6ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (1.3ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mOminous::Warning Load (0.1ms)[0m 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: 36.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 31 Jan 2013 13:59:35 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 13:59:35 UTC +00:00]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 1.5ms)
+ [1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.0ms)[0m [1mDELETE FROM "things" WHERE "things"."id" = ?[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (2.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered things/_form.html.erb (4.3ms)
+Completed 200 OK in 42ms (Views: 40.0ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (4.7ms)
+Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.6ms)
+Completed 200 OK in 15ms (Views: 12.1ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.1ms)
+Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.7ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (1.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+Processing by ThingsController#index as HTML
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" [0m
+Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+Connecting to database specified by database.yml
+ [1m[36m (1.3ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (1.0ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:01:55', '2013-01-31 14:01:55')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:01:55', '2013-01-31 14:01:55')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:01:55', '2013-01-31 14:01:55', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:01:55', '2013-01-31 14:01:55', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:01:55', '2013-01-31 14:01:55', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:01:55', '2013-01-31 14:01:55')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:01:55', '2013-01-31 14:01:55')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:01:55', '2013-01-31 14:01:55')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:01:55', '2013-01-31 14:01:55')
+ [1m[36m (197.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (4.6ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.8ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.1ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.2ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:01:55.545159' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (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
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.4ms)
+Completed 200 OK in 45ms (Views: 40.9ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:01:55 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:01:55 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 9ms (ActiveRecord: 1.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[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" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.4ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.8ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (2.4ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (3.9ms)
+Completed 200 OK in 41ms (Views: 39.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.4ms)
+Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.4ms)
+Completed 200 OK in 16ms (Views: 12.2ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.5ms)
+Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.6ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 6ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (1.3ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:02:50', '2013-01-31 14:02:50')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:02:50', '2013-01-31 14:02:50')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:02:50', '2013-01-31 14:02:50', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:02:50', '2013-01-31 14:02:50', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:02:50', '2013-01-31 14:02:50', 113629430)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:02:50', '2013-01-31 14:02:50')
+ [1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:02:50', '2013-01-31 14:02:50')[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:02:50', '2013-01-31 14:02:50')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:02:50', '2013-01-31 14:02:50')
+ [1m[36m (177.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (1.4ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (1.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 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (1.2ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.2ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:02:51.090751' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (1.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 38ms (Views: 36.6ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.6ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:02:51 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:02:51 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 1.7ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.9ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (4.0ms)
+Completed 200 OK in 40ms (Views: 38.7ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (4.8ms)
+Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.0ms)
+Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (3.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (3.9ms)
+Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+ [1m[35m (1.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.8ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:03:29', '2013-01-31 14:03:29')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:03:29', '2013-01-31 14:03:29')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:03:29', '2013-01-31 14:03:29', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:03:29', '2013-01-31 14:03:29', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:03:29', '2013-01-31 14:03:29', 113629430)
+ [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:03:29', '2013-01-31 14:03:29')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:03:29', '2013-01-31 14:03:29')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:03:29', '2013-01-31 14:03:29')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:03:29', '2013-01-31 14:03:29')
+ [1m[36m (194.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.8ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.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.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:03:29.824375' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (1.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 39ms (Views: 37.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:03:29 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:03:29 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 9ms (ActiveRecord: 1.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (4.1ms)
+Completed 200 OK in 41ms (Views: 39.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.9ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (3.4ms)
+Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.4ms)
+Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 0.6ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.4ms)
+Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.5ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:03:47', '2013-01-31 14:03:47')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:03:47', '2013-01-31 14:03:47')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:03:48', '2013-01-31 14:03:48', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:03:48', '2013-01-31 14:03:48', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:03:48', '2013-01-31 14:03:48', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:03:48', '2013-01-31 14:03:48')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:03:48', '2013-01-31 14:03:48')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:03:48', '2013-01-31 14:03:48')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:03:48', '2013-01-31 14:03:48')
+ [1m[36m (193.3ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (4.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.1ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.2ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:03:48.447098' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (2.4ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (1.9ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 38ms (Views: 35.1ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.1ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:03:48 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:03:48 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 3.2ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.9ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
+ [1m[35m (1.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (5.1ms)
+Completed 200 OK in 41ms (Views: 38.5ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (2.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (3.1ms)
+Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.4ms)
+Completed 200 OK in 14ms (Views: 11.2ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.5ms)
+Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)
+ [1m[35m (1.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.3ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:04:16', '2013-01-31 14:04:16')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:04:16', '2013-01-31 14:04:16')
+ [1m[36mFixture Delete (2.6ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:04:16', '2013-01-31 14:04:16', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:04:16', '2013-01-31 14:04:16', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:04:16', '2013-01-31 14:04:16', 113629430)
+ [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.4ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:04:16', '2013-01-31 14:04:16')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:04:16', '2013-01-31 14:04:16')[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:04:16', '2013-01-31 14:04:16')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:04:16', '2013-01-31 14:04:16')
+ [1m[36m (235.2ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (2.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (1.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.2ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.2ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:04:17.232116' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.4ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 48ms (Views: 46.9ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.5ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.8ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:04:17 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:04:17 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 3.0ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.9ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.0ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (3.7ms)
+Completed 200 OK in 45ms (Views: 42.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.3ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.5ms)
+Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [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.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.1ms)
+Completed 200 OK in 14ms (Views: 11.6ms | ActiveRecord: 0.8ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (3.0ms)
+Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (1.6ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 5ms (ActiveRecord: 1.7ms)
+ [1m[35m (2.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (2.7ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:04:30', '2013-01-31 14:04:30')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:04:30', '2013-01-31 14:04:30')
+ [1m[36mFixture Delete (1.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:04:30', '2013-01-31 14:04:30', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:04:30', '2013-01-31 14:04:30', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:04:30', '2013-01-31 14:04:30', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:04:30', '2013-01-31 14:04:30')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:04:30', '2013-01-31 14:04:30')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:04:30', '2013-01-31 14:04:30')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:04:30', '2013-01-31 14:04:30')
+ [1m[36m (250.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.7ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (2.6ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.3ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:04:31.434170' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 42ms (Views: 40.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:04:31 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:04:31 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 1.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.1ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
+ [1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.9ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (3.9ms)
+Completed 200 OK in 44ms (Views: 42.7ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.8ms)
+Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (2.3ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.2ms)
+Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (1.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.3ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.1ms)
+Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.8ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (1.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (2.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:07:57', '2013-01-31 14:07:57')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:07:57', '2013-01-31 14:07:57')
+ [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:07:57', '2013-01-31 14:07:57', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:07:57', '2013-01-31 14:07:57', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:07:57', '2013-01-31 14:07:57', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:07:57', '2013-01-31 14:07:57')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:07:57', '2013-01-31 14:07:57')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:07:57', '2013-01-31 14:07:57')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:07:57', '2013-01-31 14:07:57')
+ [1m[36m (213.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (8.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.5ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.3ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (1.4ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.2ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:07:58.433254' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (2.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (2.3ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 43ms (Views: 42.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.5ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:07:58 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:07:58 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 3.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.9ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (1.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (3.9ms)
+Completed 200 OK in 47ms (Views: 45.8ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.4ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.9ms)
+Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.9ms)
+Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.5ms)
+Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.6ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (2.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 6ms (ActiveRecord: 2.3ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (2.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.9ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (3.0ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:11:08', '2013-01-31 14:11:08')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:11:08', '2013-01-31 14:11:08')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:11:08', '2013-01-31 14:11:08', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:11:08', '2013-01-31 14:11:08', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:11:08', '2013-01-31 14:11:08', 113629430)
+ [1m[36mFixture Delete (0.8ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:11:08', '2013-01-31 14:11:08')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:11:08', '2013-01-31 14:11:08')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:11:08', '2013-01-31 14:11:08')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:11:08', '2013-01-31 14:11:08')
+ [1m[36m (184.2ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.3ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.4ms)[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.2ms)[0m rollback transaction
+ [1m[36m (0.4ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.1ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:11:08.828076' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 39ms (Views: 37.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.8ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:11:08 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:11:08 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 9ms (ActiveRecord: 2.9ms)
+ [1m[36m (1.2ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.0ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (5.6ms)
+Completed 200 OK in 58ms (Views: 54.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.4ms)
+Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.4ms)
+Completed 200 OK in 15ms (Views: 13.1ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.4ms)
+Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 6ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms)
+ [1m[36m (2.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:11:54', '2013-01-31 14:11:54')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:11:54', '2013-01-31 14:11:54')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:11:54', '2013-01-31 14:11:54', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:11:54', '2013-01-31 14:11:54', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:11:54', '2013-01-31 14:11:54', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:11:54', '2013-01-31 14:11:54')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:11:54', '2013-01-31 14:11:54')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:11:54', '2013-01-31 14:11:54')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:11:54', '2013-01-31 14:11:54')
+ [1m[36m (209.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (1.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.4ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.4ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.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.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.2ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:11:54.823975' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (2.5ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 37ms (Views: 35.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:11:54 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:11:54 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 11ms (ActiveRecord: 1.5ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.9ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 7ms (ActiveRecord: 1.2ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (4.6ms)
+Completed 200 OK in 49ms (Views: 45.1ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (4.7ms)
+Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.3ms)
+Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (4.5ms)
+Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.7ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (3.0ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:13:25', '2013-01-31 14:13:25')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:13:25', '2013-01-31 14:13:25')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.0ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:13:25', '2013-01-31 14:13:25', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:13:25', '2013-01-31 14:13:25', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:13:25', '2013-01-31 14:13:25', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.0ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:13:25', '2013-01-31 14:13:25')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:13:25', '2013-01-31 14:13:25')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:13:25', '2013-01-31 14:13:25')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:13:25', '2013-01-31 14:13:25')
+ [1m[36m (229.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.7ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (1.0ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:13:25.702728' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (1.4ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (1.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 40ms (Views: 37.9ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.6ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:13:25 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:13:25 UTC +00:00]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 3.7ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (1.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (1.5ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (4.8ms)
+Completed 200 OK in 49ms (Views: 46.5ms | ActiveRecord: 1.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (3.9ms)
+Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (1.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.3ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.5ms)
+Completed 200 OK in 14ms (Views: 10.7ms | ActiveRecord: 1.7ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (1.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.6ms)
+Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms)
+ [1m[35m (1.9ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:15:10', '2013-01-31 14:15:10')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:15:10', '2013-01-31 14:15:10')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:15:10', '2013-01-31 14:15:10', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:15:10', '2013-01-31 14:15:10', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:15:10', '2013-01-31 14:15:10', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:15:10', '2013-01-31 14:15:10')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:15:10', '2013-01-31 14:15:10')[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:15:10', '2013-01-31 14:15:10')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:15:10', '2013-01-31 14:15:10')
+ [1m[36m (221.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.6ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.5ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.9ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:15:11.127259' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (2.4ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 40ms (Views: 38.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.5ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:15:11 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:15:11 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 12ms (ActiveRecord: 1.6ms)
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.9ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (4.3ms)
+Completed 200 OK in 48ms (Views: 46.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (7.8ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.9ms)
+Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.8ms)
+Completed 200 OK in 19ms (Views: 16.9ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (4.7ms)
+Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.2ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.6ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.4ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.8ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:15:28', '2013-01-31 14:15:28')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:15:28', '2013-01-31 14:15:28')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:15:28', '2013-01-31 14:15:28', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:15:28', '2013-01-31 14:15:28', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:15:28', '2013-01-31 14:15:28', 113629430)
+ [1m[36mFixture Delete (0.6ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.2ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:15:28', '2013-01-31 14:15:28')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:15:28', '2013-01-31 14:15:28')[0m
+ [1m[35mFixture Delete (4.3ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:15:28', '2013-01-31 14:15:28')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:15:28', '2013-01-31 14:15:28')
+ [1m[36m (266.0ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.2ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.9ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.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
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.3ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:15:29.084739' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (1.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 41ms (Views: 39.5ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (2.6ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:15:29 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:15:29 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 9ms (ActiveRecord: 2.8ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (1.2ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (1.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.9ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (4.7ms)
+Completed 200 OK in 44ms (Views: 42.3ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.8ms)
+Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.7ms)
+Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.9ms)
+Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.8ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (0.9ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:15:44', '2013-01-31 14:15:44')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:15:44', '2013-01-31 14:15:44')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:15:45', '2013-01-31 14:15:45', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:15:45', '2013-01-31 14:15:45', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:15:45', '2013-01-31 14:15:45', 113629430)
+ [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:15:45', '2013-01-31 14:15:45')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:15:45', '2013-01-31 14:15:45')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:15:45', '2013-01-31 14:15:45')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:15:45', '2013-01-31 14:15:45')
+ [1m[36m (229.3ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.3ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (1.9ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (1.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (1.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.2ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:15:45.528660' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 39ms (Views: 37.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.4ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:15:45 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:15:45 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 1.6ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.4ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.0ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (1.4ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (6.1ms)
+Completed 200 OK in 44ms (Views: 41.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (5.3ms)
+Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.4ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.1ms)
+Completed 200 OK in 14ms (Views: 11.3ms | ActiveRecord: 0.8ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.4ms)
+Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.6ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (1.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 1.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (1.6ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (2.9ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (1.0ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.1ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:17:01', '2013-01-31 14:17:01')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:17:01', '2013-01-31 14:17:01')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:17:01', '2013-01-31 14:17:01', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:17:01', '2013-01-31 14:17:01', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:17:01', '2013-01-31 14:17:01', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:17:01', '2013-01-31 14:17:01')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:17:01', '2013-01-31 14:17:01')[0m
+ [1m[35mFixture Delete (0.5ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:17:01', '2013-01-31 14:17:01')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:17:01', '2013-01-31 14:17:01')
+ [1m[36m (135.4ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.2ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:17:01.984412' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 38ms (Views: 36.1ms | ActiveRecord: 0.4ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.3ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.9ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:17:02 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:17:02 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 9ms (ActiveRecord: 2.0ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 9ms (ActiveRecord: 1.1ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (3.7ms)
+Completed 200 OK in 42ms (Views: 40.8ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.4ms)
+Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.8ms)
+Completed 200 OK in 17ms (Views: 14.7ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.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 (2.7ms)
+Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.5ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (2.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.9ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.9ms)
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.4ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (1.8ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.0ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (1.0ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:22:33', '2013-01-31 14:22:33')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 14:22:33', '2013-01-31 14:22:33')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:22:33', '2013-01-31 14:22:33', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:22:33', '2013-01-31 14:22:33', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:22:33', '2013-01-31 14:22:33', 113629430)
+ [1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:22:33', '2013-01-31 14:22:33')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:22:33', '2013-01-31 14:22:33')[0m
+ [1m[35mFixture Delete (0.4ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:22:33', '2013-01-31 14:22:33')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 14:22:33', '2013-01-31 14:22:33')
+ [1m[36m (153.9ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (2.2ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (2.3ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.2ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ [1m[36mOminous::WarningCloser Load (0.1ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (1.3ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (1.5ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:22:33.679405' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.6ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 38ms (Views: 36.5ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.2ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.1ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 14:22:33 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 14:22:33 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 10ms (ActiveRecord: 3.3ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (2.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.2ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (3.8ms)
+Completed 200 OK in 43ms (Views: 41.6ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.4ms)
+Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.5ms)
+Completed 200 OK in 15ms (Views: 13.1ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.6ms)
+Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.7ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (1.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+Connecting to database specified by database.yml
+ [1m[36m (2.7ms)[0m [1mbegin transaction[0m
+ [1m[35mFixture Delete (1.2ms)[0m DELETE FROM "ominous_warnings"
+ [1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 15:47:36', '2013-01-31 15:47:36')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-01-31 15:47:36', '2013-01-31 15:47:36')
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_warning_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 15:47:36', '2013-01-31 15:47:36', 980190962)
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 15:47:36', '2013-01-31 15:47:36', 298486374)[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 15:47:36', '2013-01-31 15:47:36', 113629430)
+ [1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "ominous_closers"[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 15:47:36', '2013-01-31 15:47:36')
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 15:47:36', '2013-01-31 15:47:36')[0m
+ [1m[35mFixture Delete (0.6ms)[0m DELETE FROM "things"
+ [1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 15:47:36', '2013-01-31 15:47:36')[0m
+ [1m[35mFixture Insert (0.1ms)[0m INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-01-31 15:47:36', '2013-01-31 15:47:36')
+ [1m[36m (222.8ms)[0m [1mcommit transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.2ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mOminous::WarningCloser Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Exists (0.3ms)[0m SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (1.0ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.1ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.1ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Closer Load (0.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
+ [1m[36mOminous::WarningCloser Load (0.1ms)[0m [1mSELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.8ms)[0m [1mUPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2)[0m
+ [1m[35mOminous::WarningCloser Exists (2.3ms)[0m SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1
+ [1m[36m (0.3ms)[0m [1mUPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 15:47:36.652910' WHERE "ominous_warning_closers"."id" = 298486374[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.2ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ [1m[35m (1.6ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Closer Load (0.0ms)[0m [1mSELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Warning Exists (0.1ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36m (0.0ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mOminous::Closer Load (0.0ms)[0m SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1[0m
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by Ominous::WarningsController#dismiss as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", "1"]]
+ Rendered text template (0.0ms)
+Completed 200 OK in 39ms (Views: 37.6ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#create as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}}
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (3.8ms)[0m [1mINSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?)[0m [["created_at", Thu, 31 Jan 2013 15:47:36 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Thu, 31 Jan 2013 15:47:36 UTC +00:00]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+Redirected to http://test.host/things/3
+Completed 302 Found in 11ms (ActiveRecord: 4.0ms)
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (1.3ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "things" [0m
+Processing by ThingsController#destroy as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.9ms)[0m DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things
+Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "things"
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#edit as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (1.8ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+ Rendered things/_form.html.erb (4.3ms)
+Completed 200 OK in 46ms (Views: 42.2ms | ActiveRecord: 1.8ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.2ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.2ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#new as HTML
+ Rendered things/_form.html.erb (2.2ms)
+Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35mOminous::Warning Load (0.2ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position[0m
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (13.5ms)
+Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 0.5ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "2"]]
+ [1m[35mOminous::Warning Exists (0.9ms)[0m SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1
+ [1m[36mOminous::Warning Load (0.1ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+ [1m[35mOminous::Closer Load (0.3ms)[0m SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.6ms)
+Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 1.3ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"1"}
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]
+Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 1]]
+ [1m[35mThing Load (0.0ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]]
+ [1m[36mOminous::Warning Load (0.0ms)[0m [1mSELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1[0m [["id", 1]]
+Processing by ThingsController#show as HTML
+ Parameters: {"id"=>"2"}
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.0ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+Processing by ThingsController#update as HTML
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
+ [1m[36mThing Load (0.1ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", "1"]]
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+Redirected to http://test.host/things/1
+Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
+ [1m[35m (0.1ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mThing Load (0.0ms)[0m [1mSELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1[0m [["id", 2]]
+ [1m[35mOminous::Warning Load (0.1ms)[0m SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]
+ [1m[36mOminous::Warning Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1[0m
+Processing by ThingsController#index as HTML
+ [1m[35mThing Load (0.1ms)[0m SELECT "things".* FROM "things"
+Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.1ms)
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m