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 @@ Ominous::Warning Exists (0.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.4ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK +Connecting to database specified by database.yml +  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS +  (0.3ms) SET FOREIGN_KEY_CHECKS = 0 +  (0.3ms) BEGIN + Fixture Delete (1.0ms) DELETE FROM `ominous_warnings` + Fixture Insert (0.7ms) INSERT 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') + Fixture Insert (0.4ms) 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') + Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` + Fixture Insert (0.3ms) 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) + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.3ms) 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) + Fixture Delete (0.3ms) DELETE FROM `ominous_closers` + Fixture Insert (0.3ms) 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') + Fixture Insert (0.3ms) INSERT 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') + Fixture Delete (0.3ms) DELETE FROM `things` + Fixture Insert (0.3ms) INSERT 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') + Fixture Insert (0.3ms) 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') +  (93.6ms) COMMIT +  (0.3ms) SET FOREIGN_KEY_CHECKS = 1 +  (0.2ms) BEGIN + Ominous::Warning Load (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 + Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 +  (0.4ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.8ms) SELECT 1 AS one FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`closer_id` = BINARY 1 AND `ominous_warning_closers`.`warning_id` = 1) LIMIT 1 +  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 + Ominous::Closer Exists (1.0ms) SELECT DISTINCT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1 +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 + Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 + Ominous::Closer Load (1.0ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN + Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 + Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 + Ominous::Closer Load (0.8ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position + Ominous::WarningCloser Load (1.4ms) SELECT DISTINCT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_warning_closers`.`closer_id` = 2 ORDER BY position LIMIT 1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.5ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) + Ominous::WarningCloser Exists (0.5ms) SELECT 1 AS one FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`closer_id` = BINARY 2 AND `ominous_warning_closers`.`id` != 298486374 AND `ominous_warning_closers`.`warning_id` = 1) LIMIT 1 +  (3.3ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-31 12:41:58' WHERE `ominous_warning_closers`.`id` = 298486374 +  (7.7ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1) +  (0.4ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 + Ominous::Closer Load (0.8ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position +  (58.9ms) ROLLBACK +  (0.9ms) BEGIN + Ominous::Warning Load (1.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 + Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 +  (1.1ms) ROLLBACK +  (0.8ms) BEGIN + Ominous::Warning Load (3.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 + Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 + Ominous::Warning Exists (0.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 +  (0.5ms) ROLLBACK +  (0.4ms) BEGIN + Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 + Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 + Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1 +  (1.0ms) ROLLBACK +  (0.4ms) BEGIN + Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.5ms) 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) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN + Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 +  (0.5ms) SELECT COUNT(*) FROM `things` +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (2.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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') +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 2.9ms) +  (0.5ms) SELECT COUNT(*) FROM `things` +  (47.7ms) ROLLBACK +  (0.3ms) BEGIN + Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Load (4.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 +  (0.6ms) SELECT COUNT(*) FROM `things` +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (5.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) DELETE FROM `things` WHERE `things`.`id` = 1 +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 10ms (ActiveRecord: 6.5ms) +  (0.5ms) SELECT COUNT(*) FROM `things`  +  (38.5ms) ROLLBACK +  (0.2ms) BEGIN + Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (4.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Rendered things/_form.html.erb (5.1ms) +Completed 200 OK in 23ms (Views: 16.5ms | ActiveRecord: 4.5ms) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN + Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.6ms) SELECT `things`.* FROM `things`  +Completed 200 OK in 13ms (Views: 11.1ms | ActiveRecord: 0.6ms) +  (1.1ms) ROLLBACK +  (0.3ms) BEGIN + Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Load (0.4ms) 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) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN + Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 + Ominous::Closer Load (1.2ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (44.2ms) +Completed 200 OK in 53ms (Views: 49.1ms | ActiveRecord: 2.6ms) +  (0.6ms) ROLLBACK +  (0.3ms) BEGIN + Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) +  (0.5ms) ROLLBACK +  (0.3ms) BEGIN + Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 + Ominous::Warning Load (2.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.5ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position + 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) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN + Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 +Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.5ms) +  (0.5ms) ROLLBACK +  (0.5ms) BEGIN + Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Exists (0.8ms) 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) +  (0.5ms) ROLLBACK +  (0.3ms) BEGIN + Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 +  (0.4ms) SAVEPOINT active_record_1 +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 6ms (ActiveRecord: 1.4ms) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN + Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 + Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 + Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 + Ominous::Warning Exists (5.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (2.1ms) SELECT `things`.* FROM `things`  +Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 2.1ms) +  (0.4ms) ROLLBACK +Connecting to database specified by database.yml +  (1.8ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (1.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (1.5ms) begin transaction +  (0.1ms) rollback transaction +  (0.8ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.3ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.4ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (2.3ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (5.2ms) select sqlite_version(*) +  (155.2ms) 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) +  (130.1ms) 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)  +  (115.4ms) CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (106.6ms) 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)  +  (107.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) +  (107.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (90.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20121207090710') +Connecting to database specified by database.yml +  (1.7ms) begin transaction + Fixture Delete (1.1ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.8ms) INSERT 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') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 12:56:00', '2013-01-31 12:56:00', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 12:56:00', '2013-01-31 12:56:00', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 12:56:00', '2013-01-31 12:56:00', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) 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') + Fixture Insert (1.1ms) INSERT 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') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 12:56:00', '2013-01-31 12:56:00') + Fixture Insert (0.1ms) 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') +  (138.3ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.3ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.5ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.2ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 12:56:01.168593' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.2ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.7ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (2.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 35ms (Views: 33.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 9ms (ActiveRecord: 1.6ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (1.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.2ms) 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) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.4ms) +Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.5ms) +Completed 200 OK in 17ms (Views: 14.5ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.7ms) +Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.1ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (1.0ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (3.3ms) select sqlite_version(*) +  (151.6ms) 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) +  (182.1ms) 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)  +  (158.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) +  (141.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (146.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131131934') +  (133.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20121207090710') +  (132.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20121206144249') +  (133.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20121206153254') +  (107.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20121206145743') +  (99.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130131131756') +Connecting to database specified by database.yml +  (4.5ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.3ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.3ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.7ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (2.6ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) select sqlite_version(*) +  (162.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) +  (140.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +Connecting to database specified by database.yml +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateThings (20121207090710) +  (0.1ms) select sqlite_version(*) +  (0.1ms) begin transaction +  (4.8ms) 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) +  (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121207090710') +  (200.7ms) commit transaction +Migrating to CreateOminousWarnings (20130131132533) +  (0.2ms) begin transaction +  (3.5ms) CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131132533') +  (168.9ms) commit transaction +Migrating to CreateOminousWarningClosers (20130131132534) +  (0.1ms) begin transaction +  (0.7ms) 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) +  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131132534') +  (163.7ms) commit transaction +Migrating to CreateOminousClosers (20130131132535) +  (0.1ms) begin transaction +  (8.2ms) 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) +  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131132535') +  (150.2ms) commit transaction +Migrating to AddTitleAndDescriptionToOminousWarnings (20130131132536) +  (0.2ms) begin transaction +  (1.6ms) ALTER TABLE "ominous_warnings" ADD "string" title +  (1.3ms) ALTER TABLE "ominous_warnings" ADD "text" description +  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131132536') +  (154.8ms) commit transaction +Migrating to AddLinkTextAndMessageToOminousClosers (20130131132537) +  (0.2ms) begin transaction +  (5.2ms) ALTER TABLE "ominous_closers" ADD "string" link_text +  (0.4ms) ALTER TABLE "ominous_closers" ADD "text" message +  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131132537') +  (162.3ms) commit transaction +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Connecting to database specified by database.yml +  (5.9ms) begin transaction + Fixture Delete (1.6ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.8ms) INSERT 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') + Fixture Insert (0.3ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:28:44', '2013-01-31 13:28:44', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:28:44', '2013-01-31 13:28:44', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:28:44', '2013-01-31 13:28:44', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) 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') + Fixture Insert (0.1ms) INSERT 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') + Fixture Delete (0.4ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (172.9ms) commit transaction +  (0.2ms) begin transaction + Ominous::Warning Load (0.8ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (1.9ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (1.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (1.0ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:28:44.450599' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 38ms (Views: 36.5ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", 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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 9ms (ActiveRecord: 1.5ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 8ms (ActiveRecord: 1.1ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (3.6ms) +Completed 200 OK in 48ms (Views: 45.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.1ms) +Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (9.0ms) +Completed 200 OK in 17ms (Views: 15.2ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.9ms) +Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (1.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.2ms) +  (0.2ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (1.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (1.8ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 1.8ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (1.0ms) begin transaction + Fixture Delete (1.2ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29') +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') +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.9ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (1.9ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29') +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') +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (1.1ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29') +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') +  (1.7ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.9ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.3ms) 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') +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') +  (0.4ms) rollback transaction +  (0.5ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29') +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') +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (1.5ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29') +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') +  (0.4ms) rollback transaction +  (1.7ms) begin transaction + Fixture Delete (1.1ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.9ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (2.5ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Fixture Delete (4.5ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:32:29', '2013-01-31 13:32:29') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (1.5ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Fixture Delete (0.7ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.4ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) select sqlite_version(*) +  (187.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) +  (191.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +Migrating to CreateThings (20121207090710) +  (0.2ms) begin transaction +  (1.6ms) 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) +  (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121207090710') +  (186.7ms) commit transaction +Migrating to CreateOminousWarnings (20130131132533) +  (0.2ms) begin transaction +  (8.5ms) CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131132533') +  (214.8ms) commit transaction +Migrating to CreateOminousWarningClosers (20130131132534) +  (0.2ms) begin transaction +  (10.6ms) 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) +  (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131132534') +  (182.9ms) commit transaction +Migrating to CreateOminousClosers (20130131132535) +  (0.1ms) begin transaction +  (2.1ms) 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) +  (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131132535') +  (194.0ms) commit transaction +Migrating to AddTitleAndDescriptionToOminousWarnings (20130131132536) +  (0.1ms) begin transaction +  (0.6ms) ALTER TABLE "ominous_warnings" ADD "string" title +  (0.3ms) ALTER TABLE "ominous_warnings" ADD "text" description +  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131132536') +  (194.4ms) commit transaction +Migrating to AddLinkTextAndMessageToOminousClosers (20130131132537) +  (0.1ms) begin transaction +  (0.3ms) ALTER TABLE "ominous_closers" ADD "string" link_text +  (0.2ms) ALTER TABLE "ominous_closers" ADD "text" message +  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131132537') +  (171.6ms) commit transaction +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Connecting to database specified by database.yml +  (1.0ms) begin transaction + Fixture Delete (1.1ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34') +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') +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.9ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34') +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') +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (2.6ms) 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') +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') +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (1.6ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34') +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') +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34') +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') +  (0.5ms) rollback transaction +  (0.2ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34') +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') +  (2.1ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.9ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34') +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') +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (3.3ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (1.9ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34') +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') +  (0.6ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.5ms) 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') +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') +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (1.2ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.8ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (2.6ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.7ms) DELETE FROM "ominous_warnings" + Fixture Insert (2.0ms) 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') +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') +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (0.9ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:36:34', '2013-01-31 13:36:34') +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') +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Fixture Delete (1.5ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.1ms) 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') +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') +  (0.4ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) select sqlite_version(*) +  (215.6ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) +  (163.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +Migrating to CreateThings (20121207090710) +  (0.1ms) begin transaction +  (1.8ms) 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) +  (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121207090710') +  (160.1ms) commit transaction +Migrating to CreateOminousWarnings (20130131134020) +  (0.1ms) begin transaction +  (0.4ms) CREATE TABLE "ominous_warnings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131134020') +  (169.3ms) commit transaction +Migrating to CreateOminousWarningClosers (20130131134021) +  (0.2ms) begin transaction +  (3.0ms) 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) +  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131134021') +  (146.8ms) commit transaction +Migrating to CreateOminousClosers (20130131134022) +  (0.2ms) begin transaction +  (13.8ms) 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) +  (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131134022') +  (145.4ms) commit transaction +Migrating to AddTitleAndDescriptionToOminousWarnings (20130131134023) +  (0.2ms) begin transaction +  (6.1ms) ALTER TABLE "ominous_warnings" ADD "title" varchar(255) +  (0.7ms) ALTER TABLE "ominous_warnings" ADD "description" text +  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131134023') +  (138.9ms) commit transaction +Migrating to AddLinkTextAndMessageToOminousClosers (20130131134024) +  (0.1ms) begin transaction +  (0.5ms) ALTER TABLE "ominous_closers" ADD "link_text" varchar(255) +  (0.2ms) ALTER TABLE "ominous_closers" ADD "message" text +  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130131134024') +  (152.3ms) commit transaction +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Connecting to database specified by database.yml +  (0.9ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:40:58', '2013-01-31 13:40:58') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:40:58', '2013-01-31 13:40:58', 980190962) + Fixture Insert (0.3ms) INSERT 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) + Fixture Insert (0.1ms) 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) + Fixture Delete (0.6ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:40:58', '2013-01-31 13:40:58') + Fixture Insert (0.2ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:40:58', '2013-01-31 13:40:58') + Fixture Delete (2.8ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (192.8ms) commit transaction +  (0.5ms) begin transaction + Ominous::Warning Load (0.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.2ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:40:58.858789' WHERE "ominous_warning_closers"."id" = 298486374 +  (1.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.7ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.3ms) +Completed 200 OK in 43ms (Views: 41.1ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 8ms (ActiveRecord: 1.6ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.5ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.5ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 7ms (ActiveRecord: 3.2ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (3.8ms) +Completed 200 OK in 48ms (Views: 45.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.2ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.3ms) +Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (11.6ms) +Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.8ms) +Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.7ms) +  (0.2ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (2.6ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 7ms (ActiveRecord: 2.9ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (1.9ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.6ms) 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:44:30', '2013-01-31 13:44:30') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:44:30', '2013-01-31 13:44:30', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:44:30', '2013-01-31 13:44:30', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:44:30', '2013-01-31 13:44:30', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:44:30', '2013-01-31 13:44:30') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:44:30', '2013-01-31 13:44:30') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:44:30', '2013-01-31 13:44:30') + Fixture Insert (0.1ms) 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') +  (261.5ms) commit transaction +  (0.2ms) begin transaction + Ominous::Warning Load (1.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (1.1ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:44:31.079244' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (1.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 40ms (Views: 38.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.2ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 22ms (ActiveRecord: 3.3ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.2ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (4.5ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (1.2ms) SAVEPOINT active_record_1 + SQL (1.7ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (3.9ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 16ms (ActiveRecord: 11.2ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (4.1ms) +Completed 200 OK in 62ms (Views: 60.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (5.1ms) +Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (41.0ms) +Completed 500 Internal Server Error in 49ms +  (0.2ms) rollback transaction +  (1.6ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (1.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.3ms) +Completed 500 Internal Server Error in 11ms +  (0.3ms) rollback transaction +  (0.2ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.9ms) begin transaction + Fixture Delete (1.4ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:45:03', '2013-01-31 13:45:03') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:45:03', '2013-01-31 13:45:03', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:45:03', '2013-01-31 13:45:03', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:45:03', '2013-01-31 13:45:03', 113629430) + Fixture Delete (0.6ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:45:03', '2013-01-31 13:45:03') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:45:03', '2013-01-31 13:45:03') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:45:03', '2013-01-31 13:45:03') + Fixture Insert (0.1ms) 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') +  (248.8ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.4ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:45:04.183355' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.2ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.6ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.3ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 40ms (Views: 36.3ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.8ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 11ms (ActiveRecord: 1.9ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.5ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.9ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 2.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (4.0ms) +Completed 200 OK in 55ms (Views: 53.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.6ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (8.5ms) +Completed 500 Internal Server Error in 15ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.2ms) +Completed 500 Internal Server Error in 9ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (1.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 6ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.3ms) SELECT "things".* FROM "things" +Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (1.2ms) begin transaction + Fixture Delete (0.9ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.6ms) 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:45:35', '2013-01-31 13:45:35') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.8ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.3ms) 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) + Fixture Insert (0.1ms) INSERT 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) + Fixture Insert (0.1ms) 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) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.3ms) 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') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:45:35', '2013-01-31 13:45:35') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:45:35', '2013-01-31 13:45:35') + Fixture Insert (0.1ms) 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') +  (219.9ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (1.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:45:35.731918' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 44ms (Views: 42.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.4ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 3.5ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (3.7ms) +Completed 200 OK in 43ms (Views: 41.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.2ms) +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.3ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (9.1ms) +Completed 500 Internal Server Error in 15ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.1ms) +Completed 500 Internal Server Error in 8ms +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (1.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 5ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (1.3ms) begin transaction + Fixture Delete (1.4ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:46:06', '2013-01-31 13:46:06') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.7ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:46:06', '2013-01-31 13:46:06', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:46:06', '2013-01-31 13:46:06', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:46:06', '2013-01-31 13:46:06', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:46:06', '2013-01-31 13:46:06') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:46:06', '2013-01-31 13:46:06') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:46:06', '2013-01-31 13:46:06') + Fixture Insert (0.1ms) 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') +  (251.2ms) commit transaction +  (0.2ms) begin transaction + Ominous::Warning Load (4.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (2.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (1.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.2ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:46:06.960626' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 42ms (Views: 40.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.3ms) begin transaction +  (0.1ms) rollback transaction +  (0.3ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 9ms (ActiveRecord: 1.6ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (3.7ms) +Completed 200 OK in 43ms (Views: 38.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (3.9ms) +Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.4ms) +Completed 200 OK in 14ms (Views: 11.4ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.3ms) +Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 5ms (ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (1.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.1ms) +  (0.5ms) rollback transaction +Connecting to database specified by database.yml +  (0.8ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:52:58', '2013-01-31 13:52:58') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.7ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:52:58', '2013-01-31 13:52:58', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:52:58', '2013-01-31 13:52:58', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:52:58', '2013-01-31 13:52:58', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:52:58', '2013-01-31 13:52:58') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:52:58', '2013-01-31 13:52:58') + Fixture Delete (0.4ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (167.2ms) commit transaction +  (0.2ms) begin transaction + Ominous::Warning Load (0.8ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:52:58.857020' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.5ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 49ms (Views: 47.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.7ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 1.8ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (1.8ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (1.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (4.0ms) +Completed 200 OK in 51ms (Views: 49.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.5ms) +Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.5ms) +Completed 200 OK in 16ms (Views: 13.6ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.7ms) 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) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.3ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.9ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 13:59:35', '2013-01-31 13:59:35') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 13:59:35', '2013-01-31 13:59:35', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 13:59:35', '2013-01-31 13:59:35', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 13:59:35', '2013-01-31 13:59:35', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 13:59:35', '2013-01-31 13:59:35') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 13:59:35', '2013-01-31 13:59:35') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 13:59:35', '2013-01-31 13:59:35') + Fixture Insert (0.1ms) 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') +  (163.8ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.6ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (1.7ms) UPDATE "ominous_closers" SET "link_text" = NULL, "updated_at" = '2013-01-31 13:59:35.591480' WHERE "ominous_closers"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (1.1ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (1.0ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.5ms) 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 +  (1.1ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 13:59:35.634047' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.6ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (1.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 38ms (Views: 36.2ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", 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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 1.5ms) +  (0.5ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things" +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.2ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (2.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (4.3ms) +Completed 200 OK in 42ms (Views: 40.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things"  +Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (4.7ms) +Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.6ms) +Completed 200 OK in 15ms (Views: 12.1ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.1ms) +Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.7ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (1.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things"  +Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (1.3ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (1.0ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:01:55', '2013-01-31 14:01:55') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:01:55', '2013-01-31 14:01:55', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:01:55', '2013-01-31 14:01:55', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:01:55', '2013-01-31 14:01:55', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:01:55', '2013-01-31 14:01:55') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:01:55', '2013-01-31 14:01:55') + Fixture Delete (0.4ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (197.9ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (4.6ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.8ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.2ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:01:55.545159' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.5ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.4ms) +Completed 200 OK in 45ms (Views: 40.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 9ms (ActiveRecord: 1.5ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.4ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.8ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (2.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (3.9ms) +Completed 200 OK in 41ms (Views: 39.5ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.4ms) +Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.4ms) +Completed 200 OK in 16ms (Views: 12.2ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.5ms) +Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.6ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 6ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (1.3ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.6ms) 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 14:02:50', '2013-01-31 14:02:50') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:02:50', '2013-01-31 14:02:50', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:02:50', '2013-01-31 14:02:50', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:02:50', '2013-01-31 14:02:50', 113629430) + Fixture Delete (0.6ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:02:50', '2013-01-31 14:02:50') + Fixture Insert (0.0ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:02:50', '2013-01-31 14:02:50') + Fixture Delete (0.6ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:02:50', '2013-01-31 14:02:50') + Fixture Insert (0.1ms) 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') +  (177.4ms) commit transaction +  (0.2ms) begin transaction + Ominous::Warning Load (1.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (1.9ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (1.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.2ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:02:51.090751' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (1.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 38ms (Views: 36.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.6ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 1.7ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (4.0ms) +Completed 200 OK in 40ms (Views: 38.7ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (4.8ms) +Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.0ms) +Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (3.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.9ms) +Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.2ms) +  (1.0ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.8ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.6ms) 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 14:03:29', '2013-01-31 14:03:29') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:03:29', '2013-01-31 14:03:29', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:03:29', '2013-01-31 14:03:29', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:03:29', '2013-01-31 14:03:29', 113629430) + Fixture Delete (0.7ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:03:29', '2013-01-31 14:03:29') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:03:29', '2013-01-31 14:03:29') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:03:29', '2013-01-31 14:03:29') + Fixture Insert (0.1ms) 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') +  (194.8ms) commit transaction +  (0.2ms) begin transaction + Ominous::Warning Load (0.8ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.5ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:03:29.824375' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.7ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (1.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 39ms (Views: 37.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", 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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 9ms (ActiveRecord: 1.6ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (4.1ms) +Completed 200 OK in 41ms (Views: 39.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.9ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (3.4ms) +Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.4ms) +Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 0.6ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.4ms) +Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.9ms) begin transaction + Fixture Delete (1.5ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:03:47', '2013-01-31 14:03:47') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:03:48', '2013-01-31 14:03:48', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:03:48', '2013-01-31 14:03:48', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:03:48', '2013-01-31 14:03:48', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:03:48', '2013-01-31 14:03:48') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:03:48', '2013-01-31 14:03:48') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:03:48', '2013-01-31 14:03:48') + Fixture Insert (0.1ms) 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') +  (193.3ms) commit transaction +  (0.2ms) begin transaction + Ominous::Warning Load (4.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.2ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:03:48.447098' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (2.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (1.9ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 38ms (Views: 35.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.1ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 3.2ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) +  (1.1ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.2ms) 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) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (2.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (3.1ms) +Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.4ms) +Completed 200 OK in 14ms (Views: 11.2ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.5ms) +Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (1.0ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.9ms) begin transaction + Fixture Delete (1.3ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:04:16', '2013-01-31 14:04:16') + Fixture Insert (0.1ms) 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') + Fixture Delete (2.6ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:04:16', '2013-01-31 14:04:16', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:04:16', '2013-01-31 14:04:16', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:04:16', '2013-01-31 14:04:16', 113629430) + Fixture Delete (0.7ms) DELETE FROM "ominous_closers" + Fixture Insert (0.4ms) 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') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:04:16', '2013-01-31 14:04:16') + Fixture Delete (0.6ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:04:16', '2013-01-31 14:04:16') + Fixture Insert (0.1ms) 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') +  (235.2ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (2.6ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (1.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.2ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:04:17.232116' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 48ms (Views: 46.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.5ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.8ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 3.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.9ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (3.7ms) +Completed 200 OK in 45ms (Views: 42.6ms | ActiveRecord: 0.1ms) +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.3ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.5ms) +Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.6ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.1ms) +Completed 200 OK in 14ms (Views: 11.6ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.0ms) +Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (1.6ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 5ms (ActiveRecord: 1.7ms) +  (2.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.9ms) begin transaction + Fixture Delete (2.7ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.8ms) 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 14:04:30', '2013-01-31 14:04:30') + Fixture Insert (0.1ms) 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') + Fixture Delete (1.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:04:30', '2013-01-31 14:04:30', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:04:30', '2013-01-31 14:04:30', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:04:30', '2013-01-31 14:04:30', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:04:30', '2013-01-31 14:04:30') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:04:30', '2013-01-31 14:04:30') + Fixture Delete (0.4ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (250.8ms) commit transaction +  (0.2ms) begin transaction + Ominous::Warning Load (0.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (2.6ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.3ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:04:31.434170' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 42ms (Views: 40.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 1.6ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.1ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 6ms (ActiveRecord: 1.4ms) +  (0.3ms) SELECT COUNT(*) FROM "things" +  (0.9ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (3.9ms) +Completed 200 OK in 44ms (Views: 42.7ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.8ms) +Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (2.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.2ms) +Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (1.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.3ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.1ms) +Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.8ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (1.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.2ms) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (2.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.9ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.6ms) 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 14:07:57', '2013-01-31 14:07:57') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.7ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:07:57', '2013-01-31 14:07:57', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:07:57', '2013-01-31 14:07:57', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:07:57', '2013-01-31 14:07:57', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:07:57', '2013-01-31 14:07:57') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:07:57', '2013-01-31 14:07:57') + Fixture Delete (0.4ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (213.0ms) commit transaction +  (0.2ms) begin transaction + Ominous::Warning Load (8.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.5ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.3ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (1.4ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.3ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.2ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:07:58.433254' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (2.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (2.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 43ms (Views: 42.2ms | ActiveRecord: 0.1ms) +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.5ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 3.6ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.9ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (1.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (3.9ms) +Completed 200 OK in 47ms (Views: 45.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.4ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.9ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.9ms) +Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.5ms) +Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.6ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (2.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 6ms (ActiveRecord: 2.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (2.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.9ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (3.0ms) begin transaction + Fixture Delete (1.1ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.8ms) 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 14:11:08', '2013-01-31 14:11:08') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:11:08', '2013-01-31 14:11:08', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:11:08', '2013-01-31 14:11:08', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:11:08', '2013-01-31 14:11:08', 113629430) + Fixture Delete (0.8ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:11:08', '2013-01-31 14:11:08') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:11:08', '2013-01-31 14:11:08') + Fixture Delete (0.4ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (184.2ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.3ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.2ms) rollback transaction +  (0.4ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:11:08.828076' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 39ms (Views: 37.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.8ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 9ms (ActiveRecord: 2.9ms) +  (1.2ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.2ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (5.6ms) +Completed 200 OK in 58ms (Views: 54.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.4ms) +Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.4ms) +Completed 200 OK in 15ms (Views: 13.1ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.4ms) +Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 6ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.1ms) +  (2.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.9ms) begin transaction + Fixture Delete (1.1ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:11:54', '2013-01-31 14:11:54') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:11:54', '2013-01-31 14:11:54', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:11:54', '2013-01-31 14:11:54', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:11:54', '2013-01-31 14:11:54', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:11:54', '2013-01-31 14:11:54') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:11:54', '2013-01-31 14:11:54') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:11:54', '2013-01-31 14:11:54') + Fixture Insert (0.1ms) 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') +  (209.8ms) commit transaction +  (0.2ms) begin transaction + Ominous::Warning Load (1.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.4ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.4ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.7ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.2ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:11:54.823975' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (2.5ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 37ms (Views: 35.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", 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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 11ms (ActiveRecord: 1.5ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 7ms (ActiveRecord: 1.2ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (4.6ms) +Completed 200 OK in 49ms (Views: 45.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (4.7ms) +Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.3ms) +Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.5ms) +  (0.2ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.5ms) +Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (3.0ms) begin transaction + Fixture Delete (1.2ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:13:25', '2013-01-31 14:13:25') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.0ms) 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) + Fixture Insert (0.1ms) INSERT 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) + Fixture Insert (0.1ms) 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) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.0ms) 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') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:13:25', '2013-01-31 14:13:25') + Fixture Delete (0.4ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (229.4ms) commit transaction +  (0.2ms) begin transaction + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (1.0ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:13:25.702728' WHERE "ominous_warning_closers"."id" = 298486374 +  (1.4ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.5ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (1.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 40ms (Views: 37.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.6ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 3.7ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.5ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (1.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (1.5ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (3.9ms) +Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (1.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.5ms) +Completed 200 OK in 14ms (Views: 10.7ms | ActiveRecord: 1.7ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (1.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.6ms) +Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms) +  (1.9ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 5ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.9ms) begin transaction + Fixture Delete (1.1ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:15:10', '2013-01-31 14:15:10') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:15:10', '2013-01-31 14:15:10', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:15:10', '2013-01-31 14:15:10', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:15:10', '2013-01-31 14:15:10', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:15:10', '2013-01-31 14:15:10') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:15:10', '2013-01-31 14:15:10') + Fixture Delete (0.6ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:15:10', '2013-01-31 14:15:10') + Fixture Insert (0.1ms) 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') +  (221.8ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.6ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.5ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:15:11.127259' WHERE "ominous_warning_closers"."id" = 298486374 +  (2.4ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 40ms (Views: 38.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 12ms (ActiveRecord: 1.6ms) +  (0.6ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 4ms (ActiveRecord: 1.2ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.5ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (4.3ms) +Completed 200 OK in 48ms (Views: 46.3ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (7.8ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.9ms) +Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.8ms) +Completed 200 OK in 19ms (Views: 16.9ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.7ms) +Completed 200 OK in 11ms (Views: 7.8ms | ActiveRecord: 0.5ms) +  (0.2ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.6ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 6ms (ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.4ms) SELECT "things".* FROM "things" +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.8ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.6ms) 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 14:15:28', '2013-01-31 14:15:28') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:15:28', '2013-01-31 14:15:28', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:15:28', '2013-01-31 14:15:28', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:15:28', '2013-01-31 14:15:28', 113629430) + Fixture Delete (0.6ms) DELETE FROM "ominous_closers" + Fixture Insert (0.2ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:15:28', '2013-01-31 14:15:28') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:15:28', '2013-01-31 14:15:28') + Fixture Delete (4.3ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (266.0ms) commit transaction +  (0.2ms) begin transaction + Ominous::Warning Load (0.9ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.5ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.3ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:15:29.084739' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (1.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 41ms (Views: 39.5ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.6ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 9ms (ActiveRecord: 2.8ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (1.2ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (1.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (4.7ms) +Completed 200 OK in 44ms (Views: 42.3ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.8ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.7ms) +Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.5ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 5ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (0.9ms) begin transaction + Fixture Delete (1.1ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.6ms) 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 14:15:44', '2013-01-31 14:15:44') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:15:45', '2013-01-31 14:15:45', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:15:45', '2013-01-31 14:15:45', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:15:45', '2013-01-31 14:15:45', 113629430) + Fixture Delete (0.7ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:15:45', '2013-01-31 14:15:45') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:15:45', '2013-01-31 14:15:45') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:15:45', '2013-01-31 14:15:45') + Fixture Insert (0.1ms) 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') +  (229.3ms) commit transaction +  (0.3ms) begin transaction + Ominous::Warning Load (1.9ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (1.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (1.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.2ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:15:45.528660' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.5ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 39ms (Views: 37.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 1.6ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.2ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (1.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (6.1ms) +Completed 200 OK in 44ms (Views: 41.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (5.3ms) +Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.1ms) +Completed 200 OK in 14ms (Views: 11.3ms | ActiveRecord: 0.8ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.4ms) +Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.6ms) +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (1.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 1.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (1.6ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (2.9ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (1.0ms) begin transaction + Fixture Delete (1.1ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:17:01', '2013-01-31 14:17:01') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:17:01', '2013-01-31 14:17:01', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:17:01', '2013-01-31 14:17:01', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:17:01', '2013-01-31 14:17:01', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:17:01', '2013-01-31 14:17:01') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:17:01', '2013-01-31 14:17:01') + Fixture Delete (0.5ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 14:17:01', '2013-01-31 14:17:01') + Fixture Insert (0.1ms) 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') +  (135.4ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:17:01.984412' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.5ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.4ms) 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.1ms | ActiveRecord: 0.4ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.9ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", 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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 9ms (ActiveRecord: 2.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 9ms (ActiveRecord: 1.1ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (3.7ms) +Completed 200 OK in 42ms (Views: 40.8ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.4ms) +Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.8ms) +Completed 200 OK in 17ms (Views: 14.7ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.7ms) +Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (2.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.9ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.9ms) +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 6ms (ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (1.8ms) begin transaction + Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" + Fixture Insert (1.0ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 14:22:33', '2013-01-31 14:22:33') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 14:22:33', '2013-01-31 14:22:33', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 14:22:33', '2013-01-31 14:22:33', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 14:22:33', '2013-01-31 14:22:33', 113629430) + Fixture Delete (0.7ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 14:22:33', '2013-01-31 14:22:33') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 14:22:33', '2013-01-31 14:22:33') + Fixture Delete (0.4ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT 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') + Fixture Insert (0.1ms) 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') +  (153.9ms) commit transaction +  (0.0ms) begin transaction + Ominous::Warning Load (2.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (2.3ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.3ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (1.5ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 14:22:33.679405' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 38ms (Views: 36.5ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.1ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 10ms (ActiveRecord: 3.3ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (2.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Rendered things/_form.html.erb (3.8ms) +Completed 200 OK in 43ms (Views: 41.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.4ms) +Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.5ms) +Completed 200 OK in 15ms (Views: 13.1ms | ActiveRecord: 0.5ms) +  (0.5ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.6ms) +Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.7ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (1.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +Connecting to database specified by database.yml +  (2.7ms) begin transaction + Fixture Delete (1.2ms) DELETE FROM "ominous_warnings" + Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-01-31 15:47:36', '2013-01-31 15:47:36') + Fixture Insert (0.1ms) 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') + Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-01-31 15:47:36', '2013-01-31 15:47:36', 980190962) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-01-31 15:47:36', '2013-01-31 15:47:36', 298486374) + Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-01-31 15:47:36', '2013-01-31 15:47:36', 113629430) + Fixture Delete (0.5ms) DELETE FROM "ominous_closers" + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-01-31 15:47:36', '2013-01-31 15:47:36') + Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-01-31 15:47:36', '2013-01-31 15:47:36') + Fixture Delete (0.6ms) DELETE FROM "things" + Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-01-31 15:47:36', '2013-01-31 15:47:36') + Fixture Insert (0.1ms) 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') +  (222.8ms) commit transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.0ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Exists (0.3ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (1.0ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Closer Load (0.5ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) + Ominous::WarningCloser Exists (2.3ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1 +  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-01-31 15:47:36.652910' WHERE "ominous_warning_closers"."id" = 298486374 +  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1) +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position +  (1.6ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by Ominous::WarningsController#dismiss as HTML + Parameters: {"id"=>"1"} + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] + Rendered text template (0.0ms) +Completed 200 OK in 39ms (Views: 37.6ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#create as HTML + Parameters: {"thing"=>{"name"=>"Foo"}} +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.8ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["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]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/3 +Completed 302 Found in 11ms (ActiveRecord: 4.0ms) +  (0.1ms) SELECT COUNT(*) FROM "things"  +  (0.5ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (1.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +  (0.1ms) SELECT COUNT(*) FROM "things"  +Processing by ThingsController#destroy as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) +  (0.1ms) SELECT COUNT(*) FROM "things" +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#edit as HTML + Parameters: {"id"=>"1"} + Thing Load (1.8ms) 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) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#index as HTML + Thing Load (0.2ms) SELECT "things".* FROM "things" +Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#new as HTML + Rendered things/_form.html.erb (2.2ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] + Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (13.5ms) +Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 0.5ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 + Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position + Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.6ms) +Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 1.3ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"1"} + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) +  (0.1ms) rollback transaction +  (0.1ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#show as HTML + Parameters: {"id"=>"2"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] +Processing by ThingsController#update as HTML + Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://test.host/things/1 +Completed 302 Found in 4ms (ActiveRecord: 0.2ms) +  (0.1ms) rollback transaction +  (0.0ms) begin transaction + Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] + Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] + Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] + Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 +Processing by ThingsController#index as HTML + Thing Load (0.1ms) SELECT "things".* FROM "things" +Completed 200 OK in 12ms (Views: 11.0ms | ActiveRecord: 0.1ms) +  (0.1ms) rollback transaction