Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.6ms) BEGIN  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) BEGIN Mysql2::Error: Table 'ominous_test.ominous_warnings' doesn't exist: SHOW FULL FIELDS FROM `ominous_warnings`  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) BEGIN Mysql2::Error: Table 'ominous_test.ominous_warnings' doesn't exist: SHOW FULL FIELDS FROM `ominous_warnings`  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (2.3ms) ROLLBACK Connecting to database specified by database.yml  (197.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (301.3ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (3.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateOminousWarnings (20121206144249)  (138.5ms) CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (32.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121206144249') Migrating to CreateOminousWarningClosers (20121206145743)  (163.9ms) CREATE TABLE `ominous_warning_closers` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `warning_id` int(11), `closer_id` int(11), `position` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (33.7ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121206145743') Migrating to CreateOminousClosers (20121206153254)  (144.0ms) CREATE TABLE `ominous_closers` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `url` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (32.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121206153254')  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` Connecting to database specified by database.yml  (0.3ms) BEGIN Ominous::Warning Load (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) BEGIN Ominous::Warning Load (2.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) BEGIN Ominous::Warning Load (2.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (2.9ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.5ms) BEGIN Ominous::Warning Load (3.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (35.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-06 16:00:41', '2012-12-06 16:00:41') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-06 16:00:41', '2012-12-06 16:00:41') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-06 16:00:42', '2012-12-06 16:00:42', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-06 16:00:42', '2012-12-06 16:00:42', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-06 16:00:42', '2012-12-06 16:00:42', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-06 16:00:42', '2012-12-06 16:00:42') Fixture Insert (0.3ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-06 16:00:42', '2012-12-06 16:00:42')  (25.1ms) COMMIT  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Ominous::Warning Load (0.6ms) 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) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (3.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.8ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-06 16:03:44', '2012-12-06 16:03:44') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-06 16:03:44', '2012-12-06 16:03:44') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-06 16:03:44', '2012-12-06 16:03:44', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-06 16:03:44', '2012-12-06 16:03:44', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-06 16:03:44', '2012-12-06 16:03:44', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-06 16:03:44', '2012-12-06 16:03:44') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-06 16:03:44', '2012-12-06 16:03:44')  (85.7ms) COMMIT  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (1.1ms) BEGIN Ominous::Warning Load (4.1ms) 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::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (1.2ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-06 16:04:53', '2012-12-06 16:04:53') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-06 16:04:53', '2012-12-06 16:04:53') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-06 16:04:53', '2012-12-06 16:04:53', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-06 16:04:53', '2012-12-06 16:04:53', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-06 16:04:53', '2012-12-06 16:04:53', 113629430) Fixture Delete (0.6ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-06 16:04:54', '2012-12-06 16:04:54') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-06 16:04:54', '2012-12-06 16:04:54')  (68.0ms) COMMIT  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.8ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (2.5ms) DELETE FROM `ominous_warnings` Fixture Insert (1.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 08:25:51', '2012-12-07 08:25:51') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 08:25:51', '2012-12-07 08:25:51') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 08:25:51', '2012-12-07 08:25:51', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 08:25:51', '2012-12-07 08:25:51', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 08:25:51', '2012-12-07 08:25:51', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 08:25:51', '2012-12-07 08:25:51') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 08:25:51', '2012-12-07 08:25:51')  (73.2ms) COMMIT  (2.3ms) SET FOREIGN_KEY_CHECKS = 1  (1.8ms) BEGIN Ominous::Warning Load (3.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (7.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (1.8ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (4.0ms) BEGIN Fixture Delete (1.0ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:09:05', '2012-12-07 09:09:05') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:09:05', '2012-12-07 09:09:05') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:09:06', '2012-12-07 09:09:06', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:09:06', '2012-12-07 09:09:06', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:09:06', '2012-12-07 09:09:06', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:09:06', '2012-12-07 09:09:06') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:09:06', '2012-12-07 09:09:06')  (35.5ms) COMMIT  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (0.8ms) 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 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) ROLLBACK  (0.4ms) BEGIN  (2.6ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) ROLLBACK  (3.8ms) BEGIN  (0.7ms) ROLLBACK  (0.4ms) BEGIN  (2.7ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:10:26', '2012-12-07 09:10:26') Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:10:26', '2012-12-07 09:10:26') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:10:26', '2012-12-07 09:10:26', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:10:26', '2012-12-07 09:10:26', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:10:26', '2012-12-07 09:10:26', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:10:26', '2012-12-07 09:10:26') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:10:26', '2012-12-07 09:10:26')  (47.7ms) COMMIT  (1.6ms) SET FOREIGN_KEY_CHECKS = 1  (1.7ms) BEGIN Ominous::Warning Load (1.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK Connecting to database specified by database.yml Unable to load ominous/thing, underlying cause No such file to load -- ominous/thing /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:317:in `rescue in depend_on' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:312:in `depend_on' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:225:in `require_dependency' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:767:in `try_to_load_dependency' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:782:in `block in require_fixture_classes' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:779:in `each' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:779:in `require_fixture_classes' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:762:in `fixtures' /home/rob/web/ominous/test/test_helper.rb:18:in `' /home/rob/web/ominous/test/test_helper.rb:17:in `' /home/rob/web/ominous/test/dummy/test/functional/things_controller_test.rb:1:in `require' /home/rob/web/ominous/test/dummy/test/functional/things_controller_test.rb:1:in `' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:10:in `require' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:9:in `each' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:9:in `block in
' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:4:in `select' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:4:in `
'  (1.9ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (3.4ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:13:30', '2012-12-07 09:13:30') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:13:30', '2012-12-07 09:13:30') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:13:30', '2012-12-07 09:13:30', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:13:30', '2012-12-07 09:13:30', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:13:30', '2012-12-07 09:13:30', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (90.5ms) ROLLBACK  (1.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.6ms) SELECT @@FOREIGN_KEY_CHECKS  (1.3ms) SET FOREIGN_KEY_CHECKS = 0  (1.1ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:13:30', '2012-12-07 09:13:30') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:13:30', '2012-12-07 09:13:30') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:13:30', '2012-12-07 09:13:30', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:13:30', '2012-12-07 09:13:30', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:13:30', '2012-12-07 09:13:30', 113629430) Fixture Delete (1.4ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (45.7ms) ROLLBACK  (1.8ms) SET FOREIGN_KEY_CHECKS = 1  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (0.8ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (43.0ms) ROLLBACK  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (0.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Delete (2.2ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (37.8ms) ROLLBACK  (1.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (1.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 113629430) Fixture Delete (0.6ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (40.6ms) ROLLBACK  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (1.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Insert (2.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 113629430) Fixture Delete (1.0ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (59.7ms) ROLLBACK  (2.2ms) SET FOREIGN_KEY_CHECKS = 1  (1.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (3.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (37.8ms) ROLLBACK  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (0.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Insert (1.2ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 298486374) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (37.8ms) ROLLBACK  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (0.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:13:31', '2012-12-07 09:13:31') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:13:31', '2012-12-07 09:13:31', 113629430) Fixture Delete (2.0ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (44.2ms) ROLLBACK  (8.8ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (20.8ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateOminousWarnings (20121206144249)  (4.2ms) CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Mysql2::Error: Table 'ominous_warnings' already exists: CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Connecting to database specified by database.yml Unable to load ominous/thing, underlying cause No such file to load -- ominous/thing /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:317:in `rescue in depend_on' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:312:in `depend_on' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:225:in `require_dependency' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:767:in `try_to_load_dependency' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:782:in `block in require_fixture_classes' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:779:in `each' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:779:in `require_fixture_classes' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:762:in `fixtures' /home/rob/web/ominous/test/test_helper.rb:18:in `' /home/rob/web/ominous/test/test_helper.rb:17:in `' /home/rob/web/ominous/test/dummy/test/functional/things_controller_test.rb:1:in `require' /home/rob/web/ominous/test/dummy/test/functional/things_controller_test.rb:1:in `' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:10:in `require' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:9:in `each' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:9:in `block in
' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:4:in `select' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:4:in `
'  (1.7ms) SELECT @@FOREIGN_KEY_CHECKS  (5.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) 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, 'one', '2012-12-07 09:14:51', '2012-12-07 09:14:51') Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:14:51', '2012-12-07 09:14:51') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:14:51', '2012-12-07 09:14:51', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:14:51', '2012-12-07 09:14:51', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:14:51', '2012-12-07 09:14:51', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (84.8ms) ROLLBACK  (1.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.9ms) SELECT @@FOREIGN_KEY_CHECKS  (1.1ms) SET FOREIGN_KEY_CHECKS = 0  (4.4ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (39.9ms) ROLLBACK  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (38.9ms) ROLLBACK  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (0.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (43.5ms) ROLLBACK  (1.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (1.3ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 113629430) Fixture Delete (0.9ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (42.7ms) ROLLBACK  (1.7ms) SET FOREIGN_KEY_CHECKS = 1  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (4.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 980190962) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 113629430) Fixture Delete (2.3ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (40.0ms) ROLLBACK  (1.8ms) SET FOREIGN_KEY_CHECKS = 1  (2.2ms) SELECT @@FOREIGN_KEY_CHECKS  (1.0ms) SET FOREIGN_KEY_CHECKS = 0  (1.2ms) BEGIN Fixture Delete (1.2ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Delete (3.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 298486374) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 113629430) Fixture Delete (0.9ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (39.6ms) ROLLBACK  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 298486374) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (33.4ms) ROLLBACK  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:14:52', '2012-12-07 09:14:52') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 298486374) Fixture Insert (1.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:14:52', '2012-12-07 09:14:52', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (38.7ms) ROLLBACK  (1.1ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (2.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateThings (20121207090710)  (0.5ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` Connecting to database specified by database.yml Unable to load ominous/thing, underlying cause No such file to load -- ominous/thing /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:317:in `rescue in depend_on' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:312:in `depend_on' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/dependencies.rb:225:in `require_dependency' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:767:in `try_to_load_dependency' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:782:in `block in require_fixture_classes' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:779:in `each' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:779:in `require_fixture_classes' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/fixtures.rb:762:in `fixtures' /home/rob/web/ominous/test/test_helper.rb:18:in `' /home/rob/web/ominous/test/test_helper.rb:17:in `' /home/rob/web/ominous/test/dummy/test/functional/things_controller_test.rb:1:in `require' /home/rob/web/ominous/test/dummy/test/functional/things_controller_test.rb:1:in `' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:10:in `require' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:9:in `each' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:9:in `block in
' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:4:in `select' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/rake-10.0.2/lib/rake/rake_test_loader.rb:4:in `
'  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (6.1ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) 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, 'one', '2012-12-07 09:16:08', '2012-12-07 09:16:08') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:16:08', '2012-12-07 09:16:08') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:16:08', '2012-12-07 09:16:08', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:16:08', '2012-12-07 09:16:08', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:16:08', '2012-12-07 09:16:08', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (54.0ms) ROLLBACK  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (0.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:16:08', '2012-12-07 09:16:08') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:16:08', '2012-12-07 09:16:08') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:16:08', '2012-12-07 09:16:08', 980190962) Fixture Insert (3.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:16:08', '2012-12-07 09:16:08', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:16:08', '2012-12-07 09:16:08', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (49.0ms) ROLLBACK  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (0.9ms) BEGIN Fixture Delete (1.0ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:16:08', '2012-12-07 09:16:08') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:16:08', '2012-12-07 09:16:08') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:16:08', '2012-12-07 09:16:08', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:16:08', '2012-12-07 09:16:08', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:16:08', '2012-12-07 09:16:08', 113629430) Fixture Delete (0.6ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (37.6ms) ROLLBACK  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.9ms) SELECT @@FOREIGN_KEY_CHECKS  (1.3ms) SET FOREIGN_KEY_CHECKS = 0  (1.2ms) BEGIN Fixture Delete (4.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:16:08', '2012-12-07 09:16:08') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:16:08', '2012-12-07 09:16:08') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:16:08', '2012-12-07 09:16:08', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:16:08', '2012-12-07 09:16:08', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:16:08', '2012-12-07 09:16:08', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (44.5ms) ROLLBACK  (1.0ms) SET FOREIGN_KEY_CHECKS = 1  (3.0ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (0.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:16:09', '2012-12-07 09:16:09') Fixture Insert (2.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:16:09', '2012-12-07 09:16:09') Fixture Delete (1.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (43.3ms) ROLLBACK  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (0.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:16:09', '2012-12-07 09:16:09') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:16:09', '2012-12-07 09:16:09') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (3.0ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 113629430) Fixture Delete (0.9ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (40.9ms) ROLLBACK  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (3.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (1.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:16:09', '2012-12-07 09:16:09') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:16:09', '2012-12-07 09:16:09') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (39.9ms) ROLLBACK  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) BEGIN Fixture Delete (0.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:16:09', '2012-12-07 09:16:09') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:16:09', '2012-12-07 09:16:09') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 298486374) Fixture Insert (0.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (36.0ms) ROLLBACK  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.8ms) BEGIN Fixture Delete (0.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:16:09', '2012-12-07 09:16:09') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:16:09', '2012-12-07 09:16:09') Fixture Delete (0.3ms) DELETE FROM `ominous_warning_closers` Fixture Insert (1.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:16:09', '2012-12-07 09:16:09', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_things` Mysql2::Error: Table 'ominous_test.ominous_things' doesn't exist: DELETE FROM `ominous_things`  (36.4ms) ROLLBACK  (0.3ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (8.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (4.3ms) BEGIN Fixture Delete (1.2ms) DELETE FROM `ominous_warnings` Fixture Insert (2.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:20:31', '2012-12-07 09:20:31') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:20:31', '2012-12-07 09:20:31') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:20:31', '2012-12-07 09:20:31', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:20:31', '2012-12-07 09:20:31', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:20:31', '2012-12-07 09:20:31', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:20:31', '2012-12-07 09:20:31') Fixture Insert (0.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:20:31', '2012-12-07 09:20:31') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Foo', '2012-12-07 09:20:31', '2012-12-07 09:20:31') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'Bar', '2012-12-07 09:20:31', '2012-12-07 09:20:31')  (80.3ms) COMMIT  (2.0ms) SET FOREIGN_KEY_CHECKS = 1  (1.4ms) BEGIN Ominous::Warning Load (2.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO `things` (`created_at`, `name`, `updated_at`) VALUES ('2012-12-07 09:20:31', 'Foo', '2012-12-07 09:20:31')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 29ms (ActiveRecord: 2.8ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (31.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (1.1ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 3.5ms)  (1.5ms) SELECT COUNT(*) FROM `things`   (37.6ms) ROLLBACK  (3.7ms) BEGIN Thing Load (2.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (155.4ms) Completed 200 OK in 367ms (Views: 364.4ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.9ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.9ms)  (0.7ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.9ms) Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)  (1.2ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.7ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 1.9ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (4.8ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (2.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:20:43', '2012-12-07 09:20:43') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:20:43', '2012-12-07 09:20:43') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:20:43', '2012-12-07 09:20:43', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:20:43', '2012-12-07 09:20:43', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:20:43', '2012-12-07 09:20:43', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:20:43', '2012-12-07 09:20:43') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:20:43', '2012-12-07 09:20:43') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Foo', '2012-12-07 09:20:43', '2012-12-07 09:20:43') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'Bar', '2012-12-07 09:20:43', '2012-12-07 09:20:43')  (58.1ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.7ms) 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 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.9ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `name`, `updated_at`) VALUES ('2012-12-07 09:20:43', 'Foo', '2012-12-07 09:20:43')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/4 Completed 302 Found in 10ms (ActiveRecord: 2.1ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (43.6ms) ROLLBACK  (2.0ms) BEGIN Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.1ms) SAVEPOINT active_record_1 SQL (1.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (3.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 19ms (ActiveRecord: 6.9ms)  (0.9ms) SELECT COUNT(*) FROM `things`   (40.2ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.9ms) Completed 200 OK in 57ms (Views: 54.2ms | ActiveRecord: 0.8ms)  (3.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (2.1ms) SELECT `things`.* FROM `things`  Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 2.1ms)  (0.7ms) ROLLBACK  (1.3ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.1ms) Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (1.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 3.3ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.9ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (4.4ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:21:12', '2012-12-07 09:21:12') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:21:12', '2012-12-07 09:21:12') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:21:12', '2012-12-07 09:21:12', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:21:12', '2012-12-07 09:21:12', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:21:12', '2012-12-07 09:21:12', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:21:12', '2012-12-07 09:21:12') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:21:12', '2012-12-07 09:21:12') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Foo', '2012-12-07 09:21:12', '2012-12-07 09:21:12') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'Bar', '2012-12-07 09:21:12', '2012-12-07 09:21:12')  (44.3ms) COMMIT  (1.8ms) SET FOREIGN_KEY_CHECKS = 1  (1.7ms) BEGIN Ominous::Warning Load (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (4.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.8ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (3.3ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `name`, `updated_at`) VALUES ('2012-12-07 09:21:13', 'Foo', '2012-12-07 09:21:13')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/5 Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (60.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (1.3ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 3.4ms)  (0.9ms) SELECT COUNT(*) FROM `things`   (92.1ms) ROLLBACK  (2.7ms) BEGIN Thing Load (2.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (3.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.0ms) Completed 200 OK in 79ms (Views: 72.0ms | ActiveRecord: 3.6ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.8ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.0ms) Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 1.8ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (1.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 2.7ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (12.5ms) SET FOREIGN_KEY_CHECKS = 0  (5.0ms) BEGIN Fixture Delete (1.2ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:23:15', '2012-12-07 09:23:15') Fixture Insert (2.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:23:15', '2012-12-07 09:23:15') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (7.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:23:15', '2012-12-07 09:23:15', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:23:15', '2012-12-07 09:23:15', 298486374) Fixture Insert (6.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:23:15', '2012-12-07 09:23:15', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:23:15', '2012-12-07 09:23:15') Fixture Insert (6.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:23:15', '2012-12-07 09:23:15') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (6.0ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Foo', '2012-12-07 09:23:15', '2012-12-07 09:23:15') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'Bar', '2012-12-07 09:23:15', '2012-12-07 09:23:15')  (80.2ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (6.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (6.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (5.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (2.2ms) ROLLBACK  (0.6ms) BEGIN  (1.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (3.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (2.9ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (4.5ms) SAVEPOINT active_record_1 SQL (3.9ms) INSERT INTO `things` (`created_at`, `name`, `updated_at`) VALUES ('2012-12-07 09:23:16', 'Foo', '2012-12-07 09:23:16')  (3.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/6 Completed 302 Found in 20ms (ActiveRecord: 12.0ms)  (8.4ms) SELECT COUNT(*) FROM `things`   (42.9ms) ROLLBACK  (3.8ms) BEGIN Thing Load (4.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.7ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (9.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (3.6ms) SAVEPOINT active_record_1 SQL (2.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (2.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 23ms (ActiveRecord: 18.3ms)  (5.6ms) SELECT COUNT(*) FROM `things`  (103.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (8.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (18.6ms) Completed 200 OK in 160ms (Views: 149.7ms | ActiveRecord: 8.9ms)  (3.3ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (7.6ms) SELECT `things`.* FROM `things` Completed 200 OK in 30ms (Views: 20.4ms | ActiveRecord: 7.6ms)  (4.1ms) ROLLBACK  (0.7ms) BEGIN Thing Load (4.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.0ms) Completed 200 OK in 19ms (Views: 18.7ms | ActiveRecord: 0.0ms)  (3.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (13.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (3.9ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 22ms (ActiveRecord: 17.9ms)  (4.8ms) ROLLBACK Connecting to database specified by database.yml  (0.9ms) SELECT @@FOREIGN_KEY_CHECKS  (8.8ms) SET FOREIGN_KEY_CHECKS = 0  (1.7ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:23:47', '2012-12-07 09:23:47') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:23:47', '2012-12-07 09:23:47') Fixture Delete (6.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:23:47', '2012-12-07 09:23:47', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:23:47', '2012-12-07 09:23:47', 298486374) Fixture Insert (6.1ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:23:47', '2012-12-07 09:23:47', 113629430) Fixture Delete (3.7ms) DELETE FROM `ominous_closers` Fixture Insert (2.0ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:23:47', '2012-12-07 09:23:47') Fixture Insert (4.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:23:47', '2012-12-07 09:23:47') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (3.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Foo', '2012-12-07 09:23:47', '2012-12-07 09:23:47') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'Bar', '2012-12-07 09:23:47', '2012-12-07 09:23:47')  (48.5ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (4.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (5.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (6.8ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (2.9ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.9ms) SAVEPOINT active_record_1 SQL (7.1ms) INSERT INTO `things` (`created_at`, `name`, `updated_at`) VALUES ('2012-12-07 09:23:47', 'Foo', '2012-12-07 09:23:47')  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/7 Completed 302 Found in 15ms (ActiveRecord: 8.7ms)  (1.3ms) SELECT COUNT(*) FROM `things`  (42.0ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (8.1ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 2.7ms)  (4.5ms) SELECT COUNT(*) FROM `things`   (106.9ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (7.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (21.8ms) Completed 200 OK in 137ms (Views: 127.8ms | ActiveRecord: 7.5ms)  (0.8ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 16ms (Views: 13.3ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (8.4ms) Completed 200 OK in 17ms (Views: 16.7ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (4.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (5.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 15ms (Views: 7.3ms | ActiveRecord: 5.7ms)  (5.2ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.6ms) SAVEPOINT active_record_1  (7.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 19ms (ActiveRecord: 9.7ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.9ms) SELECT @@FOREIGN_KEY_CHECKS  (1.0ms) SET FOREIGN_KEY_CHECKS = 0  (1.7ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:36:25', '2012-12-07 09:36:25') Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:36:25', '2012-12-07 09:36:25') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:36:25', '2012-12-07 09:36:25', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:36:25', '2012-12-07 09:36:25', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:36:25', '2012-12-07 09:36:25', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:36:25', '2012-12-07 09:36:25') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:36:25', '2012-12-07 09:36:25') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Foo', '2012-12-07 09:36:25', '2012-12-07 09:36:25') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'Bar', '2012-12-07 09:36:25', '2012-12-07 09:36:25')  (68.2ms) COMMIT  (2.8ms) SET FOREIGN_KEY_CHECKS = 1  (2.7ms) BEGIN Ominous::Warning Load (2.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `things` (`created_at`, `name`, `updated_at`) VALUES ('2012-12-07 09:36:26', 'Foo', '2012-12-07 09:36:26')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/8 Completed 302 Found in 11ms (ActiveRecord: 2.2ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (39.0ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (2.5ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (5.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (5.0ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 15ms (ActiveRecord: 11.9ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (40.2ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.9ms) Completed 200 OK in 67ms (Views: 62.1ms | ActiveRecord: 3.2ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.8ms)  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.3ms) Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 9ms (ActiveRecord: 1.9ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:38:28', '2012-12-07 09:38:28') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:38:28', '2012-12-07 09:38:28') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:38:29', '2012-12-07 09:38:29', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:38:29', '2012-12-07 09:38:29', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:38:29', '2012-12-07 09:38:29', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (3.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:38:29', '2012-12-07 09:38:29') Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:38:29', '2012-12-07 09:38:29') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Foo', '2012-12-07 09:38:29', '2012-12-07 09:38:29') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'Bar', '2012-12-07 09:38:29', '2012-12-07 09:38:29')  (59.4ms) COMMIT  (1.9ms) SET FOREIGN_KEY_CHECKS = 1  (0.7ms) BEGIN Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (3.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (1.7ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.1ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `name`, `updated_at`) VALUES ('2012-12-07 09:38:29', 'Foo', '2012-12-07 09:38:29')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/9 Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (45.1ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 4.1ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (46.7ms) ROLLBACK  (9.4ms) BEGIN Thing Load (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (8.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (20.8ms) Completed 200 OK in 112ms (Views: 101.7ms | ActiveRecord: 8.7ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (5.7ms) SELECT `things`.* FROM `things`  Completed 200 OK in 16ms (Views: 9.3ms | ActiveRecord: 5.7ms)  (2.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (7.0ms) Completed 200 OK in 10ms (Views: 10.0ms | ActiveRecord: 0.0ms)  (2.6ms) ROLLBACK  (0.9ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (2.4ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 10ms (ActiveRecord: 4.2ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (1.2ms) SELECT @@FOREIGN_KEY_CHECKS  (4.6ms) SET FOREIGN_KEY_CHECKS = 0  (2.1ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:41:04', '2012-12-07 09:41:04') Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:41:04', '2012-12-07 09:41:04') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:41:04', '2012-12-07 09:41:04', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:41:04', '2012-12-07 09:41:04', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:41:04', '2012-12-07 09:41:04', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:41:05', '2012-12-07 09:41:05') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:41:05', '2012-12-07 09:41:05') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Foo', '2012-12-07 09:41:05', '2012-12-07 09:41:05') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'Bar', '2012-12-07 09:41:05', '2012-12-07 09:41:05')  (41.3ms) COMMIT  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (1.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (1.9ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `name`, `updated_at`) VALUES ('2012-12-07 09:41:05', 'Foo', '2012-12-07 09:41:05')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/10 Completed 302 Found in 17ms (ActiveRecord: 2.0ms)  (7.8ms) SELECT COUNT(*) FROM `things`  (40.0ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (3.1ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (4.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (4.5ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 14ms (ActiveRecord: 10.4ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (39.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (5.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.2ms) Completed 200 OK in 64ms (Views: 57.1ms | ActiveRecord: 5.4ms)  (4.1ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (3.6ms) SELECT `things`.* FROM `things`  Completed 200 OK in 12ms (Views: 5.1ms | ActiveRecord: 3.6ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.5ms) Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.7ms)  (2.4ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 2.4ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (2.9ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:42:03', '2012-12-07 09:42:03') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:42:03', '2012-12-07 09:42:03') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:42:03', '2012-12-07 09:42:03', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:42:03', '2012-12-07 09:42:03', 298486374) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:42:03', '2012-12-07 09:42:03', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:42:03', '2012-12-07 09:42:03') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:42:03', '2012-12-07 09:42:03') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Foo', '2012-12-07 09:42:03', '2012-12-07 09:42:03') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'Bar', '2012-12-07 09:42:03', '2012-12-07 09:42:03')  (83.3ms) COMMIT  (2.0ms) SET FOREIGN_KEY_CHECKS = 1  (1.4ms) BEGIN Ominous::Warning Load (2.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (6.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (4.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}} Completed 500 Internal Server Error in 1ms  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.6ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (49.3ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.5ms) Completed 200 OK in 67ms (Views: 64.2ms | ActiveRecord: 0.9ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 16ms (Views: 12.9ms | ActiveRecord: 1.5ms)  (2.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (2.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Completed 500 Internal Server Error in 1ms  (0.7ms) ROLLBACK  (0.9ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.8ms)  (1.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) SAVEPOINT active_record_1  (1.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 2.5ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.9ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (2.6ms) BEGIN Fixture Delete (2.2ms) DELETE FROM `ominous_warnings` Fixture Insert (1.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:42:32', '2012-12-07 09:42:32') Fixture Insert (1.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:42:32', '2012-12-07 09:42:32') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:42:32', '2012-12-07 09:42:32', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:42:32', '2012-12-07 09:42:32', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:42:32', '2012-12-07 09:42:32', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:42:32', '2012-12-07 09:42:32') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:42:32', '2012-12-07 09:42:32') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Foo', '2012-12-07 09:42:32', '2012-12-07 09:42:32') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'Bar', '2012-12-07 09:42:32', '2012-12-07 09:42:32')  (68.3ms) COMMIT  (1.0ms) SET FOREIGN_KEY_CHECKS = 1  (2.6ms) BEGIN Ominous::Warning Load (1.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (1.1ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `name`, `updated_at`) VALUES ('2012-12-07 09:42:32', 'Foo', '2012-12-07 09:42:32')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/11 Completed 302 Found in 10ms (ActiveRecord: 1.9ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (59.9ms) ROLLBACK  (1.3ms) BEGIN Thing Load (3.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.5ms)  (2.3ms) SELECT COUNT(*) FROM `things`   (54.5ms) ROLLBACK  (6.4ms) BEGIN Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (17.1ms) Completed 200 OK in 85ms (Views: 78.0ms | ActiveRecord: 1.0ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (3.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (5.4ms) SELECT `things`.* FROM `things`  Completed 200 OK in 16ms (Views: 9.2ms | ActiveRecord: 5.4ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (8.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.3ms) Completed 200 OK in 14ms (Views: 13.8ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (5.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.8ms)  (10.3ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (8.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 14ms (ActiveRecord: 10.1ms)  (2.6ms) ROLLBACK Connecting to database specified by database.yml  (5.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.8ms) SET FOREIGN_KEY_CHECKS = 0  (3.0ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (7.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (7.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 298486374) Fixture Insert (2.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (3.9ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Insert (2.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (1.0ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:08', '2012-12-07 09:56:08') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:08', '2012-12-07 09:56:08')  (87.8ms) ROLLBACK  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (1.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.9ms) SET FOREIGN_KEY_CHECKS = 0  (1.8ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 980190962) Fixture Insert (1.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 113629430) Fixture Delete (2.9ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:08', '2012-12-07 09:56:08') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:08', '2012-12-07 09:56:08')  (136.8ms) ROLLBACK  (1.5ms) SET FOREIGN_KEY_CHECKS = 1  (1.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Insert (2.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 113629430) Fixture Delete (0.6ms) DELETE FROM `ominous_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.8ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:08', '2012-12-07 09:56:08') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:08', '2012-12-07 09:56:08')  (51.7ms) ROLLBACK  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (0.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Delete (2.0ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Delete (1.2ms) DELETE FROM `things` Fixture Insert (0.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:08', '2012-12-07 09:56:08') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:08', '2012-12-07 09:56:08')  (72.2ms) ROLLBACK  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (0.9ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (0.8ms) BEGIN Fixture Delete (6.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:08', '2012-12-07 09:56:08') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (2.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:08', '2012-12-07 09:56:08', 113629430) Fixture Delete (9.2ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Insert (3.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Delete (0.7ms) DELETE FROM `things` Fixture Insert (2.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:09', '2012-12-07 09:56:09') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:09', '2012-12-07 09:56:09')  (55.6ms) ROLLBACK  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (0.8ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (1.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (1.1ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:09', '2012-12-07 09:56:09') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:09', '2012-12-07 09:56:09')  (42.3ms) ROLLBACK  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 298486374) Fixture Insert (1.0ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 113629430) Fixture Delete (3.9ms) DELETE FROM `ominous_closers` Fixture Insert (4.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Insert (3.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Delete (5.2ms) DELETE FROM `things` Fixture Insert (0.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:09', '2012-12-07 09:56:09') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:09', '2012-12-07 09:56:09')  (75.7ms) ROLLBACK  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (0.9ms) SET FOREIGN_KEY_CHECKS = 0  (0.9ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (1.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (1.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 298486374) Fixture Insert (1.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (5.1ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Insert (5.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Delete (2.2ms) DELETE FROM `things` Fixture Insert (0.8ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:09', '2012-12-07 09:56:09') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:09', '2012-12-07 09:56:09')  (148.4ms) ROLLBACK  (0.8ms) SET FOREIGN_KEY_CHECKS = 1  (5.8ms) SELECT @@FOREIGN_KEY_CHECKS  (3.9ms) SET FOREIGN_KEY_CHECKS = 0  (5.1ms) BEGIN Fixture Delete (2.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Delete (1.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 980190962) Fixture Insert (3.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 298486374) Fixture Insert (3.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 113629430) Fixture Delete (1.4ms) DELETE FROM `ominous_closers` Fixture Insert (7.9ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Insert (1.3ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Delete (7.3ms) DELETE FROM `things` Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:09', '2012-12-07 09:56:09') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:09', '2012-12-07 09:56:09')  (105.8ms) ROLLBACK  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (2.0ms) SELECT @@FOREIGN_KEY_CHECKS  (2.5ms) SET FOREIGN_KEY_CHECKS = 0  (1.1ms) BEGIN Fixture Delete (1.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Delete (2.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 298486374) Fixture Insert (2.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:09', '2012-12-07 09:56:09', 113629430) Fixture Delete (1.2ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:09', '2012-12-07 09:56:09') Fixture Delete (2.0ms) DELETE FROM `things` Fixture Insert (1.0ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:09', '2012-12-07 09:56:09') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:09', '2012-12-07 09:56:09')  (72.6ms) ROLLBACK  (0.6ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (3.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (2.0ms) BEGIN Fixture Delete (1.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:58', '2012-12-07 09:56:58') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:58', '2012-12-07 09:56:58') Fixture Delete (1.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:58', '2012-12-07 09:56:58', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:58', '2012-12-07 09:56:58', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:58', '2012-12-07 09:56:58', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:58', '2012-12-07 09:56:58') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:58', '2012-12-07 09:56:58') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:58', '2012-12-07 09:56:58') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:58', '2012-12-07 09:56:58')  (87.4ms) ROLLBACK  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) SELECT @@FOREIGN_KEY_CHECKS  (5.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.9ms) BEGIN Fixture Delete (10.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:58', '2012-12-07 09:56:58') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:58', '2012-12-07 09:56:58') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (4.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:58', '2012-12-07 09:56:58', 980190962) Fixture Insert (6.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:58', '2012-12-07 09:56:58', 298486374) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:58', '2012-12-07 09:56:58', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (9.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:58', '2012-12-07 09:56:58') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:58', '2012-12-07 09:56:58') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:58', '2012-12-07 09:56:58') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:58', '2012-12-07 09:56:58')  (84.2ms) ROLLBACK  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) BEGIN Fixture Delete (205.0ms) DELETE FROM `ominous_warnings` Fixture Insert (1.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:58', '2012-12-07 09:56:58') Fixture Insert (11.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:58', '2012-12-07 09:56:58') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:59', '2012-12-07 09:56:59', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:59', '2012-12-07 09:56:59', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:59', '2012-12-07 09:56:59', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:59', '2012-12-07 09:56:59') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:59', '2012-12-07 09:56:59')  (196.4ms) ROLLBACK  (1.6ms) SET FOREIGN_KEY_CHECKS = 1  (1.6ms) SELECT @@FOREIGN_KEY_CHECKS  (1.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) BEGIN Fixture Delete (48.1ms) DELETE FROM `ominous_warnings` Fixture Insert (9.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Insert (2.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (5.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:59', '2012-12-07 09:56:59', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:59', '2012-12-07 09:56:59', 298486374) Fixture Insert (5.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:59', '2012-12-07 09:56:59', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (2.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Insert (5.9ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (8.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:59', '2012-12-07 09:56:59') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:59', '2012-12-07 09:56:59')  (237.7ms) ROLLBACK  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (2.2ms) SELECT @@FOREIGN_KEY_CHECKS  (1.9ms) SET FOREIGN_KEY_CHECKS = 0  (2.4ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:59', '2012-12-07 09:56:59', 980190962) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:59', '2012-12-07 09:56:59', 298486374) Fixture Insert (1.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:59', '2012-12-07 09:56:59', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (1.0ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:59', '2012-12-07 09:56:59') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:59', '2012-12-07 09:56:59')  (108.8ms) ROLLBACK  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (0.9ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:56:59', '2012-12-07 09:56:59', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:56:59', '2012-12-07 09:56:59', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:56:59', '2012-12-07 09:56:59', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (1.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Insert (1.3ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:56:59', '2012-12-07 09:56:59') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:59', '2012-12-07 09:56:59') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:56:59', '2012-12-07 09:56:59')  (93.3ms) ROLLBACK  (0.9ms) SET FOREIGN_KEY_CHECKS = 1  (1.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.9ms) SET FOREIGN_KEY_CHECKS = 0  (1.1ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Delete (3.3ms) DELETE FROM `ominous_warning_closers` Fixture Insert (5.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:57:00', '2012-12-07 09:57:00', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:57:00', '2012-12-07 09:57:00', 298486374) Fixture Insert (1.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:57:00', '2012-12-07 09:57:00', 113629430) Fixture Delete (9.8ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Delete (5.6ms) DELETE FROM `things` Fixture Insert (0.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:57:00', '2012-12-07 09:57:00') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:57:00', '2012-12-07 09:57:00')  (149.3ms) ROLLBACK  (1.8ms) SET FOREIGN_KEY_CHECKS = 1  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (1.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.3ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Insert (1.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:57:00', '2012-12-07 09:57:00', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:57:00', '2012-12-07 09:57:00', 298486374) Fixture Insert (1.0ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:57:00', '2012-12-07 09:57:00', 113629430) Fixture Delete (0.6ms) DELETE FROM `ominous_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:57:00', '2012-12-07 09:57:00') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:57:00', '2012-12-07 09:57:00')  (59.7ms) ROLLBACK  (10.2ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) SELECT @@FOREIGN_KEY_CHECKS  (1.6ms) SET FOREIGN_KEY_CHECKS = 0  (1.8ms) BEGIN Fixture Delete (10.1ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Insert (1.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:57:00', '2012-12-07 09:57:00', 980190962) Fixture Insert (2.0ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:57:00', '2012-12-07 09:57:00', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:57:00', '2012-12-07 09:57:00', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:57:00', '2012-12-07 09:57:00') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:57:00', '2012-12-07 09:57:00')  (50.4ms) ROLLBACK  (4.0ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) SELECT @@FOREIGN_KEY_CHECKS  (3.2ms) SET FOREIGN_KEY_CHECKS = 0  (1.0ms) BEGIN Fixture Delete (1.7ms) DELETE FROM `ominous_warnings` Fixture Insert (1.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 09:57:00', '2012-12-07 09:57:00', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 09:57:00', '2012-12-07 09:57:00', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 09:57:00', '2012-12-07 09:57:00', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 09:57:00', '2012-12-07 09:57:00') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:57:00', '2012-12-07 09:57:00') Mysql2::Error: Unknown column 'has_warning' in 'field list': INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 09:57:00', '2012-12-07 09:57:00')  (91.1ms) ROLLBACK  (6.9ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (44.0ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`   (0.7ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` Migrating to CreateThings (20121207090710)  (50.8ms) DROP TABLE `things`  (53.4ms) DELETE FROM `schema_migrations` WHERE `schema_migrations`.`version` = '20121207090710'  (0.8ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Connecting to database specified by database.yml  (22.9ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateOminousWarnings (20121206144249)  (1.0ms) CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Mysql2::Error: Table 'ominous_warnings' already exists: CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Connecting to database specified by database.yml  (32.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`   (0.8ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` Connecting to database specified by database.yml  (23.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateOminousWarnings (20121206144249)  (1.1ms) CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Mysql2::Error: Table 'ominous_warnings' already exists: CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Connecting to database specified by database.yml  (19.5ms) DROP TABLE `ominous_closers`  (253.3ms) CREATE TABLE `ominous_closers` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `url` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (58.3ms) DROP TABLE `ominous_warning_closers`  (255.0ms) CREATE TABLE `ominous_warning_closers` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `warning_id` int(11), `closer_id` int(11), `position` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (82.4ms) DROP TABLE `ominous_warnings`  (254.9ms) CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (1.6ms) SELECT version FROM `schema_migrations`  (57.9ms) INSERT INTO `schema_migrations` (version) VALUES ('0')  (16.7ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Connecting to database specified by database.yml  (24.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateOminousWarnings (20121206144249)  (1.4ms) CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Mysql2::Error: Table 'ominous_warnings' already exists: CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Connecting to database specified by database.yml Connecting to database specified by database.yml  (137.7ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB  (403.9ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)  (8.0ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateOminousWarnings (20121206144249)  (168.2ms) CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (42.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121206144249') Migrating to CreateOminousWarningClosers (20121206145743)  (195.6ms) CREATE TABLE `ominous_warning_closers` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `warning_id` int(11), `closer_id` int(11), `position` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (31.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121206145743') Migrating to CreateOminousClosers (20121206153254)  (173.7ms) CREATE TABLE `ominous_closers` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `url` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (41.9ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121206153254') Migrating to CreateThings (20121207090710)  (109.9ms) CREATE TABLE `things` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `has_warning` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (109.4ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20121207090710')  (1.5ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (7.0ms) SET FOREIGN_KEY_CHECKS = 0  (1.0ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 10:00:16', '2012-12-07 10:00:16') Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 10:00:16', '2012-12-07 10:00:16') Fixture Delete (5.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:00:16', '2012-12-07 10:00:16', 980190962) Fixture Insert (2.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:00:16', '2012-12-07 10:00:16', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:00:16', '2012-12-07 10:00:16', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (3.1ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:00:16', '2012-12-07 10:00:16') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:00:16', '2012-12-07 10:00:16') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.8ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:00:16', '2012-12-07 10:00:16') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:00:16', '2012-12-07 10:00:16')  (74.5ms) COMMIT  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.7ms) BEGIN  (0.6ms) ROLLBACK  (0.9ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:00:16', NULL, 'Foo', '2012-12-07 10:00:16')  (3.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 14ms (ActiveRecord: 4.9ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (29.9ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.6ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (43.9ms) ROLLBACK  (0.6ms) BEGIN Thing Load (2.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.1ms) Completed 200 OK in 64ms (Views: 61.9ms | ActiveRecord: 0.7ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.4ms) SELECT `things`.* FROM `things`  Completed 200 OK in 12ms (Views: 8.7ms | ActiveRecord: 1.4ms)  (0.8ms) ROLLBACK  (5.0ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (12.1ms) Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (5.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (3.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Completed 500 Internal Server Error in 4ms  (1.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (4.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 3.1ms | ActiveRecord: 4.9ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 1.9ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.9ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 10:01:54', '2012-12-07 10:01:54') Fixture Insert (1.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 10:01:54', '2012-12-07 10:01:54') Fixture Delete (1.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:01:54', '2012-12-07 10:01:54', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:01:54', '2012-12-07 10:01:54', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:01:54', '2012-12-07 10:01:54', 113629430) Fixture Delete (6.4ms) DELETE FROM `ominous_closers` Fixture Insert (1.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:01:54', '2012-12-07 10:01:54') Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:01:54', '2012-12-07 10:01:54') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (8.1ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:01:54', '2012-12-07 10:01:54') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:01:54', '2012-12-07 10:01:54')  (117.0ms) COMMIT  (0.8ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) BEGIN Ominous::Warning Load (2.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.6ms) BEGIN  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (1.1ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:01:55', NULL, 'Foo', '2012-12-07 10:01:55')  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/4 Completed 302 Found in 12ms (ActiveRecord: 2.3ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (52.4ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (25.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.8ms) Completed 200 OK in 72ms (Views: 68.9ms | ActiveRecord: 0.7ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.8ms)  (1.0ms) ROLLBACK  (0.7ms) BEGIN Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (6.6ms) Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.0ms)  (1.0ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Completed 500 Internal Server Error in 4ms  (1.2ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (10.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 16ms (Views: 3.9ms | ActiveRecord: 10.8ms)  (0.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (3.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (2.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 3.7ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (8.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (2.3ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 10:02:14', '2012-12-07 10:02:14') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 10:02:14', '2012-12-07 10:02:14') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:02:14', '2012-12-07 10:02:14', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:02:14', '2012-12-07 10:02:14', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:02:14', '2012-12-07 10:02:14', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:02:14', '2012-12-07 10:02:14') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:02:14', '2012-12-07 10:02:14') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:02:14', '2012-12-07 10:02:14') Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:02:14', '2012-12-07 10:02:14')  (85.1ms) COMMIT  (1.8ms) SET FOREIGN_KEY_CHECKS = 1  (0.7ms) BEGIN Ominous::Warning Load (5.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:02:15', NULL, 'Foo', '2012-12-07 10:02:15')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/5 Completed 302 Found in 11ms (ActiveRecord: 2.3ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (37.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (7.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (3.1ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (4.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 13ms (ActiveRecord: 9.3ms)  (0.9ms) SELECT COUNT(*) FROM `things`   (36.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (3.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.6ms) Completed 200 OK in 63ms (Views: 57.7ms | ActiveRecord: 3.9ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.9ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.9ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (3.9ms) Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 1.2ms)  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (4.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 7ms (Views: 2.2ms | ActiveRecord: 4.0ms)  (0.7ms) ROLLBACK  (0.8ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 10ms (ActiveRecord: 2.0ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (1.0ms) SELECT @@FOREIGN_KEY_CHECKS  (0.8ms) SET FOREIGN_KEY_CHECKS = 0  (5.0ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'one', '2012-12-07 10:03:46', '2012-12-07 10:03:46') Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'two', '2012-12-07 10:03:46', '2012-12-07 10:03:46') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:03:46', '2012-12-07 10:03:46', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:03:46', '2012-12-07 10:03:46', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:03:46', '2012-12-07 10:03:46', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:03:46', '2012-12-07 10:03:46') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:03:46', '2012-12-07 10:03:46') Fixture Delete (1.0ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:03:46', '2012-12-07 10:03:46') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:03:46', '2012-12-07 10:03:46')  (53.8ms) COMMIT  (0.8ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) 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 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.8ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (1.0ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:03:46', NULL, 'Foo', '2012-12-07 10:03:46')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/6 Completed 302 Found in 10ms (ActiveRecord: 2.1ms)  (0.9ms) SELECT COUNT(*) FROM `things`   (46.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.7ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 3.7ms)  (0.9ms) SELECT COUNT(*) FROM `things`   (67.3ms) ROLLBACK  (1.4ms) BEGIN Thing Load (9.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (24.8ms) Completed 200 OK in 117ms (Views: 114.9ms | ActiveRecord: 0.7ms)  (6.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (3.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 15ms (Views: 9.5ms | ActiveRecord: 3.8ms)  (3.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (3.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (3.2ms) Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.0ms)  (3.0ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.7ms)  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.7ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (3.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 9ms (ActiveRecord: 4.6ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.9ms) SELECT @@FOREIGN_KEY_CHECKS  (5.6ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (1.2ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:14:31', '2012-12-07 10:14:31') Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:14:31', '2012-12-07 10:14:31') Fixture Delete (2.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:14:31', '2012-12-07 10:14:31', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:14:31', '2012-12-07 10:14:31', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:14:31', '2012-12-07 10:14:31', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:14:31', '2012-12-07 10:14:31') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:14:31', '2012-12-07 10:14:31') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:14:31', '2012-12-07 10:14:31') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:14:31', '2012-12-07 10:14:31')  (62.2ms) COMMIT  (1.9ms) SET FOREIGN_KEY_CHECKS = 1  (1.4ms) BEGIN Ominous::Warning Load (3.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (2.7ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (7.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (5.7ms) ROLLBACK  (3.8ms) BEGIN  (0.6ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:14:31', NULL, 'Foo', '2012-12-07 10:14:31')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/7 Completed 302 Found in 12ms (ActiveRecord: 2.6ms)  (0.9ms) SELECT COUNT(*) FROM `things`   (53.8ms) ROLLBACK  (2.3ms) BEGIN Thing Load (3.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (1.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.9ms) SAVEPOINT active_record_1 SQL (1.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (1.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 13ms (ActiveRecord: 4.9ms)  (1.2ms) SELECT COUNT(*) FROM `things`   (52.5ms) ROLLBACK  (1.9ms) BEGIN Thing Load (7.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (8.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (12.3ms) Completed 200 OK in 74ms (Views: 65.8ms | ActiveRecord: 1.3ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.2ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 1.2ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.3ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.7ms)  (5.1ms) ROLLBACK  (1.0ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 1.5ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.8ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 2.1ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (5.3ms) SET FOREIGN_KEY_CHECKS = 0  (8.4ms) BEGIN Fixture Delete (1.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:15:44', '2012-12-07 10:15:44') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:15:44', '2012-12-07 10:15:44') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:15:44', '2012-12-07 10:15:44', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:15:44', '2012-12-07 10:15:44', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:15:44', '2012-12-07 10:15:44', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:15:44', '2012-12-07 10:15:44') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:15:44', '2012-12-07 10:15:44') Fixture Delete (1.2ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:15:44', '2012-12-07 10:15:44') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:15:44', '2012-12-07 10:15:44')  (94.1ms) COMMIT  (2.0ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) BEGIN Ominous::Warning Load (2.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) 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  (0.6ms) ROLLBACK  (1.9ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:15:45', NULL, 'Foo', '2012-12-07 10:15:45')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/8 Completed 302 Found in 12ms (ActiveRecord: 2.2ms)  (1.1ms) SELECT COUNT(*) FROM `things`   (40.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (1.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 2.9ms)  (1.9ms) SELECT COUNT(*) FROM `things`   (48.0ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (17.3ms) Completed 200 OK in 102ms (Views: 98.7ms | ActiveRecord: 1.2ms)  (0.7ms) ROLLBACK  (2.2ms) BEGIN Thing Load (5.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.9ms) SELECT `things`.* FROM `things`  Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.9ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.5ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)  (6.2ms) ROLLBACK  (6.2ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (10.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Completed 200 OK in 17ms (Views: 4.9ms | ActiveRecord: 10.1ms)  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 2.0ms)  (2.8ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (2.8ms) BEGIN Fixture Delete (1.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:18:11', '2012-12-07 10:18:11') Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:18:11', '2012-12-07 10:18:11') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:18:11', '2012-12-07 10:18:11', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:18:11', '2012-12-07 10:18:11', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:18:11', '2012-12-07 10:18:11', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:18:11', '2012-12-07 10:18:11') Fixture Insert (0.3ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:18:11', '2012-12-07 10:18:11') Fixture Delete (0.8ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:18:11', '2012-12-07 10:18:11') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:18:11', '2012-12-07 10:18:11')  (44.6ms) COMMIT  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (9.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (1.4ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (5.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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  (6.4ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (1.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:18:12', NULL, 'Foo', '2012-12-07 10:18:12')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/9 Completed 302 Found in 12ms (ActiveRecord: 2.7ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (36.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.6ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (42.0ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.6ms) Completed 200 OK in 68ms (Views: 64.9ms | ActiveRecord: 1.1ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.4ms) Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Completed 200 OK in 14ms (Views: 10.8ms | ActiveRecord: 0.6ms)  (1.3ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (4.9ms) BEGIN Fixture Delete (1.2ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:19:56', '2012-12-07 10:19:56') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:19:56', '2012-12-07 10:19:56') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:19:56', '2012-12-07 10:19:56', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:19:56', '2012-12-07 10:19:56', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:19:56', '2012-12-07 10:19:56', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:19:56', '2012-12-07 10:19:56') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:19:56', '2012-12-07 10:19:56') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:19:56', '2012-12-07 10:19:56') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:19:56', '2012-12-07 10:19:56')  (59.8ms) COMMIT  (2.3ms) SET FOREIGN_KEY_CHECKS = 1  (1.5ms) BEGIN Ominous::Warning Load (4.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) 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  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.2ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) 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` = 'does_not_exist' LIMIT 1  (0.8ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.8ms) SAVEPOINT active_record_1 SQL (7.4ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:19:56', NULL, 'Foo', '2012-12-07 10:19:56')  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/10 Completed 302 Found in 16ms (ActiveRecord: 8.8ms)  (0.9ms) SELECT COUNT(*) FROM `things`   (46.3ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (1.2ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (1.2ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 3.6ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (46.2ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.4ms) Completed 200 OK in 74ms (Views: 70.6ms | ActiveRecord: 0.7ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.2ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 1.2ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.6ms) Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (2.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 10ms (Views: 3.0ms | ActiveRecord: 3.3ms)  (0.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.7ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (5.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 12ms (ActiveRecord: 6.8ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (8.1ms) SET FOREIGN_KEY_CHECKS = 0  (9.6ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:22:54', '2012-12-07 10:22:54') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:22:54', '2012-12-07 10:22:54') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:22:54', '2012-12-07 10:22:54', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:22:54', '2012-12-07 10:22:54', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:22:54', '2012-12-07 10:22:54', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:22:54', '2012-12-07 10:22:54') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:22:54', '2012-12-07 10:22:54') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:22:54', '2012-12-07 10:22:54') Fixture Insert (0.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:22:54', '2012-12-07 10:22:54')  (71.0ms) COMMIT  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (1.5ms) BEGIN Ominous::Warning Load (3.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) 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` = 'does_not_exist' LIMIT 1  (2.3ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:22:54', NULL, 'Foo', '2012-12-07 10:22:54')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/11 Completed 302 Found in 12ms (ActiveRecord: 2.2ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (38.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 2.7ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (36.1ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (18.4ms) Completed 500 Internal Server Error in 202ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 28ms  (3.3ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (6.1ms) Completed 500 Internal Server Error in 32ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 33ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 47ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (3.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 10ms (ActiveRecord: 4.9ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (1.4ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (1.2ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:31:19', '2012-12-07 10:31:19') Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:31:19', '2012-12-07 10:31:19') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (1.0ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:31:19', '2012-12-07 10:31:19', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:31:19', '2012-12-07 10:31:19', 298486374) Fixture Insert (1.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:31:19', '2012-12-07 10:31:19', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:31:19', '2012-12-07 10:31:19') Fixture Insert (0.9ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:31:19', '2012-12-07 10:31:19') Fixture Delete (1.0ms) DELETE FROM `things` Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:31:19', '2012-12-07 10:31:19') Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:31:19', '2012-12-07 10:31:19')  (48.3ms) COMMIT  (5.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) BEGIN Ominous::Warning Load (2.2ms) 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 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.7ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (3.3ms) 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 (1.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:31:19', NULL, 'Foo', '2012-12-07 10:31:19')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/12 Completed 302 Found in 11ms (ActiveRecord: 2.3ms)  (3.6ms) SELECT COUNT(*) FROM `things`   (68.0ms) ROLLBACK  (1.3ms) BEGIN Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (1.3ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.0ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 16ms (ActiveRecord: 3.8ms)  (1.9ms) SELECT COUNT(*) FROM `things`   (44.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.1ms) Completed 500 Internal Server Error in 106ms  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.0ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 35ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.6ms) Completed 500 Internal Server Error in 28ms  (0.7ms) ROLLBACK  (1.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 31ms  (0.7ms) ROLLBACK  (0.8ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 63ms  (0.9ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (3.6ms) SAVEPOINT active_record_1  (6.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 14ms (ActiveRecord: 10.9ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (5.6ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:32:07', '2012-12-07 10:32:07') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:32:07', '2012-12-07 10:32:07') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:32:07', '2012-12-07 10:32:07', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:32:07', '2012-12-07 10:32:07', 298486374) Fixture Insert (0.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:32:07', '2012-12-07 10:32:07', 113629430) Fixture Delete (1.6ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:32:07', '2012-12-07 10:32:07') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:32:07', '2012-12-07 10:32:07') Fixture Delete (0.6ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:32:07', '2012-12-07 10:32:07') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:32:07', '2012-12-07 10:32:07')  (59.6ms) COMMIT  (1.0ms) SET FOREIGN_KEY_CHECKS = 1  (1.2ms) BEGIN Ominous::Warning Load (1.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.8ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:32:08', NULL, 'Foo', '2012-12-07 10:32:08')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/13 Completed 302 Found in 10ms (ActiveRecord: 2.3ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (28.3ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.1ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 3.2ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (36.1ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (21.1ms) Completed 500 Internal Server Error in 178ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.1ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 27ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.5ms) Completed 500 Internal Server Error in 30ms  (0.7ms) ROLLBACK  (0.8ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 31ms  (0.6ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 49ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.8ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 2.2ms)  (3.3ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (5.1ms) SET FOREIGN_KEY_CHECKS = 0  (3.1ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:32:40', '2012-12-07 10:32:40') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:32:40', '2012-12-07 10:32:40') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:32:40', '2012-12-07 10:32:40', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:32:40', '2012-12-07 10:32:40', 298486374) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:32:40', '2012-12-07 10:32:40', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:32:40', '2012-12-07 10:32:40') Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:32:40', '2012-12-07 10:32:40') Fixture Delete (0.7ms) DELETE FROM `things` Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:32:40', '2012-12-07 10:32:40') Fixture Insert (0.8ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:32:40', '2012-12-07 10:32:40')  (89.0ms) COMMIT  (1.4ms) SET FOREIGN_KEY_CHECKS = 1  (9.6ms) BEGIN Ominous::Warning Load (1.8ms) 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 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.7ms) BEGIN Ominous::Warning Load (0.7ms) 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  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (4.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (4.3ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (4.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.7ms) ROLLBACK  (0.6ms) BEGIN  (5.9ms) ROLLBACK  (7.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (7.6ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:32:40', NULL, 'Foo', '2012-12-07 10:32:40')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/14 Completed 302 Found in 10ms (ActiveRecord: 2.1ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (33.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (1.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 3.2ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (41.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.2ms) Completed 500 Internal Server Error in 111ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 41ms  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.2ms) Completed 500 Internal Server Error in 26ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.8ms) 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 500 Internal Server Error in 35ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 49ms  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (1.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 9ms (ActiveRecord: 2.9ms)  (0.8ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (12.4ms) SET FOREIGN_KEY_CHECKS = 0  (3.0ms) BEGIN Fixture Delete (1.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:33:06', '2012-12-07 10:33:06') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:33:06', '2012-12-07 10:33:06') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:33:06', '2012-12-07 10:33:06', 980190962) Fixture Insert (3.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:33:06', '2012-12-07 10:33:06', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:33:06', '2012-12-07 10:33:06', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:33:06', '2012-12-07 10:33:06') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:33:06', '2012-12-07 10:33:06') Fixture Delete (0.6ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:33:06', '2012-12-07 10:33:06') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:33:06', '2012-12-07 10:33:06')  (29.2ms) COMMIT  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.9ms) 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 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (7.3ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.8ms) 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  (0.6ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (4.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (4.1ms) BEGIN Ominous::Warning Load (0.6ms) 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 (7.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (1.6ms) BEGIN  (7.3ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:33:07', NULL, 'Foo', '2012-12-07 10:33:07')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/15 Completed 302 Found in 10ms (ActiveRecord: 2.0ms)  (1.3ms) SELECT COUNT(*) FROM `things`   (42.1ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.7ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 3.7ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (40.2ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.5ms) Completed 200 OK in 65ms (Views: 62.3ms | ActiveRecord: 1.0ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.8ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.7ms) Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.6ms) 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 8ms (Views: 3.8ms | ActiveRecord: 1.4ms)  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 1.1ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.3ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 2.6ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (6.2ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) BEGIN Fixture Delete (1.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:33:40', '2012-12-07 10:33:40') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:33:40', '2012-12-07 10:33:40') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:33:40', '2012-12-07 10:33:40', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:33:40', '2012-12-07 10:33:40', 298486374) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:33:40', '2012-12-07 10:33:40', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:33:40', '2012-12-07 10:33:40') Fixture Insert (1.0ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:33:40', '2012-12-07 10:33:40') Fixture Delete (0.9ms) DELETE FROM `things` Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:33:40', '2012-12-07 10:33:40') Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:33:40', '2012-12-07 10:33:40')  (79.6ms) COMMIT  (1.6ms) SET FOREIGN_KEY_CHECKS = 1  (1.4ms) BEGIN Ominous::Warning Load (2.6ms) 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 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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 Ominous::Warning Exists (3.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:33:40', NULL, 'Foo', '2012-12-07 10:33:40')  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/16 Completed 302 Found in 11ms (ActiveRecord: 2.4ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (51.2ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (1.1ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 3.0ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (43.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (6.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (12.0ms) Completed 500 Internal Server Error in 148ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.9ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 27ms  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.6ms) Completed 500 Internal Server Error in 32ms  (0.7ms) ROLLBACK  (0.9ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 25ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 54ms  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 2.5ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (5.3ms) SELECT @@FOREIGN_KEY_CHECKS  (1.2ms) SET FOREIGN_KEY_CHECKS = 0  (9.8ms) BEGIN Fixture Delete (5.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:34:20', '2012-12-07 10:34:20') Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:34:20', '2012-12-07 10:34:20') Fixture Delete (1.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (1.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:34:20', '2012-12-07 10:34:20', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:34:20', '2012-12-07 10:34:20', 298486374) Fixture Insert (1.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:34:20', '2012-12-07 10:34:20', 113629430) Fixture Delete (0.6ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:34:20', '2012-12-07 10:34:20') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:34:20', '2012-12-07 10:34:20') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:34:20', '2012-12-07 10:34:20') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:34:20', '2012-12-07 10:34:20')  (61.0ms) COMMIT  (1.5ms) SET FOREIGN_KEY_CHECKS = 1  (1.7ms) BEGIN Ominous::Warning Load (2.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) 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 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (1.0ms) BEGIN  (0.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:34:21', NULL, 'Foo', '2012-12-07 10:34:21')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/17 Completed 302 Found in 11ms (ActiveRecord: 3.3ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (40.0ms) ROLLBACK  (2.0ms) BEGIN Thing Load (7.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 2.9ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (41.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.7ms) Completed 200 OK in 62ms (Views: 58.2ms | ActiveRecord: 1.9ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.8ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (7.4ms) Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms)  (0.8ms) ROLLBACK  (0.7ms) BEGIN Thing Load (4.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (6.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (4.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 22ms (Views: 10.8ms | ActiveRecord: 5.5ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.6ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 9ms (ActiveRecord: 1.8ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (1.8ms) SELECT @@FOREIGN_KEY_CHECKS  (2.1ms) SET FOREIGN_KEY_CHECKS = 0  (1.1ms) BEGIN 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', '2012-12-07 10:44:33', '2012-12-07 10:44:33') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:44:33', '2012-12-07 10:44:33') Fixture Delete (1.1ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:44:33', '2012-12-07 10:44:33', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:44:33', '2012-12-07 10:44:33', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:44:33', '2012-12-07 10:44:33', 113629430) Fixture Delete (1.0ms) DELETE FROM `ominous_closers` Fixture Insert (0.9ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:44:33', '2012-12-07 10:44:33') Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:44:33', '2012-12-07 10:44:33') Fixture Delete (1.2ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:44:33', '2012-12-07 10:44:33') Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:44:33', '2012-12-07 10:44:33')  (101.4ms) COMMIT  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (1.7ms) BEGIN Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.7ms) 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  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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 (1.2ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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 Ominous::Warning Exists (0.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (2.2ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:44:33', NULL, 'Foo', '2012-12-07 10:44:33')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/18 Completed 302 Found in 10ms (ActiveRecord: 2.1ms)  (0.9ms) SELECT COUNT(*) FROM `things`   (41.0ms) ROLLBACK  (0.6ms) BEGIN Thing Load (2.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.6ms) SAVEPOINT active_record_1 SQL (1.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 14ms (ActiveRecord: 5.0ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (62.9ms) ROLLBACK  (1.7ms) BEGIN Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (10.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.6ms) Completed 200 OK in 117ms (Views: 104.5ms | ActiveRecord: 10.9ms)  (0.7ms) ROLLBACK  (0.9ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.0ms) SELECT `things`.* FROM `things`  Completed 200 OK in 25ms (Views: 21.6ms | ActiveRecord: 1.0ms)  (0.8ms) ROLLBACK  (3.1ms) BEGIN Thing Load (4.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (5.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (3.5ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.4ms)  (4.5ms) ROLLBACK  (0.9ms) BEGIN Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 1.1ms)  (3.1ms) ROLLBACK  (0.9ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 2.4ms)  (0.8ms) ROLLBACK Connecting to database specified by database.yml  (1.5ms) SELECT @@FOREIGN_KEY_CHECKS  (4.0ms) SET FOREIGN_KEY_CHECKS = 0  (3.6ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:51:50', '2012-12-07 10:51:50') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:51:50', '2012-12-07 10:51:50') Fixture Delete (2.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:51:50', '2012-12-07 10:51:50', 980190962) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:51:50', '2012-12-07 10:51:50', 298486374) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:51:50', '2012-12-07 10:51:50', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:51:50', '2012-12-07 10:51:50') Fixture Insert (3.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:51:50', '2012-12-07 10:51:50') Fixture Delete (0.8ms) DELETE FROM `things` Fixture Insert (2.9ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:51:50', '2012-12-07 10:51:50') Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:51:50', '2012-12-07 10:51:50')  (89.1ms) COMMIT  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (3.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (4.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.8ms) ROLLBACK  (0.8ms) BEGIN Ominous::Warning Load (7.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (6.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (2.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (5.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (5.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (6.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:51:51', NULL, 'Foo', '2012-12-07 10:51:51')  (3.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/19 Completed 302 Found in 18ms (ActiveRecord: 5.2ms)  (1.2ms) SELECT COUNT(*) FROM `things`  (42.4ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (3.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (2.5ms) SELECT COUNT(*) FROM `things`   (48.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (12.8ms) Completed 200 OK in 111ms (Views: 100.7ms | ActiveRecord: 0.9ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.8ms) 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.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.7ms) 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.9ms) Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (4.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 11ms (Views: 3.5ms | ActiveRecord: 4.9ms)  (1.1ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 12ms (Views: 4.6ms | ActiveRecord: 1.7ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 3.2ms)  (2.4ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (4.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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (2.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 13ms (ActiveRecord: 3.3ms)  (7.3ms) ROLLBACK Connecting to database specified by database.yml  (6.8ms) SELECT @@FOREIGN_KEY_CHECKS  (3.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:52:19', '2012-12-07 10:52:19') Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:52:19', '2012-12-07 10:52:19') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:52:19', '2012-12-07 10:52:19', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:52:19', '2012-12-07 10:52:19', 298486374) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:52:19', '2012-12-07 10:52:19', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:52:20', '2012-12-07 10:52:20') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:52:20', '2012-12-07 10:52:20') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:52:20', '2012-12-07 10:52:20') Fixture Insert (1.8ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:52:20', '2012-12-07 10:52:20')  (43.2ms) COMMIT  (1.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.4ms) BEGIN Ominous::Warning Load (2.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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  (5.3ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.6ms) 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 (7.2ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (7.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (6.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.8ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:52:20', NULL, 'Foo', '2012-12-07 10:52:20')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/20 Completed 302 Found in 14ms (ActiveRecord: 7.4ms)  (6.3ms) SELECT COUNT(*) FROM `things`  (48.9ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.3ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (1.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 10ms (ActiveRecord: 4.3ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (41.1ms) ROLLBACK  (1.7ms) BEGIN Thing Load (5.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (8.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.9ms) Completed 200 OK in 70ms (Views: 60.6ms | ActiveRecord: 2.7ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.8ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (5.5ms) Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.6ms) 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 (0.6ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 10ms (Views: 3.6ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) 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.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 1.7ms)  (1.8ms) ROLLBACK  (2.4ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (2.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 1.9ms | ActiveRecord: 2.6ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) 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.8ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 9ms (ActiveRecord: 2.0ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (8.8ms) SELECT @@FOREIGN_KEY_CHECKS  (2.0ms) SET FOREIGN_KEY_CHECKS = 0  (5.5ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:53:19', '2012-12-07 10:53:19') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:53:19', '2012-12-07 10:53:19') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:53:19', '2012-12-07 10:53:19', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:53:19', '2012-12-07 10:53:19', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:53:19', '2012-12-07 10:53:19', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:53:19', '2012-12-07 10:53:19') Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:53:19', '2012-12-07 10:53:19') Fixture Delete (0.7ms) DELETE FROM `things` Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:53:19', '2012-12-07 10:53:19') Fixture Insert (0.8ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:53:19', '2012-12-07 10:53:19')  (27.1ms) COMMIT  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (1.6ms) BEGIN Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) 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  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (3.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (2.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (1.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:53:20', NULL, 'Foo', '2012-12-07 10:53:20')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/21 Completed 302 Found in 11ms (ActiveRecord: 2.5ms)  (1.0ms) SELECT COUNT(*) FROM `things`  (26.5ms) ROLLBACK  (0.8ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.8ms)  (3.4ms) SELECT COUNT(*) FROM `things`   (35.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.4ms) Completed 500 Internal Server Error in 72ms  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.6ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 15ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.7ms) Completed 500 Internal Server Error in 8ms  (7.7ms) ROLLBACK  (1.1ms) BEGIN Thing Load (4.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (6.5ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 6ms  (8.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (4.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (5.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 14ms  (1.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (8.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 4ms  (8.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) 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 (4.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (4.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 13ms (ActiveRecord: 9.5ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (6.5ms) SET FOREIGN_KEY_CHECKS = 0  (2.8ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (3.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:54:03', '2012-12-07 10:54:03') Fixture Insert (2.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:54:03', '2012-12-07 10:54:03') Fixture Delete (1.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (1.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:54:04', '2012-12-07 10:54:04', 980190962) Fixture Insert (1.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:54:04', '2012-12-07 10:54:04', 298486374) Fixture Insert (2.0ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:54:04', '2012-12-07 10:54:04', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_closers` Fixture Insert (2.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:54:04', '2012-12-07 10:54:04') Fixture Insert (2.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:54:04', '2012-12-07 10:54:04') Fixture Delete (4.2ms) DELETE FROM `things` Fixture Insert (0.8ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:54:04', '2012-12-07 10:54:04') Fixture Insert (1.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:54:04', '2012-12-07 10:54:04')  (54.7ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (1.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.8ms) 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 (2.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (4.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (3.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (6.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (1.2ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.7ms) BEGIN Thing Load (4.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:54:04', NULL, 'Foo', '2012-12-07 10:54:04')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/22 Completed 302 Found in 12ms (ActiveRecord: 2.0ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (42.8ms) ROLLBACK  (1.9ms) BEGIN Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (5.4ms) SAVEPOINT active_record_1 SQL (5.0ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 18ms (ActiveRecord: 12.1ms)  (2.4ms) SELECT COUNT(*) FROM `things`   (37.0ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (5.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (18.3ms) Completed 200 OK in 131ms (Views: 123.0ms | ActiveRecord: 5.7ms)  (4.2ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (4.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 20ms (Views: 13.4ms | ActiveRecord: 4.8ms)  (1.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) 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 (3.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (7.4ms) Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.0ms)  (4.0ms) ROLLBACK  (0.6ms) BEGIN Thing Load (4.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (5.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (5.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 26ms (Views: 19.2ms | ActiveRecord: 5.3ms)  (0.7ms) ROLLBACK  (1.1ms) BEGIN Thing Load (1.0ms) 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.6ms) 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.7ms) 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 9ms (Views: 5.0ms | ActiveRecord: 1.4ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.6ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) 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.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (6.1ms) SAVEPOINT active_record_1  (3.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 15ms (ActiveRecord: 10.1ms)  (3.2ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (2.0ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:54:13', '2012-12-07 10:54:13') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:54:13', '2012-12-07 10:54:13') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:54:13', '2012-12-07 10:54:13', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:54:13', '2012-12-07 10:54:13', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:54:13', '2012-12-07 10:54:13', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:54:13', '2012-12-07 10:54:13') Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:54:13', '2012-12-07 10:54:13') Fixture Delete (0.8ms) DELETE FROM `things` Fixture Insert (0.8ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:54:13', '2012-12-07 10:54:13') Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:54:13', '2012-12-07 10:54:13')  (59.8ms) COMMIT  (2.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.6ms) BEGIN Ominous::Warning Load (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (3.8ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.1ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.7ms) 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` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (3.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:54:13', NULL, 'Foo', '2012-12-07 10:54:13')  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/23 Completed 302 Found in 14ms (ActiveRecord: 4.8ms)  (5.5ms) SELECT COUNT(*) FROM `things`  (43.8ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (7.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (4.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 10ms (ActiveRecord: 7.0ms)  (3.3ms) SELECT COUNT(*) FROM `things`   (35.1ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (5.1ms) 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 (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.9ms) Completed 200 OK in 65ms (Views: 61.0ms | ActiveRecord: 1.8ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.9ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.9ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.6ms) 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.8ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) 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 13ms (Views: 3.0ms | ActiveRecord: 0.4ms)  (6.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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 (1.0ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 1.3ms)  (0.6ms) ROLLBACK  (1.4ms) BEGIN Thing Load (3.1ms) 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.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms)  (1.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.7ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.5ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:58:29', '2012-12-07 10:58:29') Fixture Insert (1.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:58:29', '2012-12-07 10:58:29') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:58:29', '2012-12-07 10:58:29', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:58:29', '2012-12-07 10:58:29', 298486374) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:58:29', '2012-12-07 10:58:29', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:58:29', '2012-12-07 10:58:29') Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:58:29', '2012-12-07 10:58:29') Fixture Delete (0.7ms) DELETE FROM `things` Fixture Insert (0.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:58:29', '2012-12-07 10:58:29') Fixture Insert (0.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:58:29', '2012-12-07 10:58:29')  (60.6ms) COMMIT  (6.9ms) SET FOREIGN_KEY_CHECKS = 1  (1.6ms) BEGIN Ominous::Warning Load (2.1ms) 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 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) 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  (0.5ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:58:29', NULL, 'Foo', '2012-12-07 10:58:29')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/24 Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (55.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (4.2ms) 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.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 2.5ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (53.5ms) ROLLBACK  (2.0ms) BEGIN Thing Load (2.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.6ms) Completed 500 Internal Server Error in 107ms  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 35ms  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) 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.5ms) Completed 500 Internal Server Error in 31ms  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 34ms  (0.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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 (5.0ms) 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.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (4.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 96ms  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 48ms  (0.8ms) ROLLBACK  (3.0ms) BEGIN Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) 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 (5.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (0.8ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 10ms (ActiveRecord: 7.2ms)  (2.7ms) ROLLBACK Connecting to database specified by database.yml  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (5.4ms) SET FOREIGN_KEY_CHECKS = 0  (2.9ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 10:59:12', '2012-12-07 10:59:12') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 10:59:12', '2012-12-07 10:59:12') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 10:59:12', '2012-12-07 10:59:12', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 10:59:12', '2012-12-07 10:59:12', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 10:59:12', '2012-12-07 10:59:12', 113629430) Fixture Delete (0.9ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 10:59:12', '2012-12-07 10:59:12') Fixture Insert (0.9ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 10:59:12', '2012-12-07 10:59:12') Fixture Delete (0.8ms) DELETE FROM `things` Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 10:59:12', '2012-12-07 10:59:12') Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 10:59:12', '2012-12-07 10:59:12')  (61.8ms) COMMIT  (9.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.8ms) BEGIN Ominous::Warning Load (7.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.9ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.1ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.8ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 10:59:12', NULL, 'Foo', '2012-12-07 10:59:12')  (0.8ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/25 Completed 302 Found in 13ms (ActiveRecord: 4.0ms)  (1.5ms) SELECT COUNT(*) FROM `things`  (56.1ms) ROLLBACK  (2.1ms) BEGIN Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) 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  (1.2ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.0ms) SAVEPOINT active_record_1 SQL (1.3ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.8ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 13ms (ActiveRecord: 4.1ms)  (0.9ms) SELECT COUNT(*) FROM `things`   (43.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (26.3ms) Completed 500 Internal Server Error in 195ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.0ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 26ms  (1.0ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.6ms) Completed 500 Internal Server Error in 32ms  (0.7ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.8ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 26ms  (0.7ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 53ms  (1.9ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.7ms) 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.7ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 22ms  (0.7ms) ROLLBACK  (1.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) 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 (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 2.5ms)  (5.0ms) ROLLBACK Connecting to database specified by database.yml  (3.1ms) SELECT @@FOREIGN_KEY_CHECKS  (1.5ms) SET FOREIGN_KEY_CHECKS = 0  (12.2ms) BEGIN Fixture Delete (7.0ms) DELETE FROM `ominous_warnings` Fixture Insert (8.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:00:53', '2012-12-07 11:00:53') Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:00:53', '2012-12-07 11:00:53') Fixture Delete (1.0ms) DELETE FROM `ominous_warning_closers` Fixture Insert (5.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:00:54', '2012-12-07 11:00:54', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:00:54', '2012-12-07 11:00:54', 298486374) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:00:54', '2012-12-07 11:00:54', 113629430) Fixture Delete (2.4ms) DELETE FROM `ominous_closers` Fixture Insert (1.0ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:00:54', '2012-12-07 11:00:54') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:00:54', '2012-12-07 11:00:54') Fixture Delete (0.6ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:00:54', '2012-12-07 11:00:54') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:00:54', '2012-12-07 11:00:54')  (61.3ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.7ms) 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  (0.6ms) ROLLBACK  (1.2ms) BEGIN Ominous::Warning Load (0.6ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) 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  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (2.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:00:54', NULL, 'Foo', '2012-12-07 11:00:54')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/26 Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (47.3ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (3.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 15ms (ActiveRecord: 6.1ms)  (0.9ms) SELECT COUNT(*) FROM `things`   (47.1ms) ROLLBACK  (0.7ms) BEGIN Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.8ms) Completed 500 Internal Server Error in 123ms  (0.7ms) ROLLBACK  (0.7ms) BEGIN Thing Load (4.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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (7.3ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 72ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (6.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.6ms) Completed 500 Internal Server Error in 53ms  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) 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 (2.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 (4.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 42ms  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.9ms) 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.6ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 53ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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 (2.7ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 23ms  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) 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.7ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 1.8ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (2.3ms) SELECT @@FOREIGN_KEY_CHECKS  (4.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (1.2ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:02:27', '2012-12-07 11:02:27') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:02:27', '2012-12-07 11:02:27') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:02:27', '2012-12-07 11:02:27', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:02:27', '2012-12-07 11:02:27', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:02:27', '2012-12-07 11:02:27', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:02:27', '2012-12-07 11:02:27') Fixture Insert (2.9ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:02:27', '2012-12-07 11:02:27') Fixture Delete (0.9ms) DELETE FROM `things` Fixture Insert (0.8ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:02:27', '2012-12-07 11:02:27') Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:02:27', '2012-12-07 11:02:27')  (65.9ms) COMMIT  (2.6ms) SET FOREIGN_KEY_CHECKS = 1  (1.7ms) BEGIN Ominous::Warning Load (8.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (6.1ms) BEGIN Ominous::Warning Load (0.7ms) 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.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (7.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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 (2.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (2.8ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:02:28', NULL, 'Foo', '2012-12-07 11:02:28')  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/27 Completed 302 Found in 13ms (ActiveRecord: 2.3ms)  (1.1ms) SELECT COUNT(*) FROM `things`  (46.0ms) ROLLBACK  (2.2ms) BEGIN Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 15ms (ActiveRecord: 3.5ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (39.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (13.3ms) Completed 500 Internal Server Error in 106ms  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.9ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 31ms  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (5.2ms) Completed 500 Internal Server Error in 29ms  (0.9ms) ROLLBACK  (2.7ms) BEGIN Thing Load (1.0ms) 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.7ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 23ms  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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.7ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 57ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) 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 (1.0ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 27ms  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (5.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) 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 (2.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.7ms) SAVEPOINT active_record_1  (8.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 16ms (ActiveRecord: 12.0ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.8ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) BEGIN Fixture Delete (7.3ms) DELETE FROM `ominous_warnings` Fixture Insert (3.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:03:47', '2012-12-07 11:03:47') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:03:47', '2012-12-07 11:03:47') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:03:47', '2012-12-07 11:03:47', 980190962) Fixture Insert (1.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:03:47', '2012-12-07 11:03:47', 298486374) Fixture Insert (0.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:03:47', '2012-12-07 11:03:47', 113629430) Fixture Delete (1.6ms) DELETE FROM `ominous_closers` Fixture Insert (1.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:03:47', '2012-12-07 11:03:47') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:03:47', '2012-12-07 11:03:47') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:03:47', '2012-12-07 11:03:47') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:03:47', '2012-12-07 11:03:47')  (24.5ms) COMMIT  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.9ms) 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  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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 (3.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (1.5ms) ROLLBACK  (0.6ms) BEGIN  (1.8ms) ROLLBACK  (0.7ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.9ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:03:48', NULL, 'Foo', '2012-12-07 11:03:48')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/28 Completed 302 Found in 13ms (ActiveRecord: 2.3ms)  (0.9ms) SELECT COUNT(*) FROM `things`  (45.9ms) ROLLBACK  (2.1ms) BEGIN Thing Load (3.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (2.1ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 16ms (ActiveRecord: 4.9ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (53.7ms) ROLLBACK  (2.6ms) BEGIN Thing Load (2.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.0ms) Completed 200 OK in 59ms (Views: 56.5ms | ActiveRecord: 1.0ms)  (0.7ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.2ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 1.2ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (8.8ms) Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.0ms)  (5.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (4.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (6.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 16ms (Views: 8.5ms | ActiveRecord: 6.0ms)  (0.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.0ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (3.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 10ms (Views: 2.9ms | ActiveRecord: 4.5ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.6ms)  (0.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) 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.6ms) 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 (3.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 13ms (ActiveRecord: 5.0ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.8ms) SET FOREIGN_KEY_CHECKS = 0  (4.0ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:04:10', '2012-12-07 11:04:10') Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:04:10', '2012-12-07 11:04:10') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:04:10', '2012-12-07 11:04:10', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:04:10', '2012-12-07 11:04:10', 298486374) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:04:10', '2012-12-07 11:04:10', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:04:10', '2012-12-07 11:04:10') Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:04:10', '2012-12-07 11:04:10') Fixture Delete (0.7ms) DELETE FROM `things` Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:04:10', '2012-12-07 11:04:10') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:04:10', '2012-12-07 11:04:10')  (63.3ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (2.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.6ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (3.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:04:11', NULL, 'Foo', '2012-12-07 11:04:11')  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/29 Completed 302 Found in 15ms (ActiveRecord: 4.9ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (72.5ms) ROLLBACK  (2.5ms) BEGIN Thing Load (3.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (6.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.7ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 13ms (ActiveRecord: 4.1ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (51.3ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (13.2ms) Completed 200 OK in 64ms (Views: 61.4ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.8ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.4ms) Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.6ms)  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 7ms (Views: 2.2ms | ActiveRecord: 2.4ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.8ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (1.6ms) BEGIN Thing Load (0.8ms) 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.6ms) 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 (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 2.6ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.8ms) SET FOREIGN_KEY_CHECKS = 0  (3.0ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (2.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:19:26', '2012-12-07 11:19:26') Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:19:26', '2012-12-07 11:19:26') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:19:26', '2012-12-07 11:19:26', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:19:26', '2012-12-07 11:19:26', 298486374) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:19:26', '2012-12-07 11:19:26', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:19:26', '2012-12-07 11:19:26') Fixture Insert (2.0ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:19:26', '2012-12-07 11:19:26') Fixture Delete (0.7ms) DELETE FROM `things` Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:19:26', '2012-12-07 11:19:26') Fixture Insert (0.8ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:19:26', '2012-12-07 11:19:26')  (86.1ms) COMMIT  (1.3ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) BEGIN Ominous::Warning Load (1.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.2ms) 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.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) 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 (1.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (1.8ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:19:27', NULL, 'Foo', '2012-12-07 11:19:27')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/30 Completed 302 Found in 12ms (ActiveRecord: 3.5ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (64.7ms) ROLLBACK  (4.6ms) BEGIN Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (5.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (3.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (2.9ms) SAVEPOINT active_record_1 SQL (5.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (1.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 28ms (ActiveRecord: 11.4ms)  (3.5ms) SELECT COUNT(*) FROM `things`   (46.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (7.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (5.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.8ms) Completed 200 OK in 87ms (Views: 80.3ms | ActiveRecord: 5.3ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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 (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.1ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.6ms) Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (2.3ms) BEGIN Thing Load (0.7ms) 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.7ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.8ms)  (1.0ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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 (1.2ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 1.4ms)  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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 (2.5ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.7ms)  (2.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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 (4.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 12ms (ActiveRecord: 5.8ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (5.2ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) BEGIN Fixture Delete (3.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:20:39', '2012-12-07 11:20:39') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:20:39', '2012-12-07 11:20:39') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:20:39', '2012-12-07 11:20:39', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:20:39', '2012-12-07 11:20:39', 298486374) Fixture Insert (6.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:20:39', '2012-12-07 11:20:39', 113629430) Fixture Delete (0.6ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:20:39', '2012-12-07 11:20:39') Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:20:39', '2012-12-07 11:20:39') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:20:39', '2012-12-07 11:20:39') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:20:39', '2012-12-07 11:20:39')  (104.8ms) COMMIT  (1.6ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) BEGIN Ominous::Warning Load (4.6ms) 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 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.5ms) 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.9ms) 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.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:20:40', NULL, 'Foo', '2012-12-07 11:20:40')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/31 Completed 302 Found in 16ms (ActiveRecord: 4.2ms)  (6.6ms) SELECT COUNT(*) FROM `things`  (38.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.8ms) 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  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (5.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 11ms (ActiveRecord: 7.8ms)  (4.0ms) SELECT COUNT(*) FROM `things`   (53.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (12.6ms) Completed 200 OK in 61ms (Views: 58.1ms | ActiveRecord: 1.1ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.8ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) 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 (3.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.9ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.6ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.6ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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 (3.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 8ms (Views: 2.0ms | ActiveRecord: 2.5ms)  (0.6ms) ROLLBACK  (0.6ms) 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 (0.7ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (1.6ms) 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 (0.7ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 13ms (ActiveRecord: 1.7ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.9ms) SELECT @@FOREIGN_KEY_CHECKS  (1.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.7ms) BEGIN Fixture Delete (1.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:24:49', '2012-12-07 11:24:49') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:24:49', '2012-12-07 11:24:49') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:24:49', '2012-12-07 11:24:49', 980190962) Fixture Insert (7.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:24:49', '2012-12-07 11:24:49', 298486374) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:24:49', '2012-12-07 11:24:49', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:24:49', '2012-12-07 11:24:49') Fixture Insert (0.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:24:49', '2012-12-07 11:24:49') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:24:49', '2012-12-07 11:24:49') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:24:49', '2012-12-07 11:24:49')  (30.7ms) COMMIT  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (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.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (1.0ms) 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  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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 Ominous::Warning Exists (0.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.7ms) BEGIN Ominous::Warning Load (0.6ms) 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.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:24:50', NULL, 'Foo', '2012-12-07 11:24:50')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/32 Completed 302 Found in 12ms (ActiveRecord: 2.3ms)  (0.9ms) SELECT COUNT(*) FROM `things`  (55.6ms) ROLLBACK  (1.9ms) BEGIN Thing Load (3.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 2.9ms)  (5.0ms) SELECT COUNT(*) FROM `things`   (44.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (2.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (5.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.1ms) Completed 200 OK in 114ms (Views: 107.2ms | ActiveRecord: 5.3ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.8ms) 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.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.8ms)  (1.4ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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.5ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.6ms) 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.8ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.8ms)  (3.9ms) ROLLBACK  (2.0ms) BEGIN Thing Load (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 1.5ms)  (6.0ms) ROLLBACK  (0.5ms) BEGIN Thing Load (3.7ms) 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 (1.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 (3.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 13ms (Views: 4.5ms | ActiveRecord: 4.7ms)  (7.0ms) ROLLBACK  (0.6ms) BEGIN Thing Load (6.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (3.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 12ms (Views: 2.0ms | ActiveRecord: 3.7ms)  (8.9ms) ROLLBACK  (0.6ms) BEGIN Thing Load (2.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (7.0ms) 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 (6.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (3.4ms) SAVEPOINT active_record_1  (4.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 20ms (ActiveRecord: 14.0ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (5.0ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:25:07', '2012-12-07 11:25:07') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:25:07', '2012-12-07 11:25:07') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:25:07', '2012-12-07 11:25:07', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:25:07', '2012-12-07 11:25:07', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:25:07', '2012-12-07 11:25:07', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:25:07', '2012-12-07 11:25:07') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:25:07', '2012-12-07 11:25:07') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:25:07', '2012-12-07 11:25:07') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:25:07', '2012-12-07 11:25:07')  (50.4ms) COMMIT  (1.8ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) BEGIN Ominous::Warning Load (2.5ms) 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 Ominous::Closer Load (7.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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  (6.0ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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 (6.2ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.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 (4.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (1.3ms) ROLLBACK  (7.2ms) BEGIN  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (3.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:25:08', NULL, 'Foo', '2012-12-07 11:25:08')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/33 Completed 302 Found in 12ms (ActiveRecord: 2.0ms)  (0.7ms) SELECT COUNT(*) FROM `things`  (51.3ms) ROLLBACK  (1.8ms) BEGIN Thing Load (3.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (3.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (6.3ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (1.5ms) DELETE FROM `things` WHERE `things`.`id` = 1  (1.9ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 15ms (ActiveRecord: 4.9ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (27.1ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.5ms) Completed 200 OK in 60ms (Views: 57.4ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.7ms)  (0.9ms) ROLLBACK  (0.5ms) 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 (3.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.8ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) 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.7ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.7ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.8ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 1.1ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.1ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 1.5ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (4.6ms) SET FOREIGN_KEY_CHECKS = 0  (7.1ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:26:09', '2012-12-07 11:26:09') Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:26:09', '2012-12-07 11:26:09') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (1.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:26:09', '2012-12-07 11:26:09', 980190962) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:26:09', '2012-12-07 11:26:09', 298486374) Fixture Insert (0.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:26:09', '2012-12-07 11:26:09', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:26:09', '2012-12-07 11:26:09') Fixture Insert (0.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:26:09', '2012-12-07 11:26:09') Fixture Delete (0.8ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:26:09', '2012-12-07 11:26:09') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:26:09', '2012-12-07 11:26:09')  (66.7ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.7ms) BEGIN Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (2.0ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) 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 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) 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` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.8ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:26:09', NULL, 'Foo', '2012-12-07 11:26:09')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/34 Completed 302 Found in 13ms (ActiveRecord: 2.3ms)  (1.1ms) SELECT COUNT(*) FROM `things`  (48.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.8ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (43.3ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.7ms) Completed 200 OK in 60ms (Views: 56.9ms | ActiveRecord: 1.2ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.9ms) SELECT `things`.* FROM `things`  Completed 200 OK in 18ms (Views: 14.6ms | ActiveRecord: 0.9ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (10.4ms) Completed 200 OK in 19ms (Views: 18.2ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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 (4.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 10ms (Views: 6.6ms | ActiveRecord: 1.2ms)  (0.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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.8ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.7ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 2.3ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (5.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (8.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 17ms (Views: 7.5ms | ActiveRecord: 8.3ms)  (4.4ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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 (3.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 (5.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (11.1ms) SAVEPOINT active_record_1  (0.8ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 21ms (ActiveRecord: 17.7ms)  (0.8ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (3.6ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:26:43', '2012-12-07 11:26:43') Fixture Insert (1.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:26:43', '2012-12-07 11:26:43') Fixture Delete (1.1ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:26:43', '2012-12-07 11:26:43', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:26:43', '2012-12-07 11:26:43', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:26:43', '2012-12-07 11:26:43', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:26:43', '2012-12-07 11:26:43') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:26:43', '2012-12-07 11:26:43') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:26:43', '2012-12-07 11:26:43') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:26:43', '2012-12-07 11:26:43')  (89.4ms) COMMIT  (3.3ms) SET FOREIGN_KEY_CHECKS = 1  (1.4ms) BEGIN Ominous::Warning Load (2.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (5.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (4.5ms) 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  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (8.0ms) 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.5ms) 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  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (5.5ms) ROLLBACK  (2.8ms) BEGIN Thing Load (6.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:26:43', NULL, 'Foo', '2012-12-07 11:26:43')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/35 Completed 302 Found in 11ms (ActiveRecord: 1.7ms)  (0.7ms) SELECT COUNT(*) FROM `things`  (48.2ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 2.8ms)  (3.1ms) SELECT COUNT(*) FROM `things`   (38.0ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.9ms) Completed 200 OK in 62ms (Views: 59.6ms | ActiveRecord: 0.6ms)  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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 (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 18ms (Views: 15.6ms | ActiveRecord: 0.8ms)  (0.6ms) ROLLBACK  (0.4ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (14.1ms) Completed 200 OK in 29ms (Views: 28.4ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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 (7.8ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) 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.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.6ms)  (3.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (5.8ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 2.4ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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 (4.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 1.6ms)  (1.3ms) ROLLBACK  (0.5ms) BEGIN Thing Load (5.5ms) 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 (0.5ms) 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 (11.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 16ms (ActiveRecord: 12.3ms)  (2.7ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (6.3ms) SET FOREIGN_KEY_CHECKS = 0  (1.9ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:29:54', '2012-12-07 11:29:54') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:29:54', '2012-12-07 11:29:54') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (1.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:29:54', '2012-12-07 11:29:54', 980190962) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:29:54', '2012-12-07 11:29:54', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:29:54', '2012-12-07 11:29:54', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:29:54', '2012-12-07 11:29:54') Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:29:54', '2012-12-07 11:29:54') Fixture Delete (0.8ms) DELETE FROM `things` Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:29:54', '2012-12-07 11:29:54') Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:29:54', '2012-12-07 11:29:54')  (67.6ms) COMMIT  (2.4ms) SET FOREIGN_KEY_CHECKS = 1  (3.6ms) BEGIN Ominous::Warning Load (3.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.7ms) 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  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) 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` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) ROLLBACK  (0.8ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (4.6ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:29:54', NULL, 'Foo', '2012-12-07 11:29:54')  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/36 Completed 302 Found in 18ms (ActiveRecord: 6.1ms)  (6.9ms) SELECT COUNT(*) FROM `things`  (44.3ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (2.9ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 5.0ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (46.5ms) ROLLBACK  (3.3ms) BEGIN Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.7ms) Completed 200 OK in 66ms (Views: 63.2ms | ActiveRecord: 0.7ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.0ms) 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.8ms) 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 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 1.2ms)  (0.9ms) ROLLBACK  (0.8ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.7ms)  (0.7ms) ROLLBACK  (0.7ms) BEGIN Thing Load (1.6ms) 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.7ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 6ms (Views: 2.1ms | ActiveRecord: 1.5ms)  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.3ms) 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 (4.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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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.7ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 10ms (Views: 2.2ms | ActiveRecord: 1.5ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.7ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.3ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 2.7ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (5.6ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:31:13', '2012-12-07 11:31:13') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:31:13', '2012-12-07 11:31:13') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:31:13', '2012-12-07 11:31:13', 980190962) Fixture Insert (1.0ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:31:13', '2012-12-07 11:31:13', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:31:13', '2012-12-07 11:31:13', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:31:13', '2012-12-07 11:31:13') Fixture Insert (0.3ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:31:13', '2012-12-07 11:31:13') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (2.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:31:13', '2012-12-07 11:31:13') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:31:13', '2012-12-07 11:31:13')  (65.8ms) COMMIT  (1.4ms) SET FOREIGN_KEY_CHECKS = 1  (6.6ms) BEGIN Ominous::Warning Load (4.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.5ms) ROLLBACK  (0.7ms) BEGIN Ominous::Warning Load (0.5ms) 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.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.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:31:14', NULL, 'Foo', '2012-12-07 11:31:14')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/37 Completed 302 Found in 10ms (ActiveRecord: 2.1ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (40.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.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  (5.2ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (6.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 11ms (ActiveRecord: 8.1ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (44.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) 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 (4.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (2.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.9ms) Completed 200 OK in 58ms (Views: 53.5ms | ActiveRecord: 2.5ms)  (0.6ms) ROLLBACK  (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.1ms) SELECT `things`.* FROM `things`  Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 1.1ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.9ms) 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#new as HTML Rendered things/_form.html.erb (6.4ms) Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) 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 (0.5ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 8ms (Views: 3.9ms | ActiveRecord: 0.7ms)  (1.9ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 1.0ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 7ms (Views: 2.0ms | ActiveRecord: 1.1ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.1ms) 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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 1.0ms)  (0.5ms) ROLLBACK  (0.7ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (5.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 10ms (ActiveRecord: 6.6ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (0.9ms) SET FOREIGN_KEY_CHECKS = 0  (1.7ms) BEGIN Fixture Delete (2.7ms) DELETE FROM `ominous_warnings` Fixture Insert (1.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 11:34:24', '2012-12-07 11:34:24') Fixture Insert (1.2ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 11:34:24', '2012-12-07 11:34:24') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 11:34:24', '2012-12-07 11:34:24', 980190962) Fixture Insert (1.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 11:34:24', '2012-12-07 11:34:24', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 11:34:24', '2012-12-07 11:34:24', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 11:34:24', '2012-12-07 11:34:24') Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 11:34:24', '2012-12-07 11:34:24') Fixture Delete (0.8ms) DELETE FROM `things` Fixture Insert (0.8ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 11:34:25', '2012-12-07 11:34:25') Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 11:34:25', '2012-12-07 11:34:25')  (67.8ms) COMMIT  (3.2ms) SET FOREIGN_KEY_CHECKS = 1  (2.6ms) BEGIN Ominous::Warning Load (3.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (3.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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 (1.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.7ms) ROLLBACK  (4.8ms) BEGIN Ominous::Warning Load (0.9ms) 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 (2.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.7ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.7ms) BEGIN Thing Load (4.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (2.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (6.0ms) SAVEPOINT active_record_1 SQL (5.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 11:34:25', NULL, 'Foo', '2012-12-07 11:34:25')  (4.8ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/38 Completed 302 Found in 23ms (ActiveRecord: 15.7ms)  (6.6ms) SELECT COUNT(*) FROM `things`  (58.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.3ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (1.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 3.9ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (48.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.7ms) Completed 200 OK in 60ms (Views: 57.7ms | ActiveRecord: 0.7ms)  (0.7ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.9ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.9ms)  (1.1ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.9ms) Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.0ms) 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.6ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.8ms)  (2.1ms) ROLLBACK  (0.8ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) 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#show as HTML Parameters: {"id"=>"1"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 1.2ms)  (3.0ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.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 (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 10ms (Views: 3.0ms | ActiveRecord: 2.2ms)  (0.9ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.7ms) 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.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.9ms)  (1.2ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (3.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (2.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 19ms (Views: 2.8ms | ActiveRecord: 5.4ms)  (9.2ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (7.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) 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.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (7.9ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 13ms (ActiveRecord: 9.5ms)  (0.8ms) ROLLBACK Connecting to database specified by database.yml  (2.0ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (7.0ms) BEGIN Fixture Delete (2.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 12:21:19', '2012-12-07 12:21:19') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 12:21:19', '2012-12-07 12:21:19') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 12:21:19', '2012-12-07 12:21:19', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 12:21:19', '2012-12-07 12:21:19', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 12:21:19', '2012-12-07 12:21:19', 113629430) Fixture Delete (0.9ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 12:21:19', '2012-12-07 12:21:19') Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 12:21:19', '2012-12-07 12:21:19') Fixture Delete (0.6ms) DELETE FROM `things` Fixture Insert (0.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 12:21:19', '2012-12-07 12:21:19') Fixture Insert (0.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 12:21:19', '2012-12-07 12:21:19')  (56.9ms) COMMIT  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.9ms) 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 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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 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.6ms) 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.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 12:21:20', NULL, 'Foo', '2012-12-07 12:21:20')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/39 Completed 302 Found in 10ms (ActiveRecord: 1.9ms)  (0.7ms) SELECT COUNT(*) FROM `things`  (80.3ms) ROLLBACK  (7.1ms) BEGIN Thing Load (7.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.9ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 11ms (ActiveRecord: 3.3ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (51.7ms) ROLLBACK  (1.1ms) BEGIN Thing Load (1.2ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.2ms) Completed 200 OK in 55ms (Views: 53.0ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.7ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (2.3ms) 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#new as HTML Rendered things/_form.html.erb (5.5ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 8ms (Views: 3.5ms | ActiveRecord: 0.6ms)  (0.8ms) ROLLBACK  (0.4ms) 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 (0.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 27ms (Views: 24.4ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) 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.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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 1.2ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.6ms)  (0.7ms) ROLLBACK  (0.7ms) 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 (0.7ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (6.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 18ms (Views: 2.0ms | ActiveRecord: 7.3ms)  (3.9ms) ROLLBACK  (0.8ms) BEGIN Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (6.8ms) 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 (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (5.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 11ms (ActiveRecord: 7.3ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (2.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (1.5ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 12:23:19', '2012-12-07 12:23:19') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 12:23:19', '2012-12-07 12:23:19') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (2.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 12:23:19', '2012-12-07 12:23:19', 980190962) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 12:23:19', '2012-12-07 12:23:19', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 12:23:19', '2012-12-07 12:23:19', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 12:23:19', '2012-12-07 12:23:19') Fixture Insert (3.9ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 12:23:19', '2012-12-07 12:23:19') Fixture Delete (5.2ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 12:23:19', '2012-12-07 12:23:19') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 12:23:19', '2012-12-07 12:23:19')  (39.6ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (1.0ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 12:23:19', NULL, 'Foo', '2012-12-07 12:23:19')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/40 Completed 302 Found in 11ms (ActiveRecord: 2.1ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (48.4ms) ROLLBACK  (0.8ms) BEGIN Thing Load (0.7ms) 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.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (3.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 10ms (ActiveRecord: 5.3ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (48.4ms) ROLLBACK  (1.2ms) BEGIN Thing Load (0.8ms) 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.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.8ms) Completed 500 Internal Server Error in 88ms  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.4ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 5.7ms | ActiveRecord: 1.4ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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 (4.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.4ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (2.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 13ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.5ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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 (3.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (7.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 14ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (6.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.9ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (6.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 11ms (Views: 1.8ms | ActiveRecord: 7.9ms)  (11.3ms) ROLLBACK  (3.7ms) BEGIN Thing Load (0.7ms) 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 (6.6ms) 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 (5.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.0ms) SAVEPOINT active_record_1  (0.8ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 15ms (ActiveRecord: 7.1ms)  (3.9ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (5.7ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (1.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 12:32:27', '2012-12-07 12:32:27') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 12:32:27', '2012-12-07 12:32:27') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 12:32:27', '2012-12-07 12:32:27', 980190962) Fixture Insert (3.1ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 12:32:27', '2012-12-07 12:32:27', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 12:32:27', '2012-12-07 12:32:27', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 12:32:27', '2012-12-07 12:32:27') Fixture Insert (0.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 12:32:27', '2012-12-07 12:32:27') Fixture Delete (0.7ms) DELETE FROM `things` Fixture Insert (3.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 12:32:28', '2012-12-07 12:32:28') Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 12:32:28', '2012-12-07 12:32:28')  (79.2ms) COMMIT  (2.1ms) SET FOREIGN_KEY_CHECKS = 1  (3.9ms) BEGIN Ominous::Warning Load (11.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.9ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 12:32:28', NULL, 'Foo', '2012-12-07 12:32:28')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 21ms (ActiveRecord: 2.6ms)  (1.0ms) SELECT COUNT(*) FROM `things`  (59.6ms) ROLLBACK  (2.3ms) BEGIN Thing Load (4.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (3.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (1.9ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 4.2ms)  (1.3ms) SELECT COUNT(*) FROM `things`   (45.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.0ms) Completed 200 OK in 72ms (Views: 68.2ms | ActiveRecord: 0.8ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) 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 (3.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.9ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 6.6ms | ActiveRecord: 0.9ms)  (0.7ms) ROLLBACK  (2.9ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (5.1ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.7ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.8ms)  (0.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.7ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.8ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 1.5ms)  (1.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (7.1ms) 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.6ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.8ms)  (12.2ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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 (2.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 (11.0ms) 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 15ms (Views: 2.0ms | ActiveRecord: 11.8ms)  (0.9ms) ROLLBACK  (6.2ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 14ms (ActiveRecord: 2.1ms)  (0.8ms) ROLLBACK Connecting to database specified by database.yml  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (3.6ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 12:32:45', '2012-12-07 12:32:45') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 12:32:45', '2012-12-07 12:32:45') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 12:32:45', '2012-12-07 12:32:45', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 12:32:45', '2012-12-07 12:32:45', 298486374) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 12:32:45', '2012-12-07 12:32:45', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (1.0ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 12:32:45', '2012-12-07 12:32:45') Fixture Insert (5.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 12:32:45', '2012-12-07 12:32:45') Fixture Delete (1.9ms) DELETE FROM `things` Fixture Insert (4.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 12:32:45', '2012-12-07 12:32:45') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 12:32:45', '2012-12-07 12:32:45')  (53.4ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.8ms) 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 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.7ms) 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.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.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.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.1ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 12:32:45', NULL, 'Foo', '2012-12-07 12:32:45')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/4 Completed 302 Found in 10ms (ActiveRecord: 1.8ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (37.3ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.6ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (36.1ms) ROLLBACK  (1.5ms) BEGIN Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.6ms) Completed 500 Internal Server Error in 87ms  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.7ms)  (0.5ms) ROLLBACK  (0.4ms) 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 (2.1ms) 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.0ms) Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.8ms) 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.7ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 9ms  (0.5ms) ROLLBACK  (0.8ms) 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 (0.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.6ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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 (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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 7ms  (0.5ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.5ms) 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 (0.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.7ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) 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.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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 1.0ms)  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) 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.5ms) 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.6ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (1.0ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (2.3ms) BEGIN Fixture Delete (1.5ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 12:33:06', '2012-12-07 12:33:06') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 12:33:06', '2012-12-07 12:33:06') Fixture Delete (3.3ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 12:33:06', '2012-12-07 12:33:06', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 12:33:06', '2012-12-07 12:33:06', 298486374) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 12:33:06', '2012-12-07 12:33:06', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 12:33:06', '2012-12-07 12:33:06') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 12:33:06', '2012-12-07 12:33:06') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 12:33:06', '2012-12-07 12:33:06') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 12:33:06', '2012-12-07 12:33:06')  (58.8ms) COMMIT  (1.0ms) SET FOREIGN_KEY_CHECKS = 1  (2.1ms) BEGIN Ominous::Warning Load (2.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.7ms) BEGIN Ominous::Warning Load (0.7ms) 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  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.9ms) 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` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (9.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 12:33:06', NULL, 'Foo', '2012-12-07 12:33:06')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/5 Completed 302 Found in 17ms (ActiveRecord: 10.6ms)  (6.7ms) SELECT COUNT(*) FROM `things`  (35.1ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (7.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (4.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 5.8ms)  (3.6ms) SELECT COUNT(*) FROM `things`   (44.1ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.6ms) Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.4ms) Completed 200 OK in 65ms (Views: 61.7ms | ActiveRecord: 1.1ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 0.8ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.0ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 0.7ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 2.1ms)  (0.8ms) ROLLBACK  (1.0ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 1.3ms)  (0.7ms) ROLLBACK  (1.0ms) BEGIN Thing Load (6.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (4.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (5.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 11ms (Views: 4.7ms | ActiveRecord: 5.3ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 8ms (Views: 2.5ms | ActiveRecord: 1.9ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.9ms) 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.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (1.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 2.4ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (4.7ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 12:33:48', '2012-12-07 12:33:48') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 12:33:48', '2012-12-07 12:33:48') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 12:33:48', '2012-12-07 12:33:48', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 12:33:48', '2012-12-07 12:33:48', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 12:33:48', '2012-12-07 12:33:48', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 12:33:48', '2012-12-07 12:33:48') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 12:33:48', '2012-12-07 12:33:48') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 12:33:48', '2012-12-07 12:33:48') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 12:33:48', '2012-12-07 12:33:48')  (83.1ms) COMMIT  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (1.3ms) BEGIN Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.7ms) ROLLBACK  (0.5ms) BEGIN  (1.4ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 12:33:49', NULL, 'Foo', '2012-12-07 12:33:49')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/6 Completed 302 Found in 11ms (ActiveRecord: 1.8ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (67.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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.5ms) SAVEPOINT active_record_1 SQL (6.1ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 15ms (ActiveRecord: 12.4ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (43.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.1ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (12.5ms) Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.2ms) Completed 200 OK in 70ms (Views: 68.1ms | ActiveRecord: 0.6ms)  (1.8ms) ROLLBACK  (0.9ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.2ms) SELECT `things`.* FROM `things`  Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 1.2ms)  (0.5ms) ROLLBACK  (0.5ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.8ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.4ms) 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 (2.7ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.6ms)  (0.7ms) ROLLBACK  (0.4ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 1.0ms)  (1.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 1.3ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (5.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 2.3ms | ActiveRecord: 5.2ms)  (0.5ms) ROLLBACK  (0.5ms) 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 (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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 1.0ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 2.0ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (2.6ms) SET FOREIGN_KEY_CHECKS = 0  (5.2ms) BEGIN Fixture Delete (1.5ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 12:34:39', '2012-12-07 12:34:39') Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 12:34:39', '2012-12-07 12:34:39') Fixture Delete (1.0ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 12:34:39', '2012-12-07 12:34:39', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 12:34:39', '2012-12-07 12:34:39', 298486374) Fixture Insert (0.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 12:34:39', '2012-12-07 12:34:39', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 12:34:39', '2012-12-07 12:34:39') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 12:34:39', '2012-12-07 12:34:39') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 12:34:39', '2012-12-07 12:34:39') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 12:34:39', '2012-12-07 12:34:39')  (78.5ms) COMMIT  (1.7ms) SET FOREIGN_KEY_CHECKS = 1  (2.7ms) BEGIN Ominous::Warning Load (4.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (3.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (2.1ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (3.9ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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 (2.2ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (1.8ms) ROLLBACK  (2.2ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (4.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (3.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (5.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (2.1ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (1.3ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 12:34:40', NULL, 'Foo', '2012-12-07 12:34:40')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/7 Completed 302 Found in 15ms (ActiveRecord: 3.5ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (53.6ms) ROLLBACK  (1.2ms) BEGIN Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.9ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 3.2ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (43.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (12.1ms) Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.4ms) Completed 200 OK in 72ms (Views: 69.1ms | ActiveRecord: 0.7ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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 (2.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.8ms) Completed 200 OK in 10ms (Views: 9.7ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 4.0ms | ActiveRecord: 0.7ms)  (0.8ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) 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.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 1.1ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.1ms) 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.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.1ms) Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 1.4ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.6ms) 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 (5.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 (5.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 10ms (Views: 2.5ms | ActiveRecord: 5.8ms)  (9.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (4.1ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 14ms (ActiveRecord: 5.5ms)  (1.7ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.8ms) SELECT @@FOREIGN_KEY_CHECKS  (1.0ms) SET FOREIGN_KEY_CHECKS = 0  (0.9ms) BEGIN Fixture Delete (1.8ms) DELETE FROM `ominous_warnings` Fixture Insert (1.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 14:32:02', '2012-12-07 14:32:02') Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 14:32:02', '2012-12-07 14:32:02') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 14:32:02', '2012-12-07 14:32:02', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 14:32:02', '2012-12-07 14:32:02', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 14:32:02', '2012-12-07 14:32:02', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 14:32:02', '2012-12-07 14:32:02') Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 14:32:02', '2012-12-07 14:32:02') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 14:32:02', '2012-12-07 14:32:02') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 14:32:02', '2012-12-07 14:32:02')  (68.2ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (4.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (2.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1  (2.4ms) ROLLBACK  (3.9ms) BEGIN Ominous::Warning Load (0.8ms) 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  (1.8ms) ROLLBACK  (1.9ms) BEGIN Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (1.0ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (1.9ms) ROLLBACK  (0.9ms) BEGIN  (1.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 14:32:02', NULL, 'Foo', '2012-12-07 14:32:02')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/8 Completed 302 Found in 11ms (ActiveRecord: 2.0ms)  (1.0ms) SELECT COUNT(*) FROM `things`   (53.8ms) ROLLBACK  (3.4ms) BEGIN Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.1ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) SAVEPOINT active_record_1 SQL (3.1ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.9ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 12ms (ActiveRecord: 6.0ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (33.0ms) ROLLBACK  (2.0ms) BEGIN Thing Load (3.2ms) 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 (1.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (2.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.5ms) Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (1.3ms) Completed 200 OK in 72ms (Views: 66.4ms | ActiveRecord: 3.5ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 12ms (Views: 8.6ms | ActiveRecord: 0.8ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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 (2.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.5ms) Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 1.4ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.9ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.4ms) Completed 200 OK in 10ms (Views: 4.0ms | ActiveRecord: 3.3ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.0ms) 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.6ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 1.4ms)  (0.7ms) ROLLBACK  (2.1ms) BEGIN Thing Load (1.8ms) 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 (3.5ms) 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 (4.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 13ms (ActiveRecord: 5.3ms)  (2.8ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (8.0ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (1.2ms) DELETE FROM `ominous_warnings` Fixture Insert (2.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 14:32:47', '2012-12-07 14:32:47') Fixture Insert (1.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 14:32:47', '2012-12-07 14:32:47') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 14:32:47', '2012-12-07 14:32:47', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 14:32:47', '2012-12-07 14:32:47', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 14:32:47', '2012-12-07 14:32:47', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 14:32:47', '2012-12-07 14:32:47') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 14:32:47', '2012-12-07 14:32:47') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 14:32:47', '2012-12-07 14:32:47') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 14:32:47', '2012-12-07 14:32:47')  (55.9ms) COMMIT  (0.8ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (1.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.9ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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  (2.1ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (5.3ms) BEGIN Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 14:32:48', NULL, 'Foo', '2012-12-07 14:32:48')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/9 Completed 302 Found in 32ms (ActiveRecord: 2.0ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (34.2ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) 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  (0.6ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.9ms) SAVEPOINT active_record_1 SQL (1.0ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 3.1ms)  (0.7ms) SELECT COUNT(*) FROM `things`  (35.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.8ms) Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.8ms) Completed 200 OK in 72ms (Views: 68.9ms | ActiveRecord: 1.4ms)  (0.5ms) ROLLBACK  (0.4ms) 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#index as HTML Thing Load (1.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 1.5ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.0ms) 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#new as HTML Rendered things/_form.html.erb (12.3ms) Completed 200 OK in 20ms (Views: 19.6ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (7.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.2ms) Completed 200 OK in 15ms (Views: 5.0ms | ActiveRecord: 8.4ms)  (0.6ms) ROLLBACK  (0.5ms) 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 (0.6ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.8ms)  (1.0ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.8ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 4.1ms | ActiveRecord: 2.9ms)  (0.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.5ms) 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.1ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.7ms) 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 (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 (4.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 11ms (Views: 2.1ms | ActiveRecord: 6.1ms)  (10.2ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.7ms) 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 (4.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (3.1ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 12ms (ActiveRecord: 8.1ms)  (4.3ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) BEGIN Fixture Delete (1.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 14:34:05', '2012-12-07 14:34:05') Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 14:34:05', '2012-12-07 14:34:05') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (2.0ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 14:34:05', '2012-12-07 14:34:05', 980190962) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 14:34:05', '2012-12-07 14:34:05', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 14:34:05', '2012-12-07 14:34:05', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 14:34:05', '2012-12-07 14:34:05') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 14:34:05', '2012-12-07 14:34:05') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 14:34:05', '2012-12-07 14:34:05') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 14:34:05', '2012-12-07 14:34:05')  (72.2ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) 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` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (1.4ms) 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  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.6ms) BEGIN  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (1.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 14:34:06', NULL, 'Foo', '2012-12-07 14:34:06')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/10 Completed 302 Found in 33ms (ActiveRecord: 2.6ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (70.4ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.5ms)  (0.7ms) SELECT COUNT(*) FROM `things`  (48.9ms) ROLLBACK  (1.6ms) BEGIN Thing Load (2.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.4ms) Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.9ms) Completed 200 OK in 66ms (Views: 61.6ms | ActiveRecord: 1.7ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.0ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 1.0ms)  (2.1ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.6ms) Completed 200 OK in 13ms (Views: 11.8ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) 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 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.2ms) Completed 200 OK in 12ms (Views: 8.8ms | ActiveRecord: 1.9ms)  (0.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 1.1ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.3ms) Completed 200 OK in 10ms (Views: 6.2ms | ActiveRecord: 2.2ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.2ms) 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.7ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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 (6.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (5.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 11ms (Views: 2.2ms | ActiveRecord: 6.7ms)  (10.1ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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 (2.5ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.4ms) SAVEPOINT active_record_1  (6.8ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 12ms (ActiveRecord: 9.0ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (1.1ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (9.0ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (3.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 14:39:51', '2012-12-07 14:39:51') Fixture Insert (3.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 14:39:51', '2012-12-07 14:39:51') Fixture Delete (0.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 14:39:51', '2012-12-07 14:39:51', 980190962) Fixture Insert (1.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 14:39:51', '2012-12-07 14:39:51', 298486374) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 14:39:51', '2012-12-07 14:39:51', 113629430) Fixture Delete (0.6ms) DELETE FROM `ominous_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 14:39:51', '2012-12-07 14:39:51') Fixture Insert (1.1ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 14:39:51', '2012-12-07 14:39:51') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 14:39:51', '2012-12-07 14:39:51') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 14:39:51', '2012-12-07 14:39:51')  (80.9ms) COMMIT  (1.6ms) SET FOREIGN_KEY_CHECKS = 1  (2.9ms) BEGIN Ominous::Warning Load (3.5ms) 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 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.7ms) 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.5ms) SAVEPOINT active_record_1 SQL (7.5ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (1.9ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-07 14:39:51' WHERE `ominous_warning_closers`.`id` = 298486374  (1.0ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.4ms) RELEASE SAVEPOINT active_record_1  (43.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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 (6.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 14:39:51', NULL, 'Foo', '2012-12-07 14:39:51')  (1.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/11 Completed 302 Found in 10ms (ActiveRecord: 3.0ms)  (0.9ms) SELECT COUNT(*) FROM `things`   (48.1ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.2ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (43.7ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (7.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (15.8ms) Ominous::Warning Load (5.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.8ms) Completed 200 OK in 129ms (Views: 121.2ms | ActiveRecord: 6.3ms)  (6.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (9.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.4ms) SELECT `things`.* FROM `things`  Completed 200 OK in 13ms (Views: 9.9ms | ActiveRecord: 1.4ms)  (0.6ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.5ms) 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 (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.0ms) Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (5.0ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.8ms) 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 (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (2.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.3ms) Completed 200 OK in 14ms (Views: 8.7ms | ActiveRecord: 4.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (3.0ms) 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 (2.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 (7.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 11ms (Views: 3.0ms | ActiveRecord: 7.4ms)  (4.2ms) ROLLBACK  (0.4ms) BEGIN Thing Load (4.8ms) 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 (2.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (9.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.8ms) Completed 200 OK in 20ms (Views: 7.1ms | ActiveRecord: 11.2ms)  (6.0ms) ROLLBACK  (0.4ms) BEGIN Thing Load (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 1.2ms)  (0.6ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.6ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (6.3ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 12ms (ActiveRecord: 7.5ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (1.9ms) SET FOREIGN_KEY_CHECKS = 0  (2.8ms) BEGIN Fixture Delete (2.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 14:40:16', '2012-12-07 14:40:16') Fixture Insert (1.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 14:40:16', '2012-12-07 14:40:16') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 14:40:16', '2012-12-07 14:40:16', 980190962) Fixture Insert (0.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 14:40:16', '2012-12-07 14:40:16', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 14:40:16', '2012-12-07 14:40:16', 113629430) Fixture Delete (0.7ms) DELETE FROM `ominous_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 14:40:16', '2012-12-07 14:40:16') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 14:40:16', '2012-12-07 14:40:16') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (1.0ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 14:40:17', '2012-12-07 14:40:17') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 14:40:17', '2012-12-07 14:40:17')  (57.5ms) COMMIT  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) BEGIN Ominous::Warning Load (1.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.7ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (2.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.9ms) 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.6ms) SAVEPOINT active_record_1 SQL (2.4ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (1.2ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-07 14:40:17' WHERE `ominous_warning_closers`.`id` = 298486374  (0.8ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (1.7ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (45.1ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.8ms) 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  (0.7ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (1.0ms) BEGIN  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (3.0ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 14:40:17', NULL, 'Foo', '2012-12-07 14:40:17')  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/12 Completed 302 Found in 17ms (ActiveRecord: 9.8ms)  (0.9ms) SELECT COUNT(*) FROM `things`   (45.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (5.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 12ms (ActiveRecord: 3.3ms)  (1.3ms) SELECT COUNT(*) FROM `things`  (46.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.7ms) Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.6ms) Completed 200 OK in 67ms (Views: 63.2ms | ActiveRecord: 2.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 0.8ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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 (5.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (6.5ms) Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.2ms) Completed 200 OK in 12ms (Views: 7.7ms | ActiveRecord: 1.9ms)  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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 (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 1.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.8ms) 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.7ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.3ms) Completed 200 OK in 10ms (Views: 4.1ms | ActiveRecord: 3.6ms)  (0.6ms) ROLLBACK  (0.8ms) BEGIN Thing Load (0.6ms) 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.6ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.8ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (5.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (3.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (2.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 11ms (Views: 2.8ms | ActiveRecord: 6.2ms)  (3.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (4.9ms) SAVEPOINT active_record_1  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 15ms (ActiveRecord: 6.4ms)  (2.0ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (6.6ms) SET FOREIGN_KEY_CHECKS = 0  (10.9ms) BEGIN Fixture Delete (1.0ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-07 14:57:42', '2012-12-07 14:57:42') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-07 14:57:42', '2012-12-07 14:57:42') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-07 14:57:42', '2012-12-07 14:57:42', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-07 14:57:42', '2012-12-07 14:57:42', 298486374) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-07 14:57:42', '2012-12-07 14:57:42', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'warning_one', '2012-12-07 14:57:42', '2012-12-07 14:57:42') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `created_at`, `updated_at`) VALUES (2, 'warning_two', 'http://undervale.co.uk', '2012-12-07 14:57:42', '2012-12-07 14:57:42') Fixture Delete (0.8ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-07 14:57:42', '2012-12-07 14:57:42') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-07 14:57:42', '2012-12-07 14:57:42')  (59.5ms) COMMIT  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (0.7ms) 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 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.9ms) 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.6ms) 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)  (0.8ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-07 14:57:43' WHERE `ominous_warning_closers`.`id` = 298486374  (0.7ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.5ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (31.9ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.7ms) 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  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.8ms) 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.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 (1.1ms) 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` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-07 14:57:43', NULL, 'Foo', '2012-12-07 14:57:43')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/13 Completed 302 Found in 11ms (ActiveRecord: 3.4ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (45.3ms) ROLLBACK  (2.1ms) BEGIN Thing Load (3.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (2.0ms) SAVEPOINT active_record_1 SQL (1.3ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 10ms (ActiveRecord: 4.8ms)  (0.9ms) SELECT COUNT(*) FROM `things`  (48.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (3.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.6ms) Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.8ms) Completed 200 OK in 113ms (Views: 106.8ms | ActiveRecord: 4.5ms)  (0.7ms) ROLLBACK  (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.7ms)  (2.1ms) ROLLBACK  (0.4ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.6ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.2ms) Completed 200 OK in 11ms (Views: 7.3ms | ActiveRecord: 1.9ms)  (1.1ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.6ms) 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.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.6ms)  (0.8ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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 (2.2ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (3.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.2ms) Completed 200 OK in 16ms (Views: 8.0ms | ActiveRecord: 4.8ms)  (5.0ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (7.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 1.1ms)  (8.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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 (5.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (5.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 11ms (Views: 2.1ms | ActiveRecord: 6.2ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (1.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 10ms (ActiveRecord: 2.9ms)  (0.8ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:05', '2012-12-10 08:32:05') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:05', '2012-12-10 08:32:05') 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, '2012-12-10 08:32:05', '2012-12-10 08:32:05', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:05', '2012-12-10 08:32:05', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:05', '2012-12-10 08:32:05', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:05', '2012-12-10 08:32:05') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:05', '2012-12-10 08:32:05')  (49.8ms) ROLLBACK  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (1.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (0.6ms) DELETE FROM `ominous_warnings` Fixture Insert (1.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:05', '2012-12-10 08:32:05') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:05', '2012-12-10 08:32:05') 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, '2012-12-10 08:32:05', '2012-12-10 08:32:05', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:05', '2012-12-10 08:32:05', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:05', '2012-12-10 08:32:05', 113629430) Fixture Delete (0.2ms) 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_hide_warning', '2012-12-10 08:32:05', '2012-12-10 08:32:05') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:05', '2012-12-10 08:32:05')  (35.6ms) ROLLBACK  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:05', '2012-12-10 08:32:05') Fixture Insert (0.2ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:05', '2012-12-10 08:32:05') Fixture Delete (0.2ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:32:05', '2012-12-10 08:32:05', 980190962) Fixture Insert (0.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:05', '2012-12-10 08:32:05', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:05', '2012-12-10 08:32:05', 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_hide_warning', '2012-12-10 08:32:05', '2012-12-10 08:32:05') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:05', '2012-12-10 08:32:05')  (34.5ms) ROLLBACK  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:05', '2012-12-10 08:32:05') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:05', '2012-12-10 08:32:05') Fixture Delete (0.3ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:32:05', '2012-12-10 08:32:05', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:05', '2012-12-10 08:32:05', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:05', '2012-12-10 08:32:05', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (2.3ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:05', '2012-12-10 08:32:05') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:05', '2012-12-10 08:32:05')  (44.5ms) ROLLBACK  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (1.6ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Delete (0.3ms) 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, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 980190962) Fixture Insert (1.1ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 298486374) Fixture Insert (4.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (3.0ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06')  (49.7ms) ROLLBACK  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (0.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Delete (1.1ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 298486374) Fixture Insert (5.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06')  (78.8ms) ROLLBACK  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Delete (0.3ms) 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, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 298486374) Fixture Insert (0.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 113629430) Fixture Delete (2.0ms) DELETE FROM `ominous_closers` Fixture Insert (5.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06')  (64.8ms) ROLLBACK  (1.4ms) SET FOREIGN_KEY_CHECKS = 1  (3.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (1.0ms) DELETE FROM `ominous_warnings` Fixture Insert (1.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Delete (0.3ms) DELETE FROM `ominous_warning_closers` Fixture Insert (1.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 298486374) Fixture Insert (0.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 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_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06')  (47.7ms) ROLLBACK  (0.8ms) SET FOREIGN_KEY_CHECKS = 1  (2.1ms) SELECT @@FOREIGN_KEY_CHECKS  (1.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (1.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 980190962) Fixture Insert (2.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 113629430) Fixture Delete (0.2ms) 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_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06')  (79.3ms) ROLLBACK  (1.0ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) SELECT @@FOREIGN_KEY_CHECKS  (4.9ms) SET FOREIGN_KEY_CHECKS = 0  (1.0ms) BEGIN Fixture Delete (0.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Insert (1.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 298486374) Fixture Insert (0.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06')  (54.5ms) ROLLBACK  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.8ms) SET FOREIGN_KEY_CHECKS = 0  (1.2ms) BEGIN Fixture Delete (0.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Delete (0.3ms) 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, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 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_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06')  (32.4ms) ROLLBACK  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Delete (0.5ms) 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, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06')  (33.4ms) ROLLBACK  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Delete (0.3ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06')  (46.5ms) ROLLBACK  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (0.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Fixture Delete (0.3ms) 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, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:06', '2012-12-10 08:32:06', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (2.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:06', '2012-12-10 08:32:06')  (46.7ms) ROLLBACK  (2.3ms) SET FOREIGN_KEY_CHECKS = 1  (1.2ms) SELECT @@FOREIGN_KEY_CHECKS  (0.8ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:07', '2012-12-10 08:32:07') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:07', '2012-12-10 08:32:07') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:32:07', '2012-12-10 08:32:07', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:07', '2012-12-10 08:32:07', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:07', '2012-12-10 08:32:07', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (2.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:07', '2012-12-10 08:32:07') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:07', '2012-12-10 08:32:07')  (40.5ms) ROLLBACK  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (0.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:07', '2012-12-10 08:32:07') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:07', '2012-12-10 08:32:07') 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, '2012-12-10 08:32:07', '2012-12-10 08:32:07', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:07', '2012-12-10 08:32:07', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:07', '2012-12-10 08:32:07', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:07', '2012-12-10 08:32:07') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:07', '2012-12-10 08:32:07')  (47.9ms) ROLLBACK  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:32:07', '2012-12-10 08:32:07') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:32:07', '2012-12-10 08:32:07') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (1.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:32:07', '2012-12-10 08:32:07', 980190962) Fixture Insert (6.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:32:07', '2012-12-10 08:32:07', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:32:07', '2012-12-10 08:32:07', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (1.1ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:07', '2012-12-10 08:32:07') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:32:07', '2012-12-10 08:32:07')  (46.8ms) ROLLBACK  (0.2ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (2.6ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateOminousWarnings (20121206144249)  (0.9ms) CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Mysql2::Error: Table 'ominous_warnings' already exists: CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:17', '2012-12-10 08:33:17') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:17', '2012-12-10 08:33:17') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:33:17', '2012-12-10 08:33:17', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:17', '2012-12-10 08:33:17', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:17', '2012-12-10 08:33:17', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:17', '2012-12-10 08:33:17') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:17', '2012-12-10 08:33:17')  (59.9ms) ROLLBACK  (0.9ms) SET FOREIGN_KEY_CHECKS = 1  (1.3ms) SELECT @@FOREIGN_KEY_CHECKS  (1.3ms) SET FOREIGN_KEY_CHECKS = 0  (5.4ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (1.2ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:17', '2012-12-10 08:33:17') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:17', '2012-12-10 08:33:17') Fixture Delete (4.8ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:33:17', '2012-12-10 08:33:17', 980190962) Fixture Insert (0.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:17', '2012-12-10 08:33:17', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:17', '2012-12-10 08:33:17', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:17', '2012-12-10 08:33:17') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:17', '2012-12-10 08:33:17')  (44.1ms) ROLLBACK  (1.4ms) SET FOREIGN_KEY_CHECKS = 1  (1.2ms) SELECT @@FOREIGN_KEY_CHECKS  (1.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (0.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Delete (0.3ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18')  (44.6ms) ROLLBACK  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (2.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.4ms) DELETE FROM `ominous_warnings` Fixture Insert (1.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Delete (0.3ms) 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, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 298486374) Fixture Insert (1.0ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18')  (44.6ms) ROLLBACK  (1.7ms) SET FOREIGN_KEY_CHECKS = 1  (0.9ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (0.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 980190962) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18')  (65.1ms) ROLLBACK  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (1.2ms) SELECT @@FOREIGN_KEY_CHECKS  (5.0ms) SET FOREIGN_KEY_CHECKS = 0  (3.2ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Delete (0.9ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18')  (41.8ms) ROLLBACK  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') 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, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18')  (49.6ms) ROLLBACK  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (1.0ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') 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, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18')  (45.6ms) ROLLBACK  (5.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.9ms) SELECT @@FOREIGN_KEY_CHECKS  (0.7ms) SET FOREIGN_KEY_CHECKS = 0  (0.8ms) BEGIN Fixture Delete (0.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Insert (0.2ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Delete (1.2ms) 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, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 298486374) Fixture Insert (0.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 113629430) Fixture Delete (0.2ms) 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_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18')  (40.4ms) ROLLBACK  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (1.6ms) SET FOREIGN_KEY_CHECKS = 0  (0.9ms) BEGIN Fixture Delete (4.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Delete (0.3ms) 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, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 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_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18')  (82.5ms) ROLLBACK  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Delete (5.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 980190962) Fixture Insert (2.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18')  (34.2ms) ROLLBACK  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (1.8ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (0.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Fixture Delete (0.3ms) 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, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 980190962) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:18', '2012-12-10 08:33:18', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:18', '2012-12-10 08:33:18')  (58.7ms) ROLLBACK  (0.9ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (2.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Fixture Delete (0.3ms) 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, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 298486374) Fixture Insert (1.1ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:19', '2012-12-10 08:33:19')  (56.1ms) ROLLBACK  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (1.1ms) BEGIN Fixture Delete (0.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Fixture Delete (0.3ms) 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, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 980190962) Fixture Insert (3.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:19', '2012-12-10 08:33:19')  (112.9ms) ROLLBACK  (1.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.7ms) SELECT @@FOREIGN_KEY_CHECKS  (4.7ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:19', '2012-12-10 08:33:19')  (63.6ms) ROLLBACK  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (0.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Fixture Insert (0.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Fixture Delete (0.3ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 113629430) Fixture Delete (0.4ms) 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_hide_warning', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:19', '2012-12-10 08:33:19')  (45.2ms) ROLLBACK  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (1.7ms) SELECT @@FOREIGN_KEY_CHECKS  (1.0ms) SET FOREIGN_KEY_CHECKS = 0  (3.9ms) BEGIN Fixture Delete (0.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 298486374) Fixture Insert (0.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:33:19', '2012-12-10 08:33:19', 113629430) Fixture Delete (0.2ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:19', '2012-12-10 08:33:19') Mysql2::Error: Unknown column 'closure_method' in 'field list': INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:33:19', '2012-12-10 08:33:19')  (23.0ms) ROLLBACK  (0.3ms) SET FOREIGN_KEY_CHECKS = 1 Connecting to database specified by database.yml  (2.1ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`  Migrating to CreateOminousWarnings (20121206144249)  (0.8ms) CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Mysql2::Error: Table 'ominous_warnings' already exists: CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB Connecting to database specified by database.yml  (37.7ms) DROP TABLE `ominous_closers`  (122.0ms) CREATE TABLE `ominous_closers` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `url` varchar(255), `closure_method` varchar(30), `start_hidden` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (53.0ms) DROP TABLE `ominous_warning_closers`  (107.6ms) CREATE TABLE `ominous_warning_closers` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `warning_id` int(11), `closer_id` int(11), `position` int(11), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (46.9ms) DROP TABLE `ominous_warnings`  (133.2ms) CREATE TABLE `ominous_warnings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (36.5ms) DROP TABLE `things`  (125.2ms) CREATE TABLE `things` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `has_warning` tinyint(1), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB  (9.5ms) SELECT version FROM `schema_migrations`  (34.7ms) INSERT INTO `schema_migrations` (version) VALUES ('20121206144249')  (42.2ms) INSERT INTO `schema_migrations` (version) VALUES ('20121206153254')  (58.9ms) INSERT INTO `schema_migrations` (version) VALUES ('20121206145743') Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (7.8ms) BEGIN Fixture Delete (0.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:34:45', '2012-12-10 08:34:45') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:34:45', '2012-12-10 08:34:45') Fixture Delete (0.3ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:34:45', '2012-12-10 08:34:45', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:34:45', '2012-12-10 08:34:45', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:34:45', '2012-12-10 08:34:45', 113629430) Fixture Delete (0.2ms) 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_hide_warning', '2012-12-10 08:34:45', '2012-12-10 08:34:45') 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', '2012-12-10 08:34:45', '2012-12-10 08:34:45') Fixture Delete (0.2ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:34:45', '2012-12-10 08:34:45') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:34:45', '2012-12-10 08:34:45')  (68.1ms) COMMIT  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (2.5ms) BEGIN Ominous::Warning Load (2.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) ROLLBACK  (0.4ms) 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 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.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) SAVEPOINT active_record_1 SQL (36.0ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (103.8ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:34:45' WHERE `ominous_warning_closers`.`id` = 298486374  (6.3ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (4.0ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (73.8ms) ROLLBACK  (1.1ms) BEGIN Ominous::Warning Load (1.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (9.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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 (1.0ms) 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.5ms) 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  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.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.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:34:46', NULL, 'Foo', '2012-12-10 08:34:46')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.4ms) SELECT COUNT(*) FROM `things`   (89.2ms) ROLLBACK  (1.0ms) BEGIN Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (4.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (2.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 13ms (ActiveRecord: 2.0ms)  (4.2ms) SELECT COUNT(*) FROM `things`  (45.2ms) ROLLBACK  (0.2ms) BEGIN Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (168.4ms) Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (13.9ms) Completed 200 OK in 439ms (Views: 434.3ms | ActiveRecord: 3.1ms)  (1.8ms) 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#index as HTML Thing Load (0.6ms) SELECT `things`.* FROM `things` Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.7ms) 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#new as HTML Rendered things/_form.html.erb (2.4ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (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 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (2.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.3ms) Completed 200 OK in 13ms (Views: 7.9ms | ActiveRecord: 3.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (4.8ms) 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 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (2.9ms) 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"=>"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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.5ms) Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 1.6ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.2ms) 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 (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 1.7ms)  (6.1ms) 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 (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (2.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 Completed 200 OK in 11ms (Views: 4.8ms | ActiveRecord: 2.8ms)  (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.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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:47:38', '2012-12-10 08:47:38') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:47:38', '2012-12-10 08:47:38') 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, '2012-12-10 08:47:38', '2012-12-10 08:47:38', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:47:38', '2012-12-10 08:47:38', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:47:38', '2012-12-10 08:47:38', 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_hide_warning', '2012-12-10 08:47:38', '2012-12-10 08:47:38') 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', '2012-12-10 08:47:38', '2012-12-10 08:47:38') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:47:38', '2012-12-10 08:47:38') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:47:38', '2012-12-10 08:47:38')  (75.7ms) COMMIT  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) BEGIN Ominous::Warning Load (1.8ms) 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 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) 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)  (2.3ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:47:38' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (39.1ms) ROLLBACK  (1.0ms) BEGIN Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.1ms) ROLLBACK  (1.0ms) BEGIN Ominous::Warning Load (0.5ms) 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` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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  (4.3ms) ROLLBACK  (1.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) 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"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:47:38', NULL, 'Foo', '2012-12-10 08:47:38')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/4 Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (2.4ms) SELECT COUNT(*) FROM `things`   (40.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) 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 6ms (ActiveRecord: 1.4ms)  (0.4ms) SELECT COUNT(*) FROM `things`  (40.9ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.6ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.7ms) Completed 200 OK in 77ms (Views: 73.2ms | ActiveRecord: 1.8ms)  (0.3ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.5ms)  (0.3ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.2ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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 (2.5ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.8ms) Completed 200 OK in 14ms (Views: 8.2ms | ActiveRecord: 1.5ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 (1.1ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.6ms)  (1.4ms) ROLLBACK  (0.4ms) 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.7ms) 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.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (2.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.2ms) Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 3.8ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (4.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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 12ms (Views: 4.3ms | ActiveRecord: 0.4ms)  (0.5ms) ROLLBACK  (5.5ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) 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 (2.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 3.0ms)  (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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (5.4ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:49:24', '2012-12-10 08:49:24') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:49:24', '2012-12-10 08:49:24') 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, '2012-12-10 08:49:24', '2012-12-10 08:49:24', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:49:24', '2012-12-10 08:49:24', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:49:24', '2012-12-10 08:49:24', 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_hide_warning', '2012-12-10 08:49:24', '2012-12-10 08:49:24') 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', '2012-12-10 08:49:24', '2012-12-10 08:49:24') Fixture Delete (0.2ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:49:24', '2012-12-10 08:49:24') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:49:24', '2012-12-10 08:49:24')  (59.8ms) COMMIT  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (0.7ms) BEGIN Ominous::Warning Load (1.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.3ms) ROLLBACK  (1.0ms) 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.4ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.7ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:49:24' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (38.1ms) ROLLBACK  (0.3ms) 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  (0.3ms) ROLLBACK  (0.4ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (1.0ms) BEGIN Thing Load (0.6ms) 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  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:49:25', NULL, 'Foo', '2012-12-10 08:49:25')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/5 Completed 302 Found in 8ms (ActiveRecord: 1.1ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (43.8ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.4ms) SELECT COUNT(*) FROM `things`  (46.0ms) ROLLBACK  (1.0ms) BEGIN Thing Load (1.6ms) 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 (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.5ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.9ms) Completed 200 OK in 73ms (Views: 69.0ms | ActiveRecord: 1.3ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.7ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (2.4ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (3.5ms) 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 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 5.6ms | ActiveRecord: 1.1ms)  (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.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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.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#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 (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 1.8ms)  (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 (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 1.8ms)  (11.9ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) 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 (0.4ms) 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 (2.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 2.4ms)  (4.1ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (1.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:50:07', '2012-12-10 08:50:07') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:50:07', '2012-12-10 08:50:07') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:50:07', '2012-12-10 08:50:07', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:50:07', '2012-12-10 08:50:07', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:50:07', '2012-12-10 08:50:07', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:50:07', '2012-12-10 08:50:07') Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 08:50:07', '2012-12-10 08:50:07') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:50:07', '2012-12-10 08:50:07') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:50:07', '2012-12-10 08:50:07')  (67.7ms) COMMIT  (1.6ms) SET FOREIGN_KEY_CHECKS = 1  (1.1ms) BEGIN Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position 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.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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:50:08' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (34.4ms) ROLLBACK  (0.7ms) BEGIN Ominous::Warning Load (0.4ms) 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  (0.3ms) ROLLBACK  (1.0ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.7ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:50:08', NULL, 'Foo', '2012-12-10 08:50:08')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/6 Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (48.5ms) ROLLBACK  (1.1ms) BEGIN Thing Load (1.9ms) 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.6ms) 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 (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 2.0ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (47.3ms) ROLLBACK  (1.1ms) BEGIN Thing Load (9.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.8ms) Completed 200 OK in 73ms (Views: 67.7ms | ActiveRecord: 0.9ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.6ms) SELECT `things`.* FROM `things` Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (4.4ms) Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (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.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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.4ms) 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"=>"2"} Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.7ms)  (0.3ms) 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.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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.3ms)  (0.6ms) ROLLBACK  (0.2ms) 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.4ms) 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 (1.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 1.7ms)  (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.3ms) 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  (2.3ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 3.1ms)  (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 (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:51:58', '2012-12-10 08:51:58') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:51:58', '2012-12-10 08:51:58') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:51:58', '2012-12-10 08:51: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, '2012-12-10 08:51:58', '2012-12-10 08:51:58', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:51:58', '2012-12-10 08:51:58', 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_hide_warning', '2012-12-10 08:51:58', '2012-12-10 08:51:58') 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', '2012-12-10 08:51:58', '2012-12-10 08:51:58') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:51:58', '2012-12-10 08:51:58') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:51:58', '2012-12-10 08:51:58')  (49.0ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) 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.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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.5ms) 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)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:51:58' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (43.2ms) ROLLBACK  (2.5ms) BEGIN Ominous::Warning Load (4.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.9ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) 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.5ms) BEGIN Ominous::Warning Load (0.6ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) 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.5ms) 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.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:51:58', NULL, 'Foo', '2012-12-10 08:51:58')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/7 Completed 302 Found in 8ms (ActiveRecord: 1.1ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (41.5ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (4.7ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:52:13', '2012-12-10 08:52:13') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:52:13', '2012-12-10 08:52:13') Fixture Delete (0.3ms) 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, '2012-12-10 08:52:13', '2012-12-10 08:52:13', 980190962) Fixture Insert (0.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:52:13', '2012-12-10 08:52:13', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:52:13', '2012-12-10 08:52:13', 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_hide_warning', '2012-12-10 08:52:13', '2012-12-10 08:52:13') 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', '2012-12-10 08:52:13', '2012-12-10 08:52:13') Fixture Delete (0.2ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:52:13', '2012-12-10 08:52:13') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:52:13', '2012-12-10 08:52:13')  (50.8ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.7ms) 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::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) 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)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:52:13' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (36.6ms) ROLLBACK  (1.0ms) BEGIN Ominous::Warning Load (1.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (2.2ms) BEGIN Ominous::Warning Load (0.6ms) 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 (5.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.7ms) 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.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.4ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) 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  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:52:13', NULL, 'Foo', '2012-12-10 08:52:13')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/8 Completed 302 Found in 9ms (ActiveRecord: 1.3ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (36.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (10.1ms) Completed 200 OK in 78ms (Views: 72.7ms | ActiveRecord: 2.5ms)  (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#new as HTML Rendered things/_form.html.erb (3.3ms) Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (1.2ms) SET FOREIGN_KEY_CHECKS = 0  (2.3ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:52:30', '2012-12-10 08:52:30') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:52:30', '2012-12-10 08:52:30') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:52:30', '2012-12-10 08:52:30', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:52:30', '2012-12-10 08:52:30', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:52:30', '2012-12-10 08:52:30', 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_hide_warning', '2012-12-10 08:52:30', '2012-12-10 08:52:30') 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', '2012-12-10 08:52:30', '2012-12-10 08:52:30') Fixture Delete (0.2ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:52:30', '2012-12-10 08:52:30') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:52:30', '2012-12-10 08:52:30')  (65.8ms) COMMIT  (4.2ms) SET FOREIGN_KEY_CHECKS = 1  (1.5ms) BEGIN Ominous::Warning Load (3.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:52:30' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (1.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (36.9ms) ROLLBACK  (0.3ms) 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  (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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) 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.5ms) 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.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:52:30', NULL, 'Foo', '2012-12-10 08:52:30')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/9 Completed 302 Found in 11ms (ActiveRecord: 1.2ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (46.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.6ms)  (0.4ms) SELECT COUNT(*) FROM `things`  (42.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#index as HTML Thing Load (0.6ms) SELECT `things`.* FROM `things` Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (10.4ms) Completed 200 OK in 67ms (Views: 64.2ms | ActiveRecord: 1.9ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (6.8ms) Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.0ms)  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (1.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:52:45', '2012-12-10 08:52:45') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:52:45', '2012-12-10 08:52:45') 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, '2012-12-10 08:52:46', '2012-12-10 08:52:46', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:52:46', '2012-12-10 08:52:46', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:52:46', '2012-12-10 08:52:46', 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_hide_warning', '2012-12-10 08:52:46', '2012-12-10 08:52:46') Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 08:52:46', '2012-12-10 08:52:46') 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, '2012-12-10 08:52:46', '2012-12-10 08:52:46') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:52:46', '2012-12-10 08:52:46')  (54.1ms) COMMIT  (0.8ms) SET FOREIGN_KEY_CHECKS = 1  (0.8ms) BEGIN Ominous::Warning Load (1.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 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 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:52:46' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (29.8ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (2.5ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) 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.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:52:46', NULL, 'Foo', '2012-12-10 08:52:46')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/10 Completed 302 Found in 8ms (ActiveRecord: 1.1ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (32.1ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (32.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.5ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.5ms) Completed 200 OK in 70ms (Views: 66.7ms | ActiveRecord: 1.6ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.6ms) SELECT `things`.* FROM `things` Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (3.5ms) Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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"=>"2"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.3ms) 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.7ms)  (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.3ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.6ms)  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:53:04', '2012-12-10 08:53:04') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:53:04', '2012-12-10 08:53:04') Fixture Delete (0.5ms) 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, '2012-12-10 08:53:04', '2012-12-10 08:53:04', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:53:04', '2012-12-10 08:53:04', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:53:04', '2012-12-10 08:53:04', 113629430) Fixture Delete (0.2ms) 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_hide_warning', '2012-12-10 08:53:04', '2012-12-10 08:53:04') 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', '2012-12-10 08:53:04', '2012-12-10 08:53:04') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:53:04', '2012-12-10 08:53:04') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:53:04', '2012-12-10 08:53:04')  (43.4ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Ominous::Warning Load (0.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::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) 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.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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.6ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:53:04' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (1.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (33.4ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 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::Warning Exists (1.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Ominous::Warning Load (0.5ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.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  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:53:04', NULL, 'Foo', '2012-12-10 08:53:04')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/11 Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (47.6ms) ROLLBACK  (1.1ms) BEGIN Thing Load (6.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (12.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.2ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (2.5ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 14ms (ActiveRecord: 4.5ms)  (0.4ms) SELECT COUNT(*) FROM `things`  (46.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.5ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.3ms) Completed 200 OK in 71ms (Views: 67.6ms | ActiveRecord: 1.6ms)  (0.3ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (4.4ms) Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.2ms) Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 1.1ms)  (0.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (8.3ms) 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 (3.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 7ms (Views: 2.3ms | ActiveRecord: 3.4ms)  (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.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.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.7ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.0ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (4.7ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:53:29', '2012-12-10 08:53:29') Fixture Insert (1.3ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:53:29', '2012-12-10 08:53:29') 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, '2012-12-10 08:53:29', '2012-12-10 08:53:29', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:53:29', '2012-12-10 08:53:29', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:53:29', '2012-12-10 08:53:29', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:53:29', '2012-12-10 08:53:29') 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', '2012-12-10 08:53:29', '2012-12-10 08:53:29') 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, '2012-12-10 08:53:29', '2012-12-10 08:53:29') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:53:29', '2012-12-10 08:53:29')  (79.7ms) COMMIT  (0.8ms) SET FOREIGN_KEY_CHECKS = 1  (1.1ms) BEGIN Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (3.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (6.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (4.8ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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.4ms) 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)  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:53:30' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (33.6ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.7ms) 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  (0.4ms) 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 (3.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (5.7ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (2.7ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.5ms) 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.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"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:53:30', NULL, 'Foo', '2012-12-10 08:53:30')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/12 Completed 302 Found in 12ms (ActiveRecord: 1.1ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (33.5ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.5ms) 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 (2.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (6.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 11ms (ActiveRecord: 7.6ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (40.7ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.5ms) 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 (6.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (21.6ms) Ominous::Warning Load (5.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (12.8ms) Completed 200 OK in 140ms (Views: 132.0ms | ActiveRecord: 6.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (5.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 20ms (Views: 13.0ms | ActiveRecord: 5.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (11.0ms) Completed 200 OK in 21ms (Views: 20.1ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 (4.9ms) 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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.5ms) Completed 200 OK in 20ms (Views: 16.0ms | ActiveRecord: 2.8ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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"=>"2"} Thing Load (6.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 14ms (Views: 5.3ms | ActiveRecord: 6.7ms)  (11.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (4.9ms) 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 (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (3.8ms) SAVEPOINT active_record_1  (4.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 14ms (ActiveRecord: 10.2ms)  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:53:52', '2012-12-10 08:53:52') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:53:52', '2012-12-10 08:53:52') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:53:53', '2012-12-10 08:53:53', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:53:53', '2012-12-10 08:53:53', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:53:53', '2012-12-10 08:53:53', 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_hide_warning', '2012-12-10 08:53:53', '2012-12-10 08:53:53') 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', '2012-12-10 08:53:53', '2012-12-10 08:53:53') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:53:53', '2012-12-10 08:53:53') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:53:53', '2012-12-10 08:53:53')  (57.2ms) COMMIT  (0.9ms) SET FOREIGN_KEY_CHECKS = 1  (0.8ms) BEGIN Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position 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.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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) 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)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:53:53' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (47.6ms) ROLLBACK  (1.1ms) BEGIN Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.2ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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` = 'thing_alert' LIMIT 1  (0.5ms) ROLLBACK  (2.3ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:53:53', NULL, 'Foo', '2012-12-10 08:53:53')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/13 Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (55.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) 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 6ms (ActiveRecord: 1.6ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (46.3ms) ROLLBACK  (1.1ms) BEGIN Thing Load (10.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (5.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.4ms) Ominous::Warning Load (1.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.5ms) Completed 200 OK in 90ms (Views: 79.7ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (2.4ms) Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.0ms | 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.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.9ms)  (0.5ms) 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.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 1.0ms)  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (7.0ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:54:14', '2012-12-10 08:54:14') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:54:14', '2012-12-10 08:54:14') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (2.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:54:14', '2012-12-10 08:54:14', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:54:14', '2012-12-10 08:54:14', 298486374) Fixture Insert (4.1ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:54:14', '2012-12-10 08:54:14', 113629430) Fixture Delete (2.3ms) DELETE FROM `ominous_closers` Fixture Insert (4.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:54:14', '2012-12-10 08:54:14') Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 08:54:14', '2012-12-10 08:54:14') Fixture Delete (4.8ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:54:14', '2012-12-10 08:54:14') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:54:14', '2012-12-10 08:54:14')  (32.0ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (4.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (8.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) 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 (4.6ms) 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 (4.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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  (5.4ms) 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)  (7.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:54:14' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (4.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (45.0ms) 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  (0.4ms) 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::Warning Exists (5.2ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (4.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (4.0ms) ROLLBACK  (0.5ms) 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 (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"}}  (0.4ms) SAVEPOINT active_record_1 SQL (5.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:54:14', NULL, 'Foo', '2012-12-10 08:54:14')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/14 Completed 302 Found in 11ms (ActiveRecord: 5.7ms)  (9.3ms) SELECT COUNT(*) FROM `things`   (40.7ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (2.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) 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 6ms (ActiveRecord: 1.4ms)  (0.4ms) SELECT COUNT(*) FROM `things`  (53.9ms) ROLLBACK  (0.8ms) BEGIN Thing Load (7.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (7.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (3.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.6ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.8ms) Completed 200 OK in 108ms (Views: 97.7ms | ActiveRecord: 1.9ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (11.0ms) Completed 200 OK in 15ms (Views: 14.3ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.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 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.9ms) Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 1.2ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (5.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.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.9ms)  (6.4ms) ROLLBACK  (0.2ms) 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 (4.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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (3.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 9ms (Views: 2.1ms | ActiveRecord: 4.2ms)  (3.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (2.5ms) 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.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (1.8ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (1.8ms) SET FOREIGN_KEY_CHECKS = 0  (5.1ms) BEGIN Fixture Delete (1.0ms) DELETE FROM `ominous_warnings` Fixture Insert (7.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:54:35', '2012-12-10 08:54:35') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:54:35', '2012-12-10 08:54:35') Fixture Delete (0.3ms) 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, '2012-12-10 08:54:35', '2012-12-10 08:54:35', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:54:35', '2012-12-10 08:54:35', 298486374) Fixture Insert (0.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:54:35', '2012-12-10 08:54:35', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (3.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:54:35', '2012-12-10 08:54:35') Fixture Insert (7.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 08:54:35', '2012-12-10 08:54:35') Fixture Delete (6.2ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:54:35', '2012-12-10 08:54:35') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:54:35', '2012-12-10 08:54:35')  (51.1ms) COMMIT  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (3.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (4.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (7.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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`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 (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (2.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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  (3.5ms) SAVEPOINT active_record_1 SQL (7.0ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:54:36' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (1.0ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (5.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (80.4ms) 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  (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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (10.1ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (4.1ms) 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 (4.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:54:36', NULL, 'Foo', '2012-12-10 08:54:36')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/15 Completed 302 Found in 18ms (ActiveRecord: 3.6ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (77.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.5ms) 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  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) 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 8ms (ActiveRecord: 1.4ms)  (7.3ms) SELECT COUNT(*) FROM `things`  (46.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.6ms) 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 (4.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (7.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (23.6ms) Ominous::Warning Load (8.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (5.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (9.7ms) Completed 200 OK in 142ms (Views: 118.7ms | ActiveRecord: 21.3ms)  (9.8ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 (4.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (5.0ms) SELECT `things`.* FROM `things` Completed 200 OK in 20ms (Views: 13.2ms | ActiveRecord: 5.0ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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 (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (11.7ms) Completed 200 OK in 34ms (Views: 25.7ms | ActiveRecord: 0.0ms)  (3.6ms) ROLLBACK  (1.0ms) BEGIN Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (5.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (6.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 26ms (Views: 9.3ms | ActiveRecord: 6.9ms)  (1.8ms) ROLLBACK  (1.8ms) BEGIN Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (4.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (8.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 12ms (Views: 2.2ms | ActiveRecord: 8.7ms)  (4.3ms) ROLLBACK  (1.6ms) BEGIN Thing Load (4.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (3.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 (9.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (2.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 18ms (Views: 2.2ms | ActiveRecord: 12.0ms)  (12.6ms) ROLLBACK  (0.2ms) BEGIN Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (4.1ms) 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 (6.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (4.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 15ms (ActiveRecord: 11.5ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (3.4ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:54:57', '2012-12-10 08:54:57') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:54:57', '2012-12-10 08:54:57') Fixture Delete (0.7ms) 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, '2012-12-10 08:54:57', '2012-12-10 08:54: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, '2012-12-10 08:54:57', '2012-12-10 08:54: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, '2012-12-10 08:54:57', '2012-12-10 08:54:57', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:54:57', '2012-12-10 08:54: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', '2012-12-10 08:54:57', '2012-12-10 08:54: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, '2012-12-10 08:54:57', '2012-12-10 08:54:57') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:54:57', '2012-12-10 08:54:57')  (70.7ms) COMMIT  (6.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) BEGIN Ominous::Warning Load (5.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`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 (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.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.4ms) 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)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:54:58' WHERE `ominous_warning_closers`.`id` = 298486374  (2.6ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (49.4ms) ROLLBACK  (0.8ms) BEGIN Ominous::Warning Load (1.0ms) 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  (2.3ms) ROLLBACK  (0.8ms) BEGIN Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (9.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (3.9ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (1.4ms) BEGIN Thing Load (0.6ms) 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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:54:58', NULL, 'Foo', '2012-12-10 08:54:58')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/16 Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.4ms) SELECT COUNT(*) FROM `things`   (42.0ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.2ms)  (0.4ms) SELECT COUNT(*) FROM `things`  (40.6ms) ROLLBACK  (0.9ms) BEGIN Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) 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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.9ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.6ms) Completed 200 OK in 85ms (Views: 77.5ms | ActiveRecord: 5.6ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things` Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.7ms)  (0.3ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.3ms) Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.2ms) Completed 200 OK in 14ms (Views: 11.1ms | ActiveRecord: 1.4ms)  (0.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (4.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 8ms (Views: 2.3ms | ActiveRecord: 4.6ms)  (1.1ms) ROLLBACK  (0.3ms) BEGIN Thing Load (2.8ms) 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"=>"2"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 8ms (Views: 1.9ms | ActiveRecord: 0.9ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 1.6ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:56:31', '2012-12-10 08:56:31') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:56:31', '2012-12-10 08:56:31') 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, '2012-12-10 08:56:31', '2012-12-10 08:56:31', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:56:31', '2012-12-10 08:56:31', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:56:31', '2012-12-10 08:56:31', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 08:56:31', '2012-12-10 08:56:31') Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 08:56:31', '2012-12-10 08:56:31') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:56:31', '2012-12-10 08:56:31') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:56:31', '2012-12-10 08:56:31')  (60.3ms) COMMIT  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.8ms) BEGIN Ominous::Warning Load (1.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position 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 (2.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`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 (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:56:31' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (40.7ms) 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  (0.3ms) ROLLBACK  (6.3ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (4.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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 (5.0ms) 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"}}  (0.3ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:56:32', NULL, 'Foo', '2012-12-10 08:56:32')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/17 Completed 302 Found in 16ms (ActiveRecord: 5.2ms)  (4.3ms) SELECT COUNT(*) FROM `things`   (43.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (7.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  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (4.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 5.4ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (41.2ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.5ms) 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 (2.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 (5.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (17.1ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (5.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (9.6ms) Completed 200 OK in 137ms (Views: 123.7ms | ActiveRecord: 11.9ms)  (5.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (5.2ms) SELECT `things`.* FROM `things` Completed 200 OK in 14ms (Views: 7.8ms | ActiveRecord: 5.2ms)  (7.8ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (10.1ms) Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.5ms) BEGIN Thing Load (7.1ms) 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 (8.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (7.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (10.7ms) Completed 200 OK in 27ms (Views: 8.7ms | ActiveRecord: 17.2ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (2.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) 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 (3.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 13ms (Views: 9.0ms | ActiveRecord: 3.5ms)  (5.7ms) ROLLBACK  (1.1ms) BEGIN Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (3.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (2.2ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 16ms (Views: 7.5ms | ActiveRecord: 5.9ms)  (2.7ms) ROLLBACK  (1.0ms) BEGIN Thing Load (2.3ms) 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.3ms) 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 (6.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (1.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 11ms (ActiveRecord: 8.1ms)  (2.1ms) 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 (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 08:56:51', '2012-12-10 08:56:51') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 08:56:51', '2012-12-10 08:56:51') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (2.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 08:56:51', '2012-12-10 08:56:51', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 08:56:51', '2012-12-10 08:56:51', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 08:56:51', '2012-12-10 08:56:51', 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_hide_warning', '2012-12-10 08:56:51', '2012-12-10 08:56:51') Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 08:56:51', '2012-12-10 08:56:51') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 08:56:51', '2012-12-10 08:56:51') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 08:56:51', '2012-12-10 08:56:51')  (62.9ms) COMMIT  (0.8ms) SET FOREIGN_KEY_CHECKS = 1  (4.1ms) BEGIN Ominous::Warning Load (3.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (1.1ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 08:56:52' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (1.5ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (50.7ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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  (0.3ms) ROLLBACK  (0.3ms) 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::Warning Exists (1.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) 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"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 08:56:52', NULL, 'Foo', '2012-12-10 08:56:52')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/18 Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.4ms) SELECT COUNT(*) FROM `things`   (42.0ms) ROLLBACK  (0.7ms) BEGIN Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 12ms (ActiveRecord: 2.5ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (43.1ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.8ms) Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.6ms) Completed 200 OK in 69ms (Views: 66.1ms | ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.5ms)  (1.1ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (5.9ms) Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.3ms) 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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 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 `ominous_closers`.* FROM `ominous_closers` 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.3ms) Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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"=>"2"} Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.3ms) 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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.1ms) Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 1.4ms)  (0.4ms) ROLLBACK  (0.5ms) 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 3ms (Views: 2.0ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.2ms) 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"=>"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 Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 0.8ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.3ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (4.6ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:17:30', '2012-12-10 11:17:30') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:17:30', '2012-12-10 11:17:30') Fixture Delete (1.9ms) 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, '2012-12-10 11:17:30', '2012-12-10 11:17:30', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:17:30', '2012-12-10 11:17:30', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:17:30', '2012-12-10 11:17:30', 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_hide_warning', '2012-12-10 11:17:30', '2012-12-10 11:17:30') 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', '2012-12-10 11:17:30', '2012-12-10 11:17:30') 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, '2012-12-10 11:17:30', '2012-12-10 11:17:30') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:17:30', '2012-12-10 11:17:30')  (57.2ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) 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.5ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:17:30' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (33.4ms) ROLLBACK  (1.0ms) BEGIN Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (7.9ms) ROLLBACK  (4.5ms) BEGIN Ominous::Warning Load (1.7ms) 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::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) 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::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:17:30', NULL, 'Foo', '2012-12-10 11:17:30')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/19 Completed 302 Found in 9ms (ActiveRecord: 1.1ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (37.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) 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 5ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM `things`   (40.9ms) ROLLBACK  (1.3ms) BEGIN Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.9ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.2ms) Completed 200 OK in 77ms (Views: 73.3ms | ActiveRecord: 1.8ms)  (0.3ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)  (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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.1ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.9ms) Completed 200 OK in 10ms (Views: 7.2ms | ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK  (0.2ms) 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.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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)  (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"=>"2"} Thing Load (0.7ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (21.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (25.8ms) Completed 200 OK in 33ms (Views: 8.6ms | ActiveRecord: 22.8ms)  (0.4ms) ROLLBACK  (0.2ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.2ms) 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.7ms) 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 Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.8ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.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.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:17:44', '2012-12-10 11:17:44') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:17:44', '2012-12-10 11:17:44') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 11:17:45', '2012-12-10 11:17:45', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:17:45', '2012-12-10 11:17:45', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:17:45', '2012-12-10 11:17:45', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 11:17:45', '2012-12-10 11:17:45') 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', '2012-12-10 11:17:45', '2012-12-10 11:17:45') 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, '2012-12-10 11:17:45', '2012-12-10 11:17:45') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:17:45', '2012-12-10 11:17:45')  (60.2ms) COMMIT  (1.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) BEGIN Ominous::Warning Load (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position 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.9ms) 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` = 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.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) SAVEPOINT active_record_1 SQL (1.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:17:45' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (1.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` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (45.8ms) ROLLBACK  (0.8ms) BEGIN Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.7ms) ROLLBACK  (0.9ms) BEGIN Ominous::Warning Load (1.0ms) 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::Warning Exists (2.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:17:45', NULL, 'Foo', '2012-12-10 11:17:45')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/20 Completed 302 Found in 7ms (ActiveRecord: 1.0ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (43.8ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (57.1ms) ROLLBACK  (1.6ms) BEGIN Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.9ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.5ms) Completed 200 OK in 69ms (Views: 64.7ms | ActiveRecord: 1.6ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (3.9ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 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 `ominous_closers`.* FROM `ominous_closers` 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 10ms (Views: 7.8ms | ActiveRecord: 1.1ms)  (0.6ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (1.0ms) 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 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.7ms) Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 2.7ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.4ms)  (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"=>"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 Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.8ms)  (0.4ms) ROLLBACK  (0.9ms) 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#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.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 1.3ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (4.5ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:18:06', '2012-12-10 11:18:06') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:18:06', '2012-12-10 11:18:06') Fixture Delete (0.5ms) 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, '2012-12-10 11:18:06', '2012-12-10 11:18:06', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:18:06', '2012-12-10 11:18:06', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:18:06', '2012-12-10 11:18:06', 113629430) Fixture Delete (0.6ms) 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_hide_warning', '2012-12-10 11:18:06', '2012-12-10 11:18:06') Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 11:18:06', '2012-12-10 11:18:06') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 11:18:06', '2012-12-10 11:18:06') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:18:06', '2012-12-10 11:18:06')  (43.8ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (1.4ms) 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 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) 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.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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) 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)  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:18:07' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (47.5ms) ROLLBACK  (4.7ms) BEGIN Ominous::Warning Load (1.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.0ms) 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.5ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.7ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (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.8ms) 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  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:18:07', NULL, 'Foo', '2012-12-10 11:18:07')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/21 Completed 302 Found in 8ms (ActiveRecord: 1.1ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (48.7ms) ROLLBACK  (1.2ms) BEGIN Thing Load (1.8ms) 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 (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.5ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 1.9ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (42.2ms) ROLLBACK  (1.2ms) BEGIN Thing Load (6.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.7ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.1ms) Completed 200 OK in 81ms (Views: 72.5ms | ActiveRecord: 2.3ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (4.1ms) Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.8ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 1.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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"=>"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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.8ms) Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 1.7ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (2.0ms) 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 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)  (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.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 Completed 200 OK in 6ms (Views: 1.9ms | ActiveRecord: 0.8ms)  (0.4ms) ROLLBACK  (0.2ms) 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 (1.1ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (4.3ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:22:19', '2012-12-10 11:22:19') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:22:19', '2012-12-10 11:22:19') 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, '2012-12-10 11:22:19', '2012-12-10 11:22:19', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:22:19', '2012-12-10 11:22:19', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:22:19', '2012-12-10 11:22:19', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 11:22:19', '2012-12-10 11:22:19') 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', '2012-12-10 11:22:19', '2012-12-10 11:22:19') 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, '2012-12-10 11:22:19', '2012-12-10 11:22:19') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:22:19', '2012-12-10 11:22:19')  (45.1ms) 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 (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 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 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:22:19' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (42.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  (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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.4ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 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  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:22:19', NULL, 'Foo', '2012-12-10 11:22:19')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/22 Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (41.5ms) ROLLBACK  (4.0ms) BEGIN Thing Load (1.8ms) 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 (1.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 11ms (ActiveRecord: 3.8ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (47.0ms) ROLLBACK  (0.9ms) BEGIN Thing Load (2.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.9ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.4ms) Completed 200 OK in 79ms (Views: 74.0ms | ActiveRecord: 1.9ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (3.7ms) Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.0ms) Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 1.1ms)  (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.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 5ms (Views: 3.4ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.9ms) Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 1.6ms)  (0.5ms) ROLLBACK  (0.2ms) 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 (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 1.1ms)  (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.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.5ms) 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 Completed 200 OK in 10ms (Views: 1.9ms | ActiveRecord: 1.0ms)  (0.4ms) ROLLBACK  (0.2ms) 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.5ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.0ms) SAVEPOINT active_record_1  (1.8ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 9ms (ActiveRecord: 3.2ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml 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 (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:23:25', '2012-12-10 11:23:25') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:23:25', '2012-12-10 11:23:25') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 11:23:26', '2012-12-10 11:23:26', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:23:26', '2012-12-10 11:23:26', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:23:26', '2012-12-10 11:23:26', 113629430) Fixture Delete (0.4ms) 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_hide_warning', '2012-12-10 11:23:26', '2012-12-10 11:23:26') 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', '2012-12-10 11:23:26', '2012-12-10 11:23:26') 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, '2012-12-10 11:23:26', '2012-12-10 11:23:26') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:23:26', '2012-12-10 11:23:26')  (45.2ms) COMMIT  (1.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.6ms) BEGIN Ominous::Warning Load (2.3ms) 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 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (2.4ms) 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 (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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:23:26' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (45.3ms) ROLLBACK  (1.0ms) BEGIN Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.2ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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 (1.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.7ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) 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` = 'does_not_exist' LIMIT 1  (0.7ms) ROLLBACK  (0.2ms) BEGIN Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (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.6ms) 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.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:23:26', NULL, 'Foo', '2012-12-10 11:23:26')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/23 Completed 302 Found in 10ms (ActiveRecord: 1.1ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (45.7ms) ROLLBACK  (0.8ms) BEGIN Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.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` = 1 LIMIT 1  (0.3ms) 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 8ms (ActiveRecord: 1.6ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (44.6ms) ROLLBACK  (0.3ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.7ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (2.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.2ms) Completed 200 OK in 70ms (Views: 65.2ms | ActiveRecord: 3.3ms)  (0.3ms) 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.3ms) 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 8ms (Views: 5.4ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (3.8ms) Completed 200 OK in 7ms (Views: 7.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.3ms) Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 1.2ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.2ms) 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.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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.5ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 1.7ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.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.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 Completed 200 OK in 6ms (Views: 1.7ms | ActiveRecord: 0.8ms)  (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.3ms) 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 (2.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 3.3ms)  (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 (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:24:37', '2012-12-10 11:24:37') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:24:37', '2012-12-10 11:24:37') Fixture Delete (0.5ms) 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, '2012-12-10 11:24:37', '2012-12-10 11:24:37', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:24:37', '2012-12-10 11:24:37', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:24:37', '2012-12-10 11:24:37', 113629430) Fixture Delete (0.2ms) DELETE FROM `ominous_closers` Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 11:24:37', '2012-12-10 11:24:37') 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', '2012-12-10 11:24:37', '2012-12-10 11:24:37') 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, '2012-12-10 11:24:37', '2012-12-10 11:24:37') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:24:37', '2012-12-10 11:24:37')  (63.1ms) COMMIT  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (2.1ms) BEGIN Ominous::Warning Load (1.3ms) 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 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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  (2.3ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:24:38' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (2.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (46.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (1.1ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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  (0.5ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:24:38', NULL, 'Foo', '2012-12-10 11:24:38')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/24 Completed 302 Found in 11ms (ActiveRecord: 1.4ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (48.0ms) ROLLBACK  (1.2ms) BEGIN Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (2.3ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.4ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 10ms (ActiveRecord: 3.2ms)  (0.8ms) SELECT COUNT(*) FROM `things`   (48.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.4ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.2ms) Completed 200 OK in 75ms (Views: 71.0ms | ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.5ms)  (0.3ms) 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.3ms) 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.9ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (2.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.2ms) Completed 200 OK in 18ms (Views: 13.5ms | ActiveRecord: 3.3ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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"=>"2"} Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.0ms) Completed 200 OK in 13ms (Views: 9.8ms | ActiveRecord: 1.7ms)  (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.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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.8ms | 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 (2.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#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 Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.8ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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.5ms) 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.3ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (5.2ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:28:39', '2012-12-10 11:28:39') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:28:39', '2012-12-10 11:28:39') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 11:28:39', '2012-12-10 11:28:39', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:28:39', '2012-12-10 11:28:39', 298486374) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:28:39', '2012-12-10 11:28:39', 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_hide_warning', '2012-12-10 11:28:39', '2012-12-10 11:28:39') 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', '2012-12-10 11:28:39', '2012-12-10 11:28:39') 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, '2012-12-10 11:28:39', '2012-12-10 11:28:39') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:28:39', '2012-12-10 11:28:39')  (82.6ms) COMMIT  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) BEGIN Ominous::Warning Load (1.6ms) 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::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position 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 (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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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)  (0.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:28:40' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (36.4ms) ROLLBACK  (0.4ms) 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  (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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (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.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:28:40', NULL, 'Foo', '2012-12-10 11:28:40')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/25 Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (48.7ms) ROLLBACK  (1.0ms) BEGIN Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (2.3ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 19ms (ActiveRecord: 5.4ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (39.7ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.4ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.6ms) Completed 200 OK in 71ms (Views: 67.9ms | ActiveRecord: 1.6ms)  (0.3ms) ROLLBACK  (2.2ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (2.2ms) Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) 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 (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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.7ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 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 (1.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.0ms) Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 2.8ms)  (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 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 4ms (Views: 2.1ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) 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 (0.4ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 1.0ms)  (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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:31:32', '2012-12-10 11:31:32') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:31:32', '2012-12-10 11:31:32') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 11:31:32', '2012-12-10 11:31:32', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:31:32', '2012-12-10 11:31:32', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:31:32', '2012-12-10 11:31:32', 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_hide_warning', '2012-12-10 11:31:32', '2012-12-10 11:31:32') 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', '2012-12-10 11:31:32', '2012-12-10 11:31:32') 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, '2012-12-10 11:31:32', '2012-12-10 11:31:32') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:31:32', '2012-12-10 11:31:32')  (27.7ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position 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.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` = 1 LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:31:32' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (42.6ms) ROLLBACK  (0.3ms) 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  (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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (2.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.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  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:31:32', NULL, 'Foo', '2012-12-10 11:31:32')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/26 Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.4ms) SELECT COUNT(*) FROM `things`  (49.4ms) ROLLBACK  (1.0ms) BEGIN Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 13ms (ActiveRecord: 2.6ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (45.7ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (13.0ms) Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.9ms) Completed 200 OK in 85ms (Views: 79.4ms | ActiveRecord: 2.1ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.5ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (3.4ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 (1.1ms) 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 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.7ms) Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 2.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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"=>"2"} Thing Load (0.3ms) 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 (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.2ms) Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 1.7ms)  (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"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)  (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.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 (2.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 Completed 200 OK in 7ms (Views: 2.0ms | ActiveRecord: 2.8ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (2.3ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 3.1ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (4.1ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:32:05', '2012-12-10 11:32:05') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:32:05', '2012-12-10 11:32:05') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 11:32:05', '2012-12-10 11:32:05', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:32:05', '2012-12-10 11:32:05', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:32:05', '2012-12-10 11:32:05', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 11:32:05', '2012-12-10 11:32:05') Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 11:32:05', '2012-12-10 11:32:05') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 11:32:05', '2012-12-10 11:32:05') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:32:05', '2012-12-10 11:32:05')  (63.0ms) COMMIT  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) BEGIN Ominous::Warning Load (2.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`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 (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) 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)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:32:05' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (30.8ms) ROLLBACK  (0.3ms) 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  (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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' 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::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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  (0.3ms) 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 (2.5ms) 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.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:32:05', NULL, 'Foo', '2012-12-10 11:32:05')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/27 Completed 302 Found in 8ms (ActiveRecord: 1.1ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (47.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 6ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM `things`   (49.2ms) ROLLBACK  (1.0ms) BEGIN Thing Load (2.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.1ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.5ms) Completed 200 OK in 75ms (Views: 72.1ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (3.8ms) Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms)  (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 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.1ms) Completed 200 OK in 15ms (Views: 10.2ms | ActiveRecord: 2.8ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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"=>"2"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.2ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.0ms) Completed 200 OK in 12ms (Views: 7.1ms | ActiveRecord: 2.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.2ms) 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.6ms) 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 Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.8ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.3ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (4.8ms) SET FOREIGN_KEY_CHECKS = 0  (3.4ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:33:05', '2012-12-10 11:33:05') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:33:05', '2012-12-10 11:33:05') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 11:33:05', '2012-12-10 11:33:05', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:33:05', '2012-12-10 11:33:05', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:33:05', '2012-12-10 11:33:05', 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_hide_warning', '2012-12-10 11:33:05', '2012-12-10 11:33:05') 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', '2012-12-10 11:33:05', '2012-12-10 11:33:05') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 11:33:05', '2012-12-10 11:33:05') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:33:05', '2012-12-10 11:33:05')  (47.9ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (2.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) 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 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:33:05' WHERE `ominous_warning_closers`.`id` = 298486374  (2.0ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (32.1ms) 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.7ms) 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::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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  (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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:33:05', NULL, 'Foo', '2012-12-10 11:33:05')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/28 Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (44.5ms) ROLLBACK  (0.8ms) BEGIN Thing Load (2.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.3ms) 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  (1.2ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (1.3ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 3.0ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (45.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.6ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.5ms) Completed 200 OK in 77ms (Views: 66.3ms | ActiveRecord: 2.3ms)  (0.3ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.8ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.8ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (3.1ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.4ms) 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.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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.1ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (1.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.7ms) Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 3.2ms)  (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.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 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)  (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"=>"2"} Thing Load (1.7ms) 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 Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 2.1ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (3.8ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:41:05', '2012-12-10 11:41:05') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:41:05', '2012-12-10 11:41:05') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 11:41:05', '2012-12-10 11:41:05', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:41:05', '2012-12-10 11:41:05', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:41:05', '2012-12-10 11:41:05', 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_hide_warning', '2012-12-10 11:41:05', '2012-12-10 11:41:05') Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 11:41:05', '2012-12-10 11:41:05') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 11:41:05', '2012-12-10 11:41:05') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:41:05', '2012-12-10 11:41:05')  (47.6ms) COMMIT  (0.9ms) SET FOREIGN_KEY_CHECKS = 1  (3.3ms) BEGIN Ominous::Warning Load (1.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) ROLLBACK  (2.7ms) 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 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:41:05' WHERE `ominous_warning_closers`.`id` = 298486374  (0.6ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (37.8ms) 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  (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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 12ms (Views: 12.0ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.8ms) 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 (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"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:41:05', NULL, 'Foo', '2012-12-10 11:41:05')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/29 Completed 302 Found in 12ms (ActiveRecord: 1.3ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (19.6ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) 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.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 29ms (ActiveRecord: 1.6ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (92.8ms) ROLLBACK  (1.0ms) BEGIN Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (4.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.8ms) Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.7ms) Completed 200 OK in 37ms (Views: 29.7ms | ActiveRecord: 2.2ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.6ms) 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.6ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.7ms) Completed 200 OK in 13ms (Views: 8.9ms | ActiveRecord: 1.6ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.9ms) Completed 200 OK in 16ms (Views: 9.0ms | ActiveRecord: 2.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)  (1.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (2.1ms) 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 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.8ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:42:08', '2012-12-10 11:42:08') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:42:08', '2012-12-10 11:42:08') 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, '2012-12-10 11:42:09', '2012-12-10 11:42:09', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:42:09', '2012-12-10 11:42:09', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:42:09', '2012-12-10 11:42:09', 113629430) Fixture Delete (0.4ms) 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_hide_warning', '2012-12-10 11:42:09', '2012-12-10 11:42:09') 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', '2012-12-10 11:42:09', '2012-12-10 11:42:09') 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, '2012-12-10 11:42:09', '2012-12-10 11:42:09') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:42:09', '2012-12-10 11:42:09')  (54.4ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 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 (1.1ms) 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 (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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  (7.4ms) SAVEPOINT active_record_1 SQL (2.2ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (2.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:42:09' 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.4ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (33.9ms) 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  (1.2ms) ROLLBACK  (0.3ms) 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::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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 Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 19ms (Views: 19.0ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (5.4ms) BEGIN  (2.3ms) ROLLBACK  (0.3ms) 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 (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"}}  (0.3ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:42:09', NULL, 'Foo', '2012-12-10 11:42:09')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/30 Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (42.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 30ms (ActiveRecord: 1.7ms)  (0.4ms) SELECT COUNT(*) FROM `things`   (43.3ms) ROLLBACK  (0.7ms) BEGIN Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (3.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.2ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.4ms) Completed 200 OK in 40ms (Views: 35.2ms | ActiveRecord: 2.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) 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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.2ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.4ms) Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.8ms) 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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.5ms) Completed 200 OK in 22ms (Views: 18.1ms | ActiveRecord: 2.1ms)  (0.4ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.2ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.6ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) 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 (0.4ms) 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.5ms) 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.4ms) Completed 200 OK in 17ms (Views: 11.9ms | ActiveRecord: 2.6ms)  (3.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (2.5ms) 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 (2.2ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 1.1ms)  (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.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.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (4.5ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 13ms (ActiveRecord: 5.9ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:42:42', '2012-12-10 11:42:42') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:42:42', '2012-12-10 11:42:42') 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, '2012-12-10 11:42:42', '2012-12-10 11:42:42', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:42:42', '2012-12-10 11:42:42', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:42:42', '2012-12-10 11:42:42', 113629430) Fixture Delete (0.4ms) 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_hide_warning', '2012-12-10 11:42:42', '2012-12-10 11:42:42') Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 11:42:42', '2012-12-10 11:42:42') Fixture Delete (0.2ms) DELETE FROM `things` Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 11:42:42', '2012-12-10 11:42:42') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:42:42', '2012-12-10 11:42:42')  (62.3ms) COMMIT  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) BEGIN Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) 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 (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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:42:42' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (44.8ms) ROLLBACK  (1.2ms) BEGIN Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.5ms) ROLLBACK  (1.0ms) BEGIN Ominous::Warning Load (1.2ms) 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 (1.1ms) 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.5ms) 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  (0.7ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.9ms) 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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:42:43', NULL, 'Foo', '2012-12-10 11:42:43')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/31 Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (44.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 29ms (ActiveRecord: 1.6ms)  (2.0ms) SELECT COUNT(*) FROM `things`   (38.9ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.9ms) Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (2.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.8ms) Completed 200 OK in 32ms (Views: 27.3ms | ActiveRecord: 2.9ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (2.3ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) 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.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 (5.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.0ms) Completed 200 OK in 18ms (Views: 8.7ms | ActiveRecord: 5.8ms)  (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.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.9ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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"=>"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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.9ms) Completed 200 OK in 12ms (Views: 8.5ms | ActiveRecord: 1.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 3ms (Views: 1.9ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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.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.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 6ms (Views: 1.9ms | ActiveRecord: 0.8ms)  (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.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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:42:58', '2012-12-10 11:42:58') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:42:58', '2012-12-10 11:42:58') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 11:42:58', '2012-12-10 11:42: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, '2012-12-10 11:42:58', '2012-12-10 11:42:58', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:42:58', '2012-12-10 11:42:58', 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_hide_warning', '2012-12-10 11:42:58', '2012-12-10 11:42:58') 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', '2012-12-10 11:42:58', '2012-12-10 11:42:58') Fixture Delete (0.2ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 11:42:58', '2012-12-10 11:42:58') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:42:58', '2012-12-10 11:42:58')  (90.0ms) COMMIT  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (1.3ms) BEGIN Ominous::Warning Load (1.2ms) 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 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 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 Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:42:58' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (1.6ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (42.8ms) ROLLBACK  (1.0ms) BEGIN Ominous::Warning Load (3.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.1ms) ROLLBACK  (0.5ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (1.8ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 19ms (Views: 18.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) 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 (0.4ms) 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"}}  (3.4ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:42:58', NULL, 'Foo', '2012-12-10 11:42:58')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/32 Completed 302 Found in 12ms (ActiveRecord: 4.9ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (46.3ms) ROLLBACK  (0.9ms) BEGIN Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.2ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 28ms (ActiveRecord: 1.9ms)  (0.4ms) SELECT COUNT(*) FROM `things`   (48.0ms) ROLLBACK  (0.9ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (12.1ms) Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.5ms) Completed 200 OK in 47ms (Views: 42.3ms | ActiveRecord: 2.1ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.5ms)  (0.3ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.0ms) Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 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 `ominous_closers`.* FROM `ominous_closers` 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 11ms (Views: 7.8ms | ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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 (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 2.7ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 (1.1ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.9ms) Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 1.7ms)  (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.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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) 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.9ms) 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.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.9ms)  (1.1ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) 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 (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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (4.2ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:43:25', '2012-12-10 11:43:25') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:43:25', '2012-12-10 11:43:25') 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, '2012-12-10 11:43:25', '2012-12-10 11:43:25', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:43:25', '2012-12-10 11:43:25', 298486374) Fixture Insert (0.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:43:25', '2012-12-10 11:43:25', 113629430) Fixture Delete (0.2ms) 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_hide_warning', '2012-12-10 11:43:25', '2012-12-10 11:43:25') 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', '2012-12-10 11:43:25', '2012-12-10 11:43:25') 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, '2012-12-10 11:43:25', '2012-12-10 11:43:25') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:43:25', '2012-12-10 11:43:25')  (54.7ms) COMMIT  (1.0ms) SET FOREIGN_KEY_CHECKS = 1  (0.7ms) BEGIN Ominous::Warning Load (1.3ms) 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::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) 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.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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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.5ms) 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)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:43:25' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (46.2ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.5ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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 Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Rendered text template (0.0ms) Completed 200 OK in 13ms (Views: 12.2ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:43:26', NULL, 'Foo', '2012-12-10 11:43:26')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/33 Completed 302 Found in 11ms (ActiveRecord: 2.7ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (45.2ms) ROLLBACK  (1.0ms) BEGIN Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.8ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 33ms (ActiveRecord: 3.6ms)  (0.4ms) SELECT COUNT(*) FROM `things`   (49.5ms) ROLLBACK  (1.0ms) BEGIN Thing Load (7.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (9.5ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.6ms) Completed 200 OK in 43ms (Views: 38.3ms | ActiveRecord: 1.8ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (4.6ms) Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 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 `ominous_closers`.* FROM `ominous_closers` 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 13ms (Views: 8.5ms | ActiveRecord: 1.3ms)  (0.4ms) ROLLBACK  (0.2ms) 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.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.5ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.7ms) Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 1.6ms)  (0.4ms) ROLLBACK  (0.4ms) 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 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 6ms (Views: 4.7ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.4ms) 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 (1.2ms) 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 Completed 200 OK in 6ms (Views: 1.8ms | ActiveRecord: 1.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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (1.2ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:46:29', '2012-12-10 11:46:29') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:46:29', '2012-12-10 11:46:29') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 11:46:29', '2012-12-10 11:46:29', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:46:29', '2012-12-10 11:46:29', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:46:29', '2012-12-10 11:46:29', 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_hide_warning', '2012-12-10 11:46:29', '2012-12-10 11:46:29') Fixture Insert (1.0ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 11:46:29', '2012-12-10 11:46:29') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 11:46:29', '2012-12-10 11:46:29') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:46:29', '2012-12-10 11:46:29')  (63.4ms) COMMIT  (1.0ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) BEGIN Ominous::Warning Load (1.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.5ms) ROLLBACK  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.8ms) 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.4ms) 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)  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:46:29' WHERE `ominous_warning_closers`.`id` = 298486374  (2.0ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (34.1ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (2.4ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (1.1ms) 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::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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 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` = 1 LIMIT 1 Completed 500 Internal Server Error in 49ms  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (6.8ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:46:29', NULL, 'Foo', '2012-12-10 11:46:29')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/34 Completed 302 Found in 11ms (ActiveRecord: 1.5ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (38.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (2.6ms) SELECT COUNT(*) FROM `things`  (22.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (2.7ms) 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.4ms) Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.0ms) Completed 200 OK in 37ms (Views: 31.9ms | ActiveRecord: 1.7ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (8.1ms) Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.1ms) 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.7ms) 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 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.2ms) Completed 200 OK in 17ms (Views: 13.9ms | ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.3ms) Completed 200 OK in 12ms (Views: 8.2ms | ActiveRecord: 1.6ms)  (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 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 3ms (Views: 1.7ms | ActiveRecord: 0.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.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.5ms) 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 Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.8ms)  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (2.1ms) SET FOREIGN_KEY_CHECKS = 0  (3.7ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:47:41', '2012-12-10 11:47:41') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:47:41', '2012-12-10 11:47:41') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 11:47:41', '2012-12-10 11:47:41', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:47:41', '2012-12-10 11:47:41', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:47:41', '2012-12-10 11:47:41', 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_hide_warning', '2012-12-10 11:47:41', '2012-12-10 11:47:41') 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', '2012-12-10 11:47:41', '2012-12-10 11:47:41') 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, '2012-12-10 11:47:41', '2012-12-10 11:47:41') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:47:41', '2012-12-10 11:47:41')  (66.5ms) COMMIT  (0.9ms) SET FOREIGN_KEY_CHECKS = 1  (1.1ms) BEGIN Ominous::Warning Load (1.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.7ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:47:41' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (50.0ms) 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  (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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 14ms (Views: 11.9ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.8ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:47:41', NULL, 'Foo', '2012-12-10 11:47:41')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/35 Completed 302 Found in 12ms (ActiveRecord: 1.1ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (43.0ms) ROLLBACK  (0.3ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) 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 29ms (ActiveRecord: 1.6ms)  (0.4ms) SELECT COUNT(*) FROM `things`  (41.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (13.2ms) Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.3ms) Completed 200 OK in 36ms (Views: 31.7ms | ActiveRecord: 1.6ms)  (0.4ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.6ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (3.2ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.2ms) Completed 200 OK in 12ms (Views: 9.1ms | ActiveRecord: 1.4ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.2ms) 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 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms)  (0.3ms) 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.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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.9ms) Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 1.7ms)  (1.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.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 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.5ms) 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"=>"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 Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.7ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.1ms) 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 (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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) 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.3ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (1.0ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:58:21', '2012-12-10 11:58:21') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:58:21', '2012-12-10 11:58:21') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 11:58:21', '2012-12-10 11:58:21', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:58:21', '2012-12-10 11:58:21', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:58:21', '2012-12-10 11:58:21', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 11:58:21', '2012-12-10 11:58:21') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 11:58:21', '2012-12-10 11:58:21') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 11:58:21', '2012-12-10 11:58:21') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:58:21', '2012-12-10 11:58:21')  (52.1ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.8ms) BEGIN Ominous::Warning Load (1.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 (0.4ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:58:22' WHERE `ominous_warning_closers`.`id` = 298486374  (0.6ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (45.9ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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  (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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.4ms) 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 13ms (Views: 11.4ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:58:22', NULL, 'Foo', '2012-12-10 11:58:22')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/36 Completed 302 Found in 8ms (ActiveRecord: 1.5ms)  (2.1ms) SELECT COUNT(*) FROM `things`   (41.9ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 34ms (ActiveRecord: 2.0ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (45.3ms) ROLLBACK  (0.9ms) BEGIN Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.7ms) Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (50.5ms) Completed 500 Internal Server Error in 87ms  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#index as HTML Thing Load (0.6ms) SELECT `things`.* FROM `things` Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.6ms)  (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.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 (2.6ms) Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (26.3ms) Completed 500 Internal Server Error in 38ms  (1.0ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.7ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.6ms | 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.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 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (26.0ms) Completed 500 Internal Server Error in 34ms  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) 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 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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.6ms) 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.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.7ms)  (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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 1.2ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 11:59:34', '2012-12-10 11:59:34') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 11:59:34', '2012-12-10 11:59:34') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 11:59:35', '2012-12-10 11:59:35', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 11:59:35', '2012-12-10 11:59:35', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 11:59:35', '2012-12-10 11:59:35', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 11:59:35', '2012-12-10 11:59:35') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 11:59:35', '2012-12-10 11:59:35') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 11:59:35', '2012-12-10 11:59:35') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 11:59:35', '2012-12-10 11:59:35')  (50.7ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 (0.4ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.7ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 11:59:35' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) 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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (26.4ms) ROLLBACK  (0.3ms) 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  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) 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.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 17ms (Views: 14.8ms | ActiveRecord: 0.7ms)  (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.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  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 11:59:35', NULL, 'Foo', '2012-12-10 11:59:35')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/37 Completed 302 Found in 9ms (ActiveRecord: 1.2ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (29.0ms) ROLLBACK  (0.3ms) 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) 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 29ms (ActiveRecord: 2.0ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (41.2ms) ROLLBACK  (1.3ms) BEGIN Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.7ms) Ominous::Warning Load (1.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (51.9ms) Completed 500 Internal Server Error in 88ms  (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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.5ms)  (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#new as HTML Rendered things/_form.html.erb (2.6ms) Completed 200 OK in 10ms (Views: 9.8ms | ActiveRecord: 0.0ms)  (1.0ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (26.9ms) Completed 500 Internal Server Error in 35ms  (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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (2.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 2.8ms)  (0.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) 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"=>"2"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (25.0ms) Completed 500 Internal Server Error in 32ms  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) 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 (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 3ms (Views: 1.6ms | ActiveRecord: 0.4ms)  (0.6ms) 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 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 Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.8ms)  (0.4ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.2ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (7.0ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 12:00:53', '2012-12-10 12:00:53') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 12:00:53', '2012-12-10 12:00:53') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 12:00:53', '2012-12-10 12:00:53', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 12:00:53', '2012-12-10 12:00:53', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 12:00:53', '2012-12-10 12:00:53', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 12:00:53', '2012-12-10 12:00:53') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 12:00:53', '2012-12-10 12:00:53') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 12:00:53', '2012-12-10 12:00:53') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 12:00:53', '2012-12-10 12:00:53')  (65.8ms) COMMIT  (1.8ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) BEGIN Ominous::Warning Load (2.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 12:00:53' WHERE `ominous_warning_closers`.`id` = 298486374  (0.6ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (1.6ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (33.9ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 15ms (Views: 12.8ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 12:00:54', NULL, 'Foo', '2012-12-10 12:00:54')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/38 Completed 302 Found in 9ms (ActiveRecord: 1.3ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (49.8ms) ROLLBACK  (1.0ms) BEGIN Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) 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 32ms (ActiveRecord: 2.5ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (41.3ms) ROLLBACK  (1.1ms) BEGIN Thing Load (2.3ms) 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 (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (14.9ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (54.5ms) Completed 500 Internal Server Error in 99ms  (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#index as HTML Thing Load (0.6ms) SELECT `things`.* FROM `things` Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.2ms) 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#new as HTML Rendered things/_form.html.erb (4.2ms) Completed 200 OK in 8ms (Views: 7.2ms | ActiveRecord: 0.0ms)  (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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (27.2ms) Completed 500 Internal Server Error in 35ms  (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.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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.6ms)  (0.7ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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"=>"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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (29.9ms) Completed 500 Internal Server Error in 39ms  (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.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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 2.1ms | 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.5ms) 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 Completed 200 OK in 6ms (Views: 1.9ms | ActiveRecord: 0.8ms)  (0.6ms) 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 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.9ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 3.2ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (1.2ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 12:01:19', '2012-12-10 12:01:19') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 12:01:19', '2012-12-10 12:01:19') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 12:01:19', '2012-12-10 12:01:19', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 12:01:19', '2012-12-10 12:01:19', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 12:01:19', '2012-12-10 12:01:19', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 12:01:19', '2012-12-10 12:01:19') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 12:01:19', '2012-12-10 12:01:19') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 12:01:19', '2012-12-10 12:01:19') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 12:01:19', '2012-12-10 12:01:19')  (80.5ms) COMMIT  (1.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) BEGIN Ominous::Warning Load (8.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) 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 (0.4ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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.5ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 12:01:19' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) 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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (39.9ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (1.1ms) 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  (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.4ms) 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` = 'thing_alert' LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 20ms (Views: 18.4ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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.4ms) 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"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 12:01:19', NULL, 'Foo', '2012-12-10 12:01:19')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/39 Completed 302 Found in 13ms (ActiveRecord: 1.5ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (42.0ms) ROLLBACK  (0.3ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) 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 29ms (ActiveRecord: 2.1ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (42.0ms) ROLLBACK  (1.1ms) BEGIN Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (15.7ms) Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (55.6ms) Completed 500 Internal Server Error in 97ms  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.5ms)  (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.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 (2.4ms) Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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.5ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (27.8ms) Completed 500 Internal Server Error in 36ms  (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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms)  (0.5ms) ROLLBACK  (0.2ms) 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.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (22.7ms) Completed 500 Internal Server Error in 31ms  (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 3ms (Views: 2.0ms | ActiveRecord: 0.5ms)  (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.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.5ms) 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 Completed 200 OK in 7ms (Views: 1.9ms | ActiveRecord: 0.9ms)  (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.3ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (4.0ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 12:01:45', '2012-12-10 12:01:45') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 12:01:45', '2012-12-10 12:01:45') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 12:01:45', '2012-12-10 12:01:45', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 12:01:45', '2012-12-10 12:01:45', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 12:01:45', '2012-12-10 12:01:45', 113629430) Fixture Delete (0.4ms) 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_hide_warning', '2012-12-10 12:01:45', '2012-12-10 12:01:45') 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', '2012-12-10 12:01:45', '2012-12-10 12:01:45') Fixture Delete (0.5ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 12:01:45', '2012-12-10 12:01:45') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 12:01:45', '2012-12-10 12:01:45')  (52.0ms) COMMIT  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (1.1ms) BEGIN Ominous::Warning Load (1.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position 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 (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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 12:01:45' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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 (2.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (28.9ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.7ms) 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  (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::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.4ms) 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::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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 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 15ms (Views: 12.7ms | 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.5ms) 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.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 12:01:45', NULL, 'Foo', '2012-12-10 12:01:45')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/40 Completed 302 Found in 9ms (ActiveRecord: 1.1ms)  (0.4ms) SELECT COUNT(*) FROM `things`   (35.2ms) ROLLBACK  (0.9ms) BEGIN Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.1ms) 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  (0.7ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 34ms (ActiveRecord: 2.2ms)  (0.4ms) SELECT COUNT(*) FROM `things`  (39.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.3ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.9ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (53.9ms) Completed 500 Internal Server Error in 82ms  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)  (0.3ms) 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#new as HTML Rendered things/_form.html.erb (3.9ms) Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)  (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (32.5ms) Completed 500 Internal Server Error in 41ms  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 5ms (Views: 2.3ms | ActiveRecord: 0.4ms)  (0.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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"=>"2"} Thing Load (0.3ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (27.8ms) Completed 500 Internal Server Error in 35ms  (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.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 3ms (Views: 2.0ms | 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 Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.8ms)  (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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.2ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (2.2ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 12:03:39', '2012-12-10 12:03:39') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 12:03:39', '2012-12-10 12:03:39') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 12:03:39', '2012-12-10 12:03:39', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 12:03:39', '2012-12-10 12:03:39', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 12:03:39', '2012-12-10 12:03:39', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 12:03:39', '2012-12-10 12:03:39') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 12:03:39', '2012-12-10 12:03:39') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 12:03:39', '2012-12-10 12:03:39') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 12:03:39', '2012-12-10 12:03:39')  (94.9ms) COMMIT  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (0.5ms) BEGIN Ominous::Warning Load (1.5ms) 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 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) 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.6ms) 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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.8ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 12:03:40' WHERE `ominous_warning_closers`.`id` = 298486374  (2.1ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (49.8ms) ROLLBACK  (1.2ms) BEGIN Ominous::Warning Load (1.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.2ms) ROLLBACK  (1.1ms) BEGIN Ominous::Warning Load (0.6ms) 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 (2.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.7ms) 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` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.4ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.7ms)  (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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 12:03:40', NULL, 'Foo', '2012-12-10 12:03:40')  (1.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/41 Completed 302 Found in 8ms (ActiveRecord: 2.0ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (38.5ms) ROLLBACK  (0.3ms) 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (20.8ms) 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 26ms (ActiveRecord: 22.0ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (37.0ms) ROLLBACK  (1.0ms) BEGIN Thing Load (2.0ms) 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 (2.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (8.6ms) Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (10.9ms) Completed 500 Internal Server Error in 52ms  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.4ms) 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 (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 8ms (Views: 6.2ms | ActiveRecord: 0.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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.4ms) Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.8ms) 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 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.8ms) Completed 500 Internal Server Error in 13ms  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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.5ms) 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: 3.1ms | ActiveRecord: 0.4ms)  (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.4ms) 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.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.0ms) Completed 500 Internal Server Error in 11ms  (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.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 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)  (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.7ms) 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 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.8ms)  (2.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (2.5ms) 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 (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.6ms) 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 7ms (ActiveRecord: 1.5ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.8ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 12:04:11', '2012-12-10 12:04:11') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 12:04:11', '2012-12-10 12:04:11') Fixture Delete (2.9ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 12:04:12', '2012-12-10 12:04:12', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 12:04:12', '2012-12-10 12:04:12', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 12:04:12', '2012-12-10 12:04:12', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 12:04:12', '2012-12-10 12:04:12') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 12:04:12', '2012-12-10 12:04:12') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 12:04:12', '2012-12-10 12:04:12') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 12:04:12', '2012-12-10 12:04:12')  (60.8ms) COMMIT  (1.4ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) BEGIN Ominous::Warning Load (1.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.5ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 (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.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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.5ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 12:04:12' WHERE `ominous_warning_closers`.`id` = 298486374  (1.8ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (40.7ms) 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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 14ms (Views: 11.8ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) 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.5ms) 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"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 12:04:12', NULL, 'Foo', '2012-12-10 12:04:12')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/42 Completed 302 Found in 14ms (ActiveRecord: 1.3ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (42.2ms) ROLLBACK  (0.3ms) 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 (2.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (20.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (2.1ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 29ms (ActiveRecord: 23.5ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (46.9ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.6ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (12.1ms) Completed 500 Internal Server Error in 42ms  (1.1ms) ROLLBACK  (0.3ms) BEGIN Thing Load (5.2ms) 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things` Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 0.7ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.2ms) 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#new as HTML Rendered things/_form.html.erb (2.4ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.2ms) 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 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.7ms) Completed 500 Internal Server Error in 12ms  (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 (2.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 1.1ms)  (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.4ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.7ms) Completed 500 Internal Server Error in 11ms  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.4ms) 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.2ms) 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 8ms (Views: 2.5ms | ActiveRecord: 0.5ms)  (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.4ms) 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 Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.8ms)  (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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 1.7ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (4.0ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 12:05:43', '2012-12-10 12:05:43') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 12:05:43', '2012-12-10 12:05:43') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 12:05:43', '2012-12-10 12:05:43', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 12:05:43', '2012-12-10 12:05:43', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 12:05:43', '2012-12-10 12:05:43', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 12:05:43', '2012-12-10 12:05:43') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 12:05:43', '2012-12-10 12:05:43') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 12:05:43', '2012-12-10 12:05:43') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 12:05:43', '2012-12-10 12:05:43')  (93.1ms) COMMIT  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Ominous::Warning Load (0.9ms) 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::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) 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.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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 12:05:43' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (33.2ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (1.0ms) BEGIN Ominous::Warning Load (0.5ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.6ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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 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 14ms (Views: 12.2ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 12:05:44', NULL, 'Foo', '2012-12-10 12:05:44')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/43 Completed 302 Found in 10ms (ActiveRecord: 1.1ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (35.7ms) ROLLBACK  (0.3ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (21.4ms) 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.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 28ms (ActiveRecord: 22.7ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (34.1ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (11.5ms) Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (13.7ms) Completed 500 Internal Server Error in 46ms  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) 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#index as HTML Thing Load (1.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 12ms (Views: 9.1ms | ActiveRecord: 1.5ms)  (0.8ms) ROLLBACK  (2.0ms) 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 (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.2ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (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"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.5ms) Completed 500 Internal Server Error in 12ms  (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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.4ms)  (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.4ms) 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.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.5ms) Completed 500 Internal Server Error in 12ms  (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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) 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"=>"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 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.7ms)  (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 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (3.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 10ms (ActiveRecord: 3.8ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (2.4ms) BEGIN Fixture Delete (0.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 12:22:32', '2012-12-10 12:22:32') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 12:22:32', '2012-12-10 12:22:32') Fixture Delete (0.3ms) DELETE FROM `ominous_warning_closers` Fixture Insert (1.2ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 12:22:32', '2012-12-10 12:22:32', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 12:22:32', '2012-12-10 12:22:32', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 12:22:32', '2012-12-10 12:22:32', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_hide_warning', '2012-12-10 12:22:32', '2012-12-10 12:22:32') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 12:22:32', '2012-12-10 12:22:32') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 12:22:32', '2012-12-10 12:22:32') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 12:22:32', '2012-12-10 12:22:32')  (41.0ms) COMMIT  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.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::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position 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.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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 12:22:32' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.2ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (41.9ms) 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  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 15ms (Views: 12.4ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 12:22:33', NULL, 'Foo', '2012-12-10 12:22:33')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (1.4ms) SELECT COUNT(*) FROM `things`   (46.2ms) ROLLBACK  (0.9ms) BEGIN Thing Load (2.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (5.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (30.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 37ms (ActiveRecord: 31.9ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (43.5ms) ROLLBACK  (0.3ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (12.5ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (3.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (8.7ms) Completed 200 OK in 43ms (Views: 35.4ms | ActiveRecord: 4.1ms)  (0.5ms) ROLLBACK  (0.3ms) 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 (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 9ms (Views: 6.8ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) 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 (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (5.4ms) Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.3ms) 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.5ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.2ms) Completed 200 OK in 14ms (Views: 11.1ms | ActiveRecord: 1.5ms)  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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: 3.0ms | ActiveRecord: 0.4ms)  (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"=>"2"} Thing Load (0.5ms) 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.2ms) Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 1.7ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.2ms | 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (1.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 Completed 200 OK in 6ms (Views: 2.2ms | ActiveRecord: 1.8ms)  (0.4ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (6.5ms) BEGIN Fixture Delete (0.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 13:37:32', '2012-12-10 13:37:32') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 13:37:32', '2012-12-10 13:37:32') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 13:37:32', '2012-12-10 13:37:32', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 13:37:32', '2012-12-10 13:37:32', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 13:37:32', '2012-12-10 13:37:32', 113629430) Fixture Delete (0.8ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 13:37:32', '2012-12-10 13:37:32') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 13:37:32', '2012-12-10 13:37:32') Fixture Delete (0.8ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 13:37:32', '2012-12-10 13:37:32') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 13:37:32', '2012-12-10 13:37:32')  (60.6ms) COMMIT  (0.6ms) SET FOREIGN_KEY_CHECKS = 1  (0.8ms) BEGIN Ominous::Warning Load (6.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.6ms) 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 (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.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 13:37:32' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (47.5ms) ROLLBACK  (1.1ms) BEGIN Ominous::Warning Load (2.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.4ms) ROLLBACK  (0.8ms) BEGIN Ominous::Warning Load (4.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (5.7ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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 (2.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (1.0ms) BEGIN Ominous::Warning Load (1.5ms) 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 15ms (Views: 13.5ms | ActiveRecord: 0.5ms)  (0.8ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 13:37:33', NULL, 'Foo', '2012-12-10 13:37:33')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/4 Completed 302 Found in 8ms (ActiveRecord: 1.7ms)  (3.3ms) SELECT COUNT(*) FROM `things`   (41.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) 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  (0.6ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) 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 6ms (ActiveRecord: 1.7ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (46.4ms) ROLLBACK  (1.6ms) BEGIN Thing Load (0.9ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.1ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (8.1ms) Completed 200 OK in 62ms (Views: 34.8ms | ActiveRecord: 2.0ms)  (0.5ms) ROLLBACK  (0.2ms) 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 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things` Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) 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#new as HTML Rendered things/_form.html.erb (2.9ms) Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.0ms)  (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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.8ms) Completed 200 OK in 16ms (Views: 10.5ms | ActiveRecord: 1.9ms)  (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.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.1ms | ActiveRecord: 0.4ms)  (0.4ms) 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#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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.5ms) Completed 200 OK in 14ms (Views: 8.4ms | ActiveRecord: 1.8ms)  (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 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (1.7ms) 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.4ms) 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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.2ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 1.7ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.8ms) 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  (1.6ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 2.4ms)  (0.3ms) 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.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 15:30:34', '2012-12-10 15:30:34') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 15:30:34', '2012-12-10 15:30:34') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 15:30:34', '2012-12-10 15:30:34', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 15:30:34', '2012-12-10 15:30:34', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 15:30:34', '2012-12-10 15:30:34', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 15:30:34', '2012-12-10 15:30:34') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 15:30:34', '2012-12-10 15:30:34') 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, '2012-12-10 15:30:34', '2012-12-10 15:30:34') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 15:30:34', '2012-12-10 15:30:34')  (56.0ms) COMMIT  (3.3ms) SET FOREIGN_KEY_CHECKS = 1  (2.5ms) BEGIN Ominous::Warning Load (2.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `ominous_warning_closers`  (0.4ms) SAVEPOINT active_record_1 Ominous::WarningCloser Load (0.9ms) SELECT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1) ORDER BY ominous_warning_closers.position DESC LIMIT 1 SQL (0.5ms) INSERT INTO `ominous_warning_closers` (`closer_id`, `created_at`, `position`, `updated_at`, `warning_id`) VALUES (1, '2012-12-10 15:30:34', 3, '2012-12-10 15:30:34', 1)  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers`   (31.4ms) 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 (8.2ms) SELECT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (7.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (5.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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 (7.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:30:35' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (42.0ms) 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  (0.3ms) ROLLBACK  (0.8ms) BEGIN Ominous::Warning Load (0.4ms) 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::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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 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 45ms (Views: 42.1ms | 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.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  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 15:30:35', NULL, 'Foo', '2012-12-10 15:30:35')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/5 Completed 302 Found in 10ms (ActiveRecord: 1.2ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (47.5ms) ROLLBACK  (4.9ms) BEGIN Thing Load (3.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.2ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 2.2ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (40.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.5ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (12.9ms) Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.7ms) Completed 200 OK in 44ms (Views: 39.6ms | ActiveRecord: 1.7ms)  (0.3ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (4.6ms) Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.2ms) 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 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.3ms) Completed 200 OK in 42ms (Views: 38.6ms | ActiveRecord: 1.5ms)  (0.4ms) ROLLBACK  (0.2ms) 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 (1.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (4.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 4.1ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.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#show as HTML Parameters: {"id"=>"2"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (6.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (3.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.4ms) Completed 200 OK in 23ms (Views: 9.1ms | ActiveRecord: 11.0ms)  (1.1ms) ROLLBACK  (0.2ms) BEGIN Thing Load (1.7ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)  (0.6ms) 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#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 Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.8ms)  (0.4ms) ROLLBACK  (3.8ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 17ms (ActiveRecord: 1.4ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (7.7ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 15:31:02', '2012-12-10 15:31:02') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 15:31:02', '2012-12-10 15:31:02') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 15:31:02', '2012-12-10 15:31:02', 980190962) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 15:31:02', '2012-12-10 15:31:02', 298486374) Fixture Insert (0.3ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 15:31:02', '2012-12-10 15:31:02', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 15:31:02', '2012-12-10 15:31:02') Fixture Insert (2.0ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 15:31:02', '2012-12-10 15:31:02') 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, '2012-12-10 15:31:02', '2012-12-10 15:31:02') Fixture Insert (1.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 15:31:02', '2012-12-10 15:31:02')  (50.8ms) COMMIT  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `ominous_warning_closers`  (0.4ms) SAVEPOINT active_record_1 Ominous::WarningCloser Load (7.0ms) SELECT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1) ORDER BY ominous_warning_closers.position DESC LIMIT 1 SQL (0.5ms) INSERT INTO `ominous_warning_closers` (`closer_id`, `created_at`, `position`, `updated_at`, `warning_id`) VALUES (1, '2012-12-10 15:31:02', 3, '2012-12-10 15:31:02', 1)  (4.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers`   (32.5ms) 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 (2.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 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.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) 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.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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (2.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 Ominous::WarningCloser Load (0.6ms) 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.5ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:31:02' WHERE `ominous_warning_closers`.`id` = 298486374  (4.0ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.5ms) 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.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  (41.8ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.2ms) BEGIN Ominous::Warning Load (0.5ms) 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::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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 Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 47ms (Views: 44.1ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) 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  (0.5ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 15:31:03', NULL, 'Foo', '2012-12-10 15:31:03')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/6 Completed 302 Found in 13ms (ActiveRecord: 1.5ms)  (1.4ms) SELECT COUNT(*) FROM `things`  (41.1ms) ROLLBACK  (1.1ms) BEGIN Thing Load (3.0ms) 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 (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 1.9ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (42.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (10.8ms) Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.8ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.5ms) Completed 200 OK in 36ms (Views: 32.6ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.7ms) 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#new as HTML Rendered things/_form.html.erb (2.0ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.5ms) 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.7ms) Completed 200 OK in 40ms (Views: 36.5ms | ActiveRecord: 1.4ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (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.4ms | ActiveRecord: 0.4ms)  (0.4ms) 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#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 (0.5ms) 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 (3.6ms) Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 2.0ms)  (1.2ms) 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 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 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)  (0.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (4.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (4.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 14ms (Views: 2.0ms | ActiveRecord: 9.1ms)  (5.2ms) 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 (5.3ms) 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 (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 2.0ms)  (1.4ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (1.3ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 15:58:09', '2012-12-10 15:58:09') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 15:58:09', '2012-12-10 15:58:09') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 15:58:10', '2012-12-10 15:58:10', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 15:58:10', '2012-12-10 15:58:10', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 15:58:10', '2012-12-10 15:58:10', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 15:58:10', '2012-12-10 15:58:10') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 15:58:10', '2012-12-10 15:58:10') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.7ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 15:58:10', '2012-12-10 15:58:10') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 15:58:10', '2012-12-10 15:58:10')  (80.5ms) COMMIT  (0.8ms) SET FOREIGN_KEY_CHECKS = 1  (1.2ms) BEGIN Ominous::Warning Load (1.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.3ms) SELECT COUNT(*) FROM `ominous_warning_closers`  (0.5ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.7ms) 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.4ms) ROLLBACK  (4.1ms) BEGIN Ominous::Warning Load (0.4ms) 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 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.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 (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 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (1.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (7.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`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 (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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.4ms) 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.7ms) 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  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:58:10' WHERE `ominous_warning_closers`.`id` = 298486374  (3.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (7.1ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (2.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (67.9ms) ROLLBACK  (1.0ms) BEGIN Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (9.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (3.1ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.0ms) 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.7ms) BEGIN Ominous::Warning Load (0.5ms) 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.1ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.4ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 40ms (Views: 37.4ms | ActiveRecord: 0.7ms)  (0.7ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.8ms) 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  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (1.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 15:58:10', NULL, 'Foo', '2012-12-10 15:58:10')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/7 Completed 302 Found in 10ms (ActiveRecord: 2.5ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (45.7ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.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  (0.5ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) 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 6ms (ActiveRecord: 1.6ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (46.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (3.9ms) Ominous::Warning Load (2.7ms) 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 (11.2ms) Completed 200 OK in 35ms (Views: 28.8ms | ActiveRecord: 4.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 Processing by ThingsController#index as HTML Thing Load (0.6ms) SELECT `things`.* FROM `things` Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.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#new as HTML Rendered things/_form.html.erb (2.8ms) Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)  (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 (28.2ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.5ms) 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 (5.8ms) Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 1.6ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (6.5ms) 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 (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 4ms (Views: 2.2ms | ActiveRecord: 0.5ms)  (9.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 (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (4.2ms) 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 (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (4.1ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (12.8ms) Completed 200 OK in 24ms (Views: 11.8ms | ActiveRecord: 9.3ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.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#show as HTML Parameters: {"id"=>"1"} Thing Load (2.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 1.4ms | ActiveRecord: 2.9ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.8ms) 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 (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (3.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 10ms (Views: 2.2ms | ActiveRecord: 4.5ms)  (4.1ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (2.9ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 13ms (ActiveRecord: 3.9ms)  (2.7ms) 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.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 15:58:56', '2012-12-10 15:58:56') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 15:58:56', '2012-12-10 15:58:56') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 15:58:56', '2012-12-10 15:58:56', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 15:58:56', '2012-12-10 15:58:56', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 15:58:56', '2012-12-10 15:58:56', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 15:58:56', '2012-12-10 15:58:56') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 15:58:56', '2012-12-10 15:58:56') Fixture Delete (0.9ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 15:58:56', '2012-12-10 15:58:56') Fixture Insert (1.8ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 15:58:56', '2012-12-10 15:58:56')  (43.9ms) COMMIT  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (5.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.6ms) 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.3ms) 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 (0.8ms) 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.5ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 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 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) 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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (1.7ms) 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.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.6ms) 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  (0.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:58:56' WHERE `ominous_warning_closers`.`id` = 298486374  (0.6ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (41.9ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.9ms) 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  (0.4ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.6ms) 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.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 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 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` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 36ms (Views: 34.2ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) 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 (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"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 15:58:56', NULL, 'Foo', '2012-12-10 15:58:56')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/8 Completed 302 Found in 11ms (ActiveRecord: 1.0ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (47.0ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (40.0ms) ROLLBACK  (2.6ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (4.3ms) Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.8ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.6ms) Completed 200 OK in 32ms (Views: 28.7ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.3ms) Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.4ms) 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 (3.6ms) Completed 200 OK in 13ms (Views: 9.7ms | ActiveRecord: 1.2ms)  (0.4ms) ROLLBACK  (0.2ms) 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.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 5ms (Views: 3.9ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) 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 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (2.9ms) 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 (3.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (4.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 (7.3ms) Completed 200 OK in 21ms (Views: 6.2ms | ActiveRecord: 11.6ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.0ms) 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 (3.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 3.9ms)  (5.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.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 (6.2ms) 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 Completed 200 OK in 10ms (Views: 2.0ms | ActiveRecord: 6.6ms)  (10.7ms) 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 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (5.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 12ms (ActiveRecord: 6.0ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (15.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (1.5ms) BEGIN Fixture Delete (18.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-07 15:16:49', '2013-01-07 15:16:49') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:16:49', '2013-01-07 15:16:49') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:16:50', '2013-01-07 15:16:50', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:16:50', '2013-01-07 15:16:50', 298486374) Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:16:50', '2013-01-07 15:16:50', 113629430) Fixture Delete (0.4ms) 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-07 15:16:50', '2013-01-07 15:16:50') 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-07 15:16:50', '2013-01-07 15:16:50') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:16:50', '2013-01-07 15:16:50') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:16:50', '2013-01-07 15:16:50')  (36.6ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (18.7ms) 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.8ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Exists (1.6ms) SELECT DISTINCT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) 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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 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 Ominous::WarningCloser Load (0.8ms) 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.5ms) 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 (1.0ms) 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  (0.8ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:16:50' WHERE `ominous_warning_closers`.`id` = 298486374  (0.7ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.5ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (46.3ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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` = 'thing_alert' LIMIT 1  (0.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.4ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 121ms (Views: 118.2ms | ActiveRecord: 0.7ms)  (1.3ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:16:50', NULL, 'Foo', '2013-01-07 15:16:50')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 10ms (ActiveRecord: 1.8ms)  (0.7ms) SELECT COUNT(*) FROM `things`  (72.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) 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 (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.2ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (63.7ms) ROLLBACK  (3.2ms) BEGIN Thing Load (3.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (3.8ms) Ominous::Warning Load (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (3.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (27.9ms) Completed 200 OK in 74ms (Views: 66.7ms | ActiveRecord: 5.3ms)  (0.6ms) ROLLBACK  (0.9ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.7ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (6.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (3.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.4ms) Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.4ms) 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#show as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.2ms) Completed 200 OK in 13ms (Views: 9.3ms | ActiveRecord: 1.9ms)  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.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 5ms (Views: 2.9ms | ActiveRecord: 0.5ms)  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.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 (2.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.6ms) 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 (5.2ms) Completed 200 OK in 14ms (Views: 8.3ms | ActiveRecord: 3.8ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.4ms) 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 (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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (2.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 7ms (Views: 2.0ms | ActiveRecord: 3.3ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.9ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 2.0ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (1.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.5ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 15:18:07', '2013-01-07 15:18:07') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:18:07', '2013-01-07 15:18:07') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:18:07', '2013-01-07 15:18:07', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:18:07', '2013-01-07 15:18:07', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:18:07', '2013-01-07 15:18:07', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:18:07', '2013-01-07 15:18:07') 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-07 15:18:07', '2013-01-07 15:18:07') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:18:07', '2013-01-07 15:18:07') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:18:07', '2013-01-07 15:18:07')  (61.1ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.8ms) 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.7ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (1.0ms) 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.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Exists (1.6ms) SELECT DISTINCT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Load (1.3ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (1.9ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` 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.8ms) 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.5ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (3.2ms) 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  (0.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:18:07' WHERE `ominous_warning_closers`.`id` = 298486374  (1.0ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 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  (38.1ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.5ms) ROLLBACK  (0.7ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.2ms) 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.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (2.0ms) BEGIN Ominous::Warning Load (0.5ms) 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 (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 38ms (Views: 34.7ms | ActiveRecord: 1.0ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:18:08', NULL, 'Foo', '2013-01-07 15:18:08')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/4 Completed 302 Found in 12ms (ActiveRecord: 3.2ms)  (0.7ms) SELECT COUNT(*) FROM `things`  (34.4ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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.5ms) 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 (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.2ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (36.3ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.4ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (4.2ms) Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.8ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (8.2ms) Completed 200 OK in 34ms (Views: 27.3ms | ActiveRecord: 3.6ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.7ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.5ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (34.2ms) 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.5ms) 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.6ms) 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 (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 (4.5ms) Completed 200 OK in 14ms (Views: 10.3ms | ActiveRecord: 2.0ms)  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (2.1ms) 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.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (3.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.7ms) 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 (3.5ms) Completed 200 OK in 15ms (Views: 6.7ms | ActiveRecord: 5.7ms)  (0.7ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.5ms) 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 (2.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.6ms)  (1.2ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.8ms) 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.7ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (3.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 8ms (Views: 2.1ms | ActiveRecord: 3.6ms)  (1.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.4ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) 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.6ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (6.6ms) BEGIN Fixture Delete (1.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 15:29:49', '2013-01-07 15:29:49') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:29:49', '2013-01-07 15:29:49') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:29:49', '2013-01-07 15:29:49', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:29:49', '2013-01-07 15:29:49', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:29:49', '2013-01-07 15:29:49', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:29:49', '2013-01-07 15:29:49') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-07 15:29:49', '2013-01-07 15:29:49') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:29:49', '2013-01-07 15:29:49') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:29:49', '2013-01-07 15:29:49')  (73.5ms) COMMIT  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.9ms) 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.7ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Exists (1.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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (1.3ms) ROLLBACK  (0.7ms) BEGIN Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.7ms) 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` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 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 Ominous::WarningCloser Load (1.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.5ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.7ms) 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  (2.3ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:29:49' WHERE `ominous_warning_closers`.`id` = 298486374  (0.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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (30.8ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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 (1.0ms) 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.5ms) 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  (0.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 39ms (Views: 36.6ms | ActiveRecord: 0.6ms)  (0.7ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) 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  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:29:49', NULL, 'Foo', '2013-01-07 15:29:49')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/5 Completed 302 Found in 9ms (ActiveRecord: 1.7ms)  (0.7ms) SELECT COUNT(*) FROM `things`  (28.1ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.5ms) 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 (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.1ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (37.0ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (4.1ms) Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.1ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` 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.2ms) Completed 200 OK in 32ms (Views: 27.4ms | ActiveRecord: 2.4ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 0.7ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.3ms) Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms)  (3.4ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.2ms) 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 (31.8ms) 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.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' 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 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.6ms) Completed 200 OK in 13ms (Views: 8.6ms | ActiveRecord: 2.5ms)  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.6ms) Completed 200 OK in 12ms (Views: 7.8ms | ActiveRecord: 2.2ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.8ms) 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.5ms) 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 5ms (Views: 3.3ms | ActiveRecord: 0.5ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 1.1ms)  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) 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.6ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (4.9ms) BEGIN Fixture Delete (1.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 15:37:43', '2013-01-07 15:37:43') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:37:43', '2013-01-07 15:37:43') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:37:43', '2013-01-07 15:37:43', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:37:43', '2013-01-07 15:37:43', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:37:43', '2013-01-07 15:37:43', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:37:43', '2013-01-07 15:37:43') 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-07 15:37:43', '2013-01-07 15:37:43') Fixture Delete (0.7ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:37:43', '2013-01-07 15:37:43') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:37:43', '2013-01-07 15:37:43')  (32.0ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (1.1ms) 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.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Exists (0.9ms) 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.5ms) ROLLBACK  (2.4ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (4.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (4.1ms) SELECT DISTINCT `ominous_closers`.* 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  (1.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (1.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (5.7ms) 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.7ms) SAVEPOINT active_record_1 SQL (3.4ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (1.0ms) 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  (0.8ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:37:44' WHERE `ominous_warning_closers`.`id` = 298486374  (0.8ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.8ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (1.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.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 ORDER BY position  (56.4ms) ROLLBACK  (1.5ms) BEGIN Ominous::Warning Load (7.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.1ms) ROLLBACK  (6.1ms) BEGIN Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) 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.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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 (6.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 74ms (Views: 61.8ms | ActiveRecord: 6.5ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (2.1ms) ROLLBACK  (0.6ms) BEGIN Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:37:44', NULL, 'Foo', '2013-01-07 15:37:44')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/6 Completed 302 Found in 12ms (ActiveRecord: 1.6ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (51.8ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (3.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 12ms (ActiveRecord: 3.3ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (83.8ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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 (2.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (3.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (4.4ms) Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (5.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 (68.7ms) Completed 200 OK in 117ms (Views: 106.0ms | ActiveRecord: 9.0ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (2.5ms) 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 (2.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (9.0ms) SELECT `things`.* FROM `things`  Completed 200 OK in 22ms (Views: 11.3ms | ActiveRecord: 9.0ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (3.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (4.8ms) 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.0ms) Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.0ms)  (3.0ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (8.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (3.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 (4.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (5.8ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (9.3ms) Completed 200 OK in 29ms (Views: 13.8ms | ActiveRecord: 13.0ms)  (9.0ms) ROLLBACK  (0.5ms) BEGIN Thing Load (2.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 7ms (Views: 2.3ms | ActiveRecord: 3.2ms)  (5.3ms) ROLLBACK  (0.4ms) BEGIN Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.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 (4.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (7.2ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (5.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (6.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 (19.6ms) Completed 200 OK in 45ms (Views: 16.9ms | ActiveRecord: 23.7ms)  (11.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (2.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (4.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 4.0ms)  (1.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (3.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (3.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (4.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (2.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 6.2ms)  (4.0ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (3.6ms) 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 (7.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (2.8ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 15ms (ActiveRecord: 11.0ms)  (4.0ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (4.6ms) SET FOREIGN_KEY_CHECKS = 0  (5.4ms) BEGIN Fixture Delete (1.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 15:41:49', '2013-01-07 15:41:49') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:41:49', '2013-01-07 15:41:49') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:41:49', '2013-01-07 15:41:49', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:41:49', '2013-01-07 15:41:49', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:41:49', '2013-01-07 15:41:49', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:41:49', '2013-01-07 15:41:49') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-07 15:41:49', '2013-01-07 15:41:49') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:41:49', '2013-01-07 15:41:49') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:41:49', '2013-01-07 15:41:49')  (54.8ms) COMMIT  (1.5ms) SET FOREIGN_KEY_CHECKS = 1  (1.1ms) BEGIN Ominous::Warning Load (0.8ms) 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.7ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.9ms) 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.7ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Exists (1.4ms) 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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.7ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.7ms) 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.6ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.8ms) 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  (1.0ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:41:49' WHERE `ominous_warning_closers`.`id` = 298486374  (0.6ms) 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 (2.2ms) 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  (31.8ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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 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.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.6ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 43ms (Views: 40.8ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:41:49', NULL, 'Foo', '2013-01-07 15:41:49')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/7 Completed 302 Found in 12ms (ActiveRecord: 1.7ms)  (0.8ms) SELECT COUNT(*) FROM `things`  (23.0ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.9ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 3.4ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (24.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (4.3ms) Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.9ms) Completed 200 OK in 30ms (Views: 24.9ms | ActiveRecord: 2.4ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.7ms)  (0.5ms) ROLLBACK  (0.4ms) 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.8ms) 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.4ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) 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"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.6ms) Completed 200 OK in 16ms (Views: 11.3ms | ActiveRecord: 1.9ms)  (0.8ms) ROLLBACK  (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (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 (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.4ms) Completed 200 OK in 13ms (Views: 7.4ms | ActiveRecord: 3.6ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) 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"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.5ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 1.5ms)  (0.8ms) ROLLBACK  (0.9ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.7ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 1.7ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (4.1ms) BEGIN Fixture Delete (1.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 15:45:37', '2013-01-07 15:45:37') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:45:37', '2013-01-07 15:45:37') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:45:37', '2013-01-07 15:45:37', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:45:37', '2013-01-07 15:45:37', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:45:37', '2013-01-07 15:45:37', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:45:37', '2013-01-07 15:45:37') 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-07 15:45:37', '2013-01-07 15:45:37') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:45:37', '2013-01-07 15:45:37') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:45:37', '2013-01-07 15:45:37')  (60.9ms) COMMIT  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (1.1ms) BEGIN Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (1.0ms) 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.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Exists (0.8ms) 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.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Load (1.1ms) SELECT DISTINCT `ominous_closers`.* 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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` 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.8ms) 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.5ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.7ms) 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  (0.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:45:37' WHERE `ominous_warning_closers`.`id` = 298486374  (0.6ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (6.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  (37.7ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.9ms) 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  (0.6ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (2.7ms) 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  (0.5ms) ROLLBACK  (1.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 38ms (Views: 35.4ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) 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  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:45:37', NULL, 'Foo', '2013-01-07 15:45:37')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/8 Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (1.6ms) SELECT COUNT(*) FROM `things`  (33.1ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) 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 (2.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (3.3ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (4.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (1.4ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 15ms (ActiveRecord: 6.8ms)  (2.9ms) SELECT COUNT(*) FROM `things`   (33.2ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (6.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (7.1ms) Ominous::Warning Load (0.7ms) 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 (9.2ms) Completed 200 OK in 35ms (Views: 28.8ms | ActiveRecord: 4.0ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (2.0ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 2.0ms)  (0.5ms) ROLLBACK  (0.4ms) 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 (0.5ms) 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.1ms) Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.7ms) 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 (4.2ms) Completed 200 OK in 17ms (Views: 10.7ms | ActiveRecord: 2.7ms)  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.6ms)  (1.3ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.7ms) Completed 200 OK in 13ms (Views: 8.1ms | ActiveRecord: 2.5ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) 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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 1.4ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 1.7ms)  (1.3ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (3.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 15:46:58', '2013-01-07 15:46:58') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:46:58', '2013-01-07 15:46:58') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:46:58', '2013-01-07 15:46:58', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:46:58', '2013-01-07 15:46:58', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:46:58', '2013-01-07 15:46:58', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:46:58', '2013-01-07 15:46:58') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-07 15:46:58', '2013-01-07 15:46:58') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:46:58', '2013-01-07 15:46:58') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:46:58', '2013-01-07 15:46:58')  (47.5ms) COMMIT  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (1.2ms) BEGIN Ominous::Warning Load (2.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (1.1ms) 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.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Exists (1.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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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 Ominous::Closer Load (2.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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.5ms) 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` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 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 ORDER BY position Ominous::WarningCloser Load (0.8ms) 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.5ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.8ms) 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.8ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:46:58' WHERE `ominous_warning_closers`.`id` = 298486374  (0.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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.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  (21.0ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.7ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.4ms) ROLLBACK  (1.3ms) BEGIN Ominous::Warning Load (0.5ms) 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 39ms (Views: 36.4ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) 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  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:46:58', NULL, 'Foo', '2013-01-07 15:46:58')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/9 Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (31.8ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.5ms) 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 (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 8ms (ActiveRecord: 2.1ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (19.2ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (3.5ms) Ominous::Warning Load (4.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.2ms) Completed 200 OK in 40ms (Views: 31.7ms | ActiveRecord: 5.5ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.3ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 1.3ms)  (1.3ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.4ms) Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.4ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.6ms) 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 (3.6ms) Completed 200 OK in 47ms (Views: 43.4ms | ActiveRecord: 1.8ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.0ms) Completed 200 OK in 14ms (Views: 8.0ms | ActiveRecord: 2.4ms)  (0.8ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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 5ms (Views: 3.5ms | ActiveRecord: 0.5ms)  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.2ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 6ms (Views: 1.9ms | ActiveRecord: 1.2ms)  (0.5ms) ROLLBACK  (0.4ms) 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 (0.5ms) 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.5ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (2.8ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (5.0ms) BEGIN Fixture Delete (1.2ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 15:50:28', '2013-01-07 15:50:28') Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:50:28', '2013-01-07 15:50:28') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:50:29', '2013-01-07 15:50:29', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:50:29', '2013-01-07 15:50:29', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:50:29', '2013-01-07 15:50:29', 113629430) Fixture Delete (0.7ms) 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-07 15:50:29', '2013-01-07 15:50:29') 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-07 15:50:29', '2013-01-07 15:50:29') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:50:29', '2013-01-07 15:50:29') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:50:29', '2013-01-07 15:50:29')  (58.5ms) COMMIT  (1.6ms) SET FOREIGN_KEY_CHECKS = 1  (1.3ms) BEGIN Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.9ms) 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.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Exists (0.8ms) 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.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Load (0.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` 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.7ms) 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.5ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.7ms) 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  (0.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:50:29' WHERE `ominous_warning_closers`.`id` = 298486374  (0.7ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.5ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 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  (68.9ms) ROLLBACK  (1.1ms) BEGIN Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (2.5ms) ROLLBACK  (4.3ms) BEGIN Ominous::Warning Load (0.6ms) 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` = 'thing_alert' LIMIT 1  (2.1ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 500 Internal Server Error in 39ms  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (7.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (1.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:50:29', NULL, 'Foo', '2013-01-07 15:50:29')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/10 Completed 302 Found in 10ms (ActiveRecord: 3.1ms)  (1.1ms) SELECT COUNT(*) FROM `things`  (26.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) 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.6ms) 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 (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 6ms (ActiveRecord: 2.2ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (18.8ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (5.6ms) Ominous::Warning Load (0.7ms) 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 (9.1ms) Completed 200 OK in 38ms (Views: 28.7ms | ActiveRecord: 2.5ms)  (0.5ms) ROLLBACK  (0.4ms) 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 (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 9ms (Views: 6.1ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.3ms) Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (26.7ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.8ms) Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 2.0ms)  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) 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"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.5ms) 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 (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 (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.6ms) 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 (6.2ms) Completed 200 OK in 15ms (Views: 10.0ms | ActiveRecord: 3.3ms)  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) 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 (0.5ms) 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 5ms (Views: 2.1ms | ActiveRecord: 0.5ms)  (0.6ms) ROLLBACK  (0.4ms) 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 (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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 1.1ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.0ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 1.6ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (2.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (3.3ms) BEGIN 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-07 15:53:36', '2013-01-07 15:53:36') Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:53:36', '2013-01-07 15:53:36') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:53:36', '2013-01-07 15:53:36', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:53:36', '2013-01-07 15:53:36', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:53:36', '2013-01-07 15:53:36', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:53:36', '2013-01-07 15:53:36') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-07 15:53:36', '2013-01-07 15:53:36') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:53:36', '2013-01-07 15:53:36') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:53:36', '2013-01-07 15:53:36')  (100.1ms) COMMIT  (1.1ms) SET FOREIGN_KEY_CHECKS = 1  (0.9ms) BEGIN Ominous::Warning Load (3.9ms) 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  (0.7ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (1.2ms) 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.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Exists (0.9ms) 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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.8ms) 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 (0.7ms) 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.5ms) SAVEPOINT active_record_1 SQL (1.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.8ms) 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  (0.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:53:37' WHERE `ominous_warning_closers`.`id` = 298486374  (0.7ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.5ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (36.9ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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 (1.0ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 47ms (Views: 44.5ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:53:37', NULL, 'Foo', '2013-01-07 15:53:37')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/11 Completed 302 Found in 12ms (ActiveRecord: 2.4ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (43.1ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (1.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.6ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (28.1ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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 (5.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (4.7ms) Completed 500 Internal Server Error in 86ms  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 30ms  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (2.7ms) 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 (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.7ms) Completed 500 Internal Server Error in 28ms  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 49ms  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) 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.6ms) 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 500 Internal Server Error in 21ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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 (1.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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 32ms  (0.6ms) ROLLBACK  (1.0ms) BEGIN Thing Load (0.8ms) 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 (1.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (5.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 44ms  (0.6ms) ROLLBACK  (1.6ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 56ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (0.7ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (4.0ms) BEGIN Fixture Delete (1.7ms) DELETE FROM `ominous_warnings` Fixture Insert (1.0ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 15:54:23', '2013-01-07 15:54:23') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:54:23', '2013-01-07 15:54:23') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:54:23', '2013-01-07 15:54:23', 980190962) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:54:23', '2013-01-07 15:54:23', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:54:23', '2013-01-07 15:54:23', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:54:23', '2013-01-07 15:54:23') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-07 15:54:23', '2013-01-07 15:54:23') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.6ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:54:23', '2013-01-07 15:54:23') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:54:23', '2013-01-07 15:54:23')  (59.7ms) COMMIT  (2.0ms) SET FOREIGN_KEY_CHECKS = 1  (1.2ms) BEGIN Ominous::Warning Load (2.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.9ms) 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.7ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Exists (1.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.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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::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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` 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.7ms) 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.8ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.9ms) 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  (0.8ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:54:23' WHERE `ominous_warning_closers`.`id` = 298486374  (0.7ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.5ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (32.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) ROLLBACK  (1.4ms) BEGIN Ominous::Warning Load (1.1ms) 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.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.5ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 43ms (Views: 40.9ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) 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  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:54:23', NULL, 'Foo', '2013-01-07 15:54:23')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/12 Completed 302 Found in 10ms (ActiveRecord: 1.7ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (22.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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 (3.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (1.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.9ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (25.1ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (3.5ms) Completed 500 Internal Server Error in 69ms  (0.5ms) ROLLBACK  (2.9ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 36ms  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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 (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.5ms) Completed 500 Internal Server Error in 29ms  (0.6ms) ROLLBACK  (0.4ms) 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 (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 500 Internal Server Error in 46ms  (0.6ms) ROLLBACK  (0.4ms) 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.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 24ms  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.4ms) 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 (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 (2.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 26ms  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 25ms  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 53ms  (0.8ms) ROLLBACK  (0.4ms) 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 (2.0ms) 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 (7.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 12ms (ActiveRecord: 8.9ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (2.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (4.8ms) BEGIN 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-07 15:55:04', '2013-01-07 15:55:04') Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:55:04', '2013-01-07 15:55:04') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:55:04', '2013-01-07 15:55:04', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:55:04', '2013-01-07 15:55:04', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:55:04', '2013-01-07 15:55:04', 113629430) Fixture Delete (1.2ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:55:04', '2013-01-07 15:55:04') Fixture Insert (2.0ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-07 15:55:04', '2013-01-07 15:55:04') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:55:04', '2013-01-07 15:55:04') Fixture Insert (1.0ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:55:04', '2013-01-07 15:55:04')  (50.0ms) COMMIT  (0.5ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (0.8ms) 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.8ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.9ms) 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.7ms) ROLLBACK TO SAVEPOINT active_record_1  (2.8ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Exists (1.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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.9ms) 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.5ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.8ms) 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  (1.0ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:55:04' WHERE `ominous_warning_closers`.`id` = 298486374  (0.7ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.5ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (21.1ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.9ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.9ms) 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` = 'thing_alert' LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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 41ms (Views: 38.5ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.9ms) 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  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:55:04', NULL, 'Foo', '2013-01-07 15:55:04')  (0.7ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/13 Completed 302 Found in 10ms (ActiveRecord: 1.9ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (43.8ms) ROLLBACK  (1.3ms) BEGIN Thing Load (0.8ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (2.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 4.0ms)  (1.9ms) SELECT COUNT(*) FROM `things`   (21.8ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (5.6ms) Completed 500 Internal Server Error in 81ms  (0.6ms) ROLLBACK  (0.4ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.1ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 26ms  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.4ms) Completed 500 Internal Server Error in 35ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.5ms) 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 500 Internal Server Error in 51ms  (0.6ms) ROLLBACK  (0.4ms) 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.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 21ms  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.3ms) 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 (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.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 23ms  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 26ms  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (2.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 66ms  (0.5ms) ROLLBACK  (5.6ms) 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 (0.6ms) 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 (5.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (1.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 11ms (ActiveRecord: 7.8ms)  (0.6ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (6.8ms) SET FOREIGN_KEY_CHECKS = 0  (1.1ms) BEGIN Fixture Delete (1.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 15:56:07', '2013-01-07 15:56:07') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:56:07', '2013-01-07 15:56:07') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:56:07', '2013-01-07 15:56:07', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:56:07', '2013-01-07 15:56:07', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:56:07', '2013-01-07 15:56:07', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (1.1ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:56:07', '2013-01-07 15:56:07') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-07 15:56:07', '2013-01-07 15:56:07') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:56:07', '2013-01-07 15:56:07') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:56:07', '2013-01-07 15:56:07')  (108.9ms) COMMIT  (1.0ms) SET FOREIGN_KEY_CHECKS = 1  (1.7ms) BEGIN Ominous::Warning Load (1.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.8ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.9ms) 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.7ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Exists (1.4ms) 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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.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::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 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 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 Ominous::WarningCloser Load (0.8ms) 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.7ms) 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.8ms) 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  (2.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:56:08' WHERE `ominous_warning_closers`.`id` = 298486374  (0.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.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (38.2ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.9ms) 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  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (1.3ms) 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.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 43ms (Views: 40.7ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (1.7ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) 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  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:56:08', NULL, 'Foo', '2013-01-07 15:56:08')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/14 Completed 302 Found in 8ms (ActiveRecord: 1.6ms)  (1.6ms) SELECT COUNT(*) FROM `things`  (39.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.3ms) 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.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.3ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (35.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (5.2ms) Completed 500 Internal Server Error in 75ms  (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#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 35ms  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.4ms) 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#new as HTML Rendered things/_form.html.erb (2.8ms) Completed 500 Internal Server Error in 27ms  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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 500 Internal Server Error in 58ms  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 23ms  (0.6ms) ROLLBACK  (0.4ms) 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 (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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 40ms  (6.2ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (5.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 32ms  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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 (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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 58ms  (0.6ms) ROLLBACK  (0.4ms) 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 (0.7ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) 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.6ms)  (1.3ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.6ms) SET FOREIGN_KEY_CHECKS = 0  (4.7ms) BEGIN Fixture Delete (1.6ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 15:57:27', '2013-01-07 15:57:27') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:57:27', '2013-01-07 15:57:27') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:57:27', '2013-01-07 15:57:27', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:57:27', '2013-01-07 15:57:27', 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-07 15:57:27', '2013-01-07 15:57:27', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:57:27', '2013-01-07 15:57:27') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-07 15:57:27', '2013-01-07 15:57:27') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:57:27', '2013-01-07 15:57:27') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:57:27', '2013-01-07 15:57:27')  (102.3ms) COMMIT  (1.1ms) SET FOREIGN_KEY_CHECKS = 1  (1.2ms) BEGIN Ominous::Warning Load (4.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.9ms) 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.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Exists (0.8ms) 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.8ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::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.5ms) ROLLBACK  (4.2ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (7.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.5ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (1.0ms) 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  (0.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:57:28' WHERE `ominous_warning_closers`.`id` = 298486374  (1.3ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.7ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`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 ORDER BY position  (28.9ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Warning Exists (1.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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 (1.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 39ms (Views: 36.4ms | ActiveRecord: 1.4ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) 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  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:57:28', NULL, 'Foo', '2013-01-07 15:57:28')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/15 Completed 302 Found in 10ms (ActiveRecord: 1.7ms)  (2.6ms) SELECT COUNT(*) FROM `things`  (25.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.7ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 6ms (ActiveRecord: 2.0ms)  (0.7ms) SELECT COUNT(*) FROM `things`   (23.0ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (3.6ms) Completed 500 Internal Server Error in 60ms  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 17ms  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.3ms) Completed 500 Internal Server Error in 17ms  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 18ms  (0.5ms) ROLLBACK  (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 9ms  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 13ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (1.3ms) 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 (0.5ms) 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 500 Internal Server Error in 11ms  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 36ms  (0.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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 (0.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 1.7ms)  (1.7ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (1.4ms) DELETE FROM `ominous_warnings` Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 15:59:08', '2013-01-07 15:59:08') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:59:08', '2013-01-07 15:59:08') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:59:08', '2013-01-07 15:59:08', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:59:08', '2013-01-07 15:59:08', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:59:08', '2013-01-07 15:59:08', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:59:08', '2013-01-07 15:59:08') 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-07 15:59:08', '2013-01-07 15:59:08') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:59:08', '2013-01-07 15:59:08') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:59:08', '2013-01-07 15:59:08')  (61.1ms) COMMIT  (0.8ms) SET FOREIGN_KEY_CHECKS = 1  (0.4ms) BEGIN Ominous::Warning Load (0.7ms) 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.7ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.9ms) 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.7ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Exists (1.8ms) 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.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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::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 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.8ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.7ms) 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::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` 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 (2.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.5ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.8ms) 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  (0.8ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:59:08' WHERE `ominous_warning_closers`.`id` = 298486374  (1.8ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (28.7ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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 (1.2ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 38ms (Views: 35.7ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) 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  (1.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.8ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:59:08', NULL, 'Foo', '2013-01-07 15:59:08')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/16 Completed 302 Found in 21ms (ActiveRecord: 4.2ms)  (2.2ms) SELECT COUNT(*) FROM `things`  (39.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) 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.5ms) 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 (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (2.8ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 4.2ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (34.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (3.6ms) Completed 500 Internal Server Error in 57ms  (0.5ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.1ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 14ms  (0.5ms) ROLLBACK  (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.4ms) Completed 500 Internal Server Error in 15ms  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.6ms) 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"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 15ms  (0.5ms) ROLLBACK  (0.5ms) 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.2ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 14ms  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 12ms  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.6ms) 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 500 Internal Server Error in 10ms  (0.5ms) ROLLBACK  (0.5ms) 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 (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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 45ms  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 1.7ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (5.9ms) BEGIN Fixture Delete (2.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-07 15:59:44', '2013-01-07 15:59:44') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 15:59:44', '2013-01-07 15:59:44') Fixture Delete (0.7ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 15:59:45', '2013-01-07 15:59:45', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 15:59:45', '2013-01-07 15:59:45', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 15:59:45', '2013-01-07 15:59:45', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 15:59:45', '2013-01-07 15:59:45') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-07 15:59:45', '2013-01-07 15:59:45') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 15:59:45', '2013-01-07 15:59:45') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 15:59:45', '2013-01-07 15:59:45')  (85.6ms) COMMIT  (1.9ms) SET FOREIGN_KEY_CHECKS = 1  (2.7ms) BEGIN Ominous::Warning Load (4.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.9ms) 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  (1.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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::Closer Exists (0.9ms) 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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) 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::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) 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 (0.7ms) 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.5ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (4.2ms) 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  (0.8ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 15:59:45' WHERE `ominous_warning_closers`.`id` = 298486374  (0.6ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.5ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.5ms) 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  (49.8ms) ROLLBACK  (1.7ms) BEGIN Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.9ms) ROLLBACK  (0.8ms) BEGIN Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (3.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (1.2ms) ROLLBACK  (0.8ms) BEGIN Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 44ms (Views: 41.2ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 15:59:45', NULL, 'Foo', '2013-01-07 15:59:45')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/17 Completed 302 Found in 10ms (ActiveRecord: 1.7ms)  (0.7ms) SELECT COUNT(*) FROM `things`  (34.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.5ms) 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 (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.4ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (29.9ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (3.2ms) Completed 500 Internal Server Error in 79ms  (0.5ms) ROLLBACK  (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.9ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 32ms  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) 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 (2.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.9ms) Completed 500 Internal Server Error in 29ms  (2.8ms) ROLLBACK  (2.0ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 51ms  (0.7ms) ROLLBACK  (1.3ms) BEGIN Thing Load (0.6ms) 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.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 21ms  (0.9ms) ROLLBACK  (0.4ms) BEGIN Thing Load (1.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.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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 27ms  (2.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (2.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (7.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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 35ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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.6ms) 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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 51ms  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) 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.5ms) 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 (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 2.1ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.6ms) SELECT @@FOREIGN_KEY_CHECKS  (1.5ms) SET FOREIGN_KEY_CHECKS = 0  (0.6ms) BEGIN Fixture Delete (1.5ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 16:06:01', '2013-01-07 16:06:01') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 16:06:01', '2013-01-07 16:06:01') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 16:06:01', '2013-01-07 16:06:01', 980190962) Fixture Insert (0.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 16:06:01', '2013-01-07 16:06:01', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 16:06:01', '2013-01-07 16:06:01', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 16:06:01', '2013-01-07 16:06:01') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-07 16:06:01', '2013-01-07 16:06:01') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 16:06:01', '2013-01-07 16:06:01') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 16:06:01', '2013-01-07 16:06:01')  (46.0ms) COMMIT  (1.2ms) SET FOREIGN_KEY_CHECKS = 1  (1.5ms) BEGIN Ominous::Warning Load (2.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.7ms) 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.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Exists (1.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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT DISTINCT `ominous_closers`.* 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  (1.2ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (3.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 ORDER BY position Ominous::WarningCloser Load (1.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.5ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.7ms) 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  (0.8ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 16:06:01' WHERE `ominous_warning_closers`.`id` = 298486374  (4.2ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.5ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (33.1ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.4ms) ROLLBACK  (0.6ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (2.3ms) BEGIN Ominous::Warning Load (0.5ms) 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 39ms (Views: 37.3ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.5ms) ROLLBACK  (0.8ms) BEGIN Thing Load (0.7ms) 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  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 16:06:02', NULL, 'Foo', '2013-01-07 16:06:02')  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/18 Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (29.8ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.9ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 6ms (ActiveRecord: 2.2ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (29.0ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (3.9ms) Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (12.7ms) Completed 200 OK in 38ms (Views: 33.2ms | ActiveRecord: 3.1ms)  (0.6ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.4ms) 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#index as HTML Thing Load (0.7ms) SELECT `things`.* FROM `things`  Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.7ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.2ms) 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#new as HTML Rendered things/_form.html.erb (3.1ms) Completed 200 OK in 8ms (Views: 7.0ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.8ms) Completed 200 OK in 18ms (Views: 13.9ms | ActiveRecord: 1.8ms)  (0.7ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 1.3ms)  (0.5ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.5ms) 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 (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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.5ms) Completed 200 OK in 17ms (Views: 7.8ms | ActiveRecord: 2.2ms)  (1.9ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.5ms) 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 (0.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.7ms) BEGIN Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.6ms) 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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 1.6ms)  (0.5ms) ROLLBACK  (0.9ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.8ms) 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.9ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS  (0.5ms) SET FOREIGN_KEY_CHECKS = 0  (2.9ms) BEGIN Fixture Delete (1.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.7ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-07 16:18:14', '2013-01-07 16:18:14') Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-07 16:18:14', '2013-01-07 16:18:14') Fixture Delete (0.6ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-07 16:18:14', '2013-01-07 16:18:14', 980190962) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-07 16:18:14', '2013-01-07 16:18:14', 298486374) Fixture Insert (0.6ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-07 16:18:14', '2013-01-07 16:18:14', 113629430) Fixture Delete (0.6ms) DELETE FROM `ominous_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-07 16:18:14', '2013-01-07 16:18:14') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-07 16:18:14', '2013-01-07 16:18:14') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-07 16:18:14', '2013-01-07 16:18:14') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-07 16:18:14', '2013-01-07 16:18:14')  (57.2ms) COMMIT  (1.6ms) SET FOREIGN_KEY_CHECKS = 1  (1.6ms) BEGIN Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.8ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (1.0ms) 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.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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::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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position 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 (1.1ms) 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` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) 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 (0.7ms) 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.5ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.8ms) 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  (0.8ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-07 16:18:14' WHERE `ominous_warning_closers`.`id` = 298486374  (0.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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (31.8ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (5.1ms) 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` = 'thing_alert' LIMIT 1  (0.7ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.5ms) 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.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.8ms) BEGIN Ominous::Warning Load (0.7ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 45ms (Views: 42.8ms | ActiveRecord: 0.6ms)  (0.5ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.6ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-07 16:18:14', NULL, 'Foo', '2013-01-07 16:18:14')  (0.8ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/19 Completed 302 Found in 11ms (ActiveRecord: 2.2ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (25.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.6ms) 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.5ms) 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 (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 9ms (ActiveRecord: 2.1ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (26.1ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.7ms) 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 (1.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (4.2ms) Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (12.9ms) Completed 200 OK in 39ms (Views: 33.4ms | ActiveRecord: 3.4ms)  (0.6ms) ROLLBACK  (0.8ms) BEGIN Thing Load (0.5ms) 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 (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.1ms) SELECT `things`.* FROM `things`  Completed 200 OK in 10ms (Views: 7.3ms | ActiveRecord: 1.1ms)  (0.5ms) ROLLBACK  (0.5ms) BEGIN Thing Load (27.4ms) 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 (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.0ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.7ms) 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.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.3ms) Completed 200 OK in 13ms (Views: 9.2ms | ActiveRecord: 1.8ms)  (0.6ms) ROLLBACK  (0.4ms) 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 (0.5ms) 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 4ms (Views: 2.2ms | ActiveRecord: 0.5ms)  (1.0ms) ROLLBACK  (0.6ms) BEGIN Thing Load (0.5ms) 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 (0.6ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.8ms) Completed 200 OK in 13ms (Views: 8.2ms | ActiveRecord: 2.4ms)  (0.6ms) ROLLBACK  (0.8ms) 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"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.6ms)  (0.6ms) ROLLBACK  (0.4ms) BEGIN Thing Load (5.1ms) 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.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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 1.2ms)  (0.6ms) ROLLBACK  (0.4ms) 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.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 (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 2.3ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (3.7ms) DELETE FROM `ominous_warnings` Fixture Insert (1.1ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-08 08:26:05', '2013-01-08 08:26:05') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-08 08:26:05', '2013-01-08 08:26:05') 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-08 08:26:05', '2013-01-08 08:26:05', 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-08 08:26:05', '2013-01-08 08:26:05', 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-08 08:26:05', '2013-01-08 08:26:05', 113629430) Fixture Delete (0.4ms) 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-08 08:26:05', '2013-01-08 08:26:05') 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-08 08:26:05', '2013-01-08 08:26:05') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (2.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-08 08:26:05', '2013-01-08 08:26:05') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-08 08:26:05', '2013-01-08 08:26:05')  (20.2ms) COMMIT  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Ominous::Warning Load (0.7ms) 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  (0.4ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.9ms) 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.3ms) 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 (0.8ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`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 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (1.2ms) 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 Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 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 Ominous::WarningCloser Load (0.5ms) 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 (9.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (1.0ms) 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  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-08 08:26:05' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.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  (31.4ms) ROLLBACK  (0.4ms) 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  (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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 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::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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 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` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 76ms (Views: 73.4ms | ActiveRecord: 0.4ms)  (3.9ms) ROLLBACK  (0.3ms) BEGIN  (7.2ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.5ms) 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.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"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-08 08:26:05', NULL, 'Foo', '2013-01-08 08:26:05')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 8ms (ActiveRecord: 1.2ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (44.8ms) ROLLBACK  (4.0ms) BEGIN Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.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  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (58.1ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (2.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 (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (3.4ms) Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' 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 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (14.3ms) Completed 200 OK in 77ms (Views: 72.1ms | ActiveRecord: 3.0ms)  (0.6ms) ROLLBACK  (0.2ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.5ms)  (1.9ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (3.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (8.5ms) Completed 200 OK in 18ms (Views: 17.5ms | ActiveRecord: 0.0ms)  (2.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (2.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (4.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.1ms) Completed 200 OK in 16ms (Views: 12.8ms | ActiveRecord: 1.7ms)  (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.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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.2ms) 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 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.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (1.9ms) 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.9ms) Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 3.1ms)  (0.4ms) ROLLBACK  (2.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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.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 (1.0ms) 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 Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 0.8ms)  (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.3ms) 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 (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (2.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 3.4ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (1.3ms) SET FOREIGN_KEY_CHECKS = 0  (5.7ms) BEGIN Fixture Delete (1.7ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-08 09:15:59', '2013-01-08 09:15:59') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-08 09:15:59', '2013-01-08 09:15:59') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-08 09:15:59', '2013-01-08 09:15:59', 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-08 09:15:59', '2013-01-08 09:15:59', 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-08 09:15:59', '2013-01-08 09:15:59', 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-08 09:15:59', '2013-01-08 09:15:59') Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-08 09:15:59', '2013-01-08 09:15:59') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-08 09:15:59', '2013-01-08 09:15:59') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-08 09:15:59', '2013-01-08 09:15:59')  (75.7ms) COMMIT  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.3ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.6ms) 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.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.2ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Exists (0.6ms) SELECT DISTINCT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.9ms) 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 Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) 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.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 (1.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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.4ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.6ms) 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  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-08 09:15:59' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.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  (29.5ms) ROLLBACK  (3.4ms) BEGIN Ominous::Warning Load (4.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.4ms) 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::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 500 Internal Server Error in 67ms  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.8ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-08 09:15:59', NULL, 'Foo', '2013-01-08 09:15:59')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/4 Completed 500 Internal Server Error in 10ms  (53.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.9ms) 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.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 (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 500 Internal Server Error in 9ms  (43.8ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (6.5ms) Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.8ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (33.3ms) Completed 500 Internal Server Error in 65ms  (3.6ms) ROLLBACK  (0.2ms) BEGIN Thing Load (2.2ms) 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#index as HTML Thing Load (0.6ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 12ms  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.1ms) Completed 500 Internal Server Error in 11ms  (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.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 (1.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.5ms) 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 (4.2ms) Completed 500 Internal Server Error in 19ms  (0.5ms) 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 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 7ms  (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 (1.0ms) 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 (0.4ms) 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.7ms) Completed 500 Internal Server Error in 14ms  (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.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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 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.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 Completed 500 Internal Server Error in 8ms  (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.6ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 500 Internal Server Error in 6ms  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) 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.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-08 09:17:02', '2013-01-08 09:17:02') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-08 09:17:02', '2013-01-08 09:17:02') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (1.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-08 09:17:02', '2013-01-08 09:17:02', 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-08 09:17:02', '2013-01-08 09:17:02', 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-08 09:17:02', '2013-01-08 09:17:02', 113629430) Fixture Delete (0.3ms) DELETE FROM `ominous_closers` Fixture Insert (3.8ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-08 09:17:02', '2013-01-08 09:17:02') Fixture Insert (0.5ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-08 09:17:02', '2013-01-08 09:17:02') Fixture Delete (0.3ms) DELETE FROM `things` Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-08 09:17:02', '2013-01-08 09:17:02') Fixture Insert (0.5ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-08 09:17:02', '2013-01-08 09:17:02')  (120.2ms) COMMIT  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (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.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.7ms) 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.3ms) 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 (0.6ms) SELECT DISTINCT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 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 AND `ominous_closers`.`id` = 1 ORDER BY position 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`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 (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (1.8ms) 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  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-08 09:17:02' WHERE `ominous_warning_closers`.`id` = 298486374  (0.8ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.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  (34.2ms) ROLLBACK  (0.4ms) 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  (0.4ms) 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 (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.6ms) 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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 500 Internal Server Error in 46ms  (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.6ms) 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"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-08 09:17:02', NULL, 'Foo', '2013-01-08 09:17:02')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/5 Completed 500 Internal Server Error in 10ms  (37.8ms) ROLLBACK  (0.8ms) BEGIN Thing Load (2.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.0ms) 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.4ms) SELECT COUNT(*) FROM `things`  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) 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 500 Internal Server Error in 8ms  (30.8ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (7.8ms) Ominous::Warning Load (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.1ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` 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 (38.1ms) Completed 500 Internal Server Error in 70ms  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 500 Internal Server Error in 11ms  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.0ms) 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 (4.1ms) Completed 500 Internal Server Error in 11ms  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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 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 (1.0ms) 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 (3.9ms) Completed 500 Internal Server Error in 19ms  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 8ms  (0.4ms) ROLLBACK  (0.4ms) BEGIN Thing Load (0.4ms) 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.4ms) 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 (1.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.4ms) 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.1ms) Completed 500 Internal Server Error in 16ms  (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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 500 Internal Server Error in 6ms  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (4.1ms) 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.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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 500 Internal Server Error in 9ms  (0.4ms) ROLLBACK  (0.4ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (2.9ms) SAVEPOINT active_record_1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 500 Internal Server Error in 14ms  (5.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.3ms) SET FOREIGN_KEY_CHECKS = 0  (5.3ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-08 09:23:28', '2013-01-08 09:23:28') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-08 09:23:28', '2013-01-08 09:23:28') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-08 09:23:28', '2013-01-08 09:23:28', 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-08 09:23:28', '2013-01-08 09:23:28', 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-08 09:23:28', '2013-01-08 09:23:28', 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-08 09:23:28', '2013-01-08 09:23:28') 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-08 09:23:28', '2013-01-08 09:23:28') 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-08 09:23:28', '2013-01-08 09:23:28') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-08 09:23:28', '2013-01-08 09:23:28')  (68.4ms) COMMIT  (0.9ms) SET FOREIGN_KEY_CHECKS = 1  (0.8ms) BEGIN Ominous::Warning Load (1.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.0ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.6ms) 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.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.3ms) 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 Exists (0.8ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`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 AND `ominous_closers`.`id` = 1 ORDER BY position 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.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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (2.4ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.6ms) 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 (1.0ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.6ms) 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  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-08 09:23:28' WHERE `ominous_warning_closers`.`id` = 298486374  (0.7ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (2.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`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 ORDER BY position  (23.0ms) ROLLBACK  (1.2ms) BEGIN Ominous::Warning Load (0.3ms) 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  (0.4ms) ROLLBACK  (0.3ms) 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::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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 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` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 41ms (Views: 38.6ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (2.0ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-08 09:23:28', NULL, 'Foo', '2013-01-08 09:23:28')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/6 Completed 302 Found in 9ms (ActiveRecord: 1.1ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (34.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.8ms) 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  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (28.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (4.4ms) Completed 200 OK in 18ms (Views: 16.5ms | ActiveRecord: 0.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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.5ms)  (0.3ms) 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 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.9ms) Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.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 (40.6ms) Completed 200 OK in 51ms (Views: 45.7ms | ActiveRecord: 2.6ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.8ms) 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.5ms) 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 6ms (Views: 4.4ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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"=>"2"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.5ms) 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.4ms) Completed 200 OK in 16ms (Views: 8.3ms | ActiveRecord: 2.9ms)  (0.6ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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.5ms) 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.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.8ms)  (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"=>"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 Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.8ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 2.6ms)  (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.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-08 09:27:24', '2013-01-08 09:27:24') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-08 09:27:24', '2013-01-08 09:27:24') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-08 09:27:24', '2013-01-08 09:27:24', 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-08 09:27:24', '2013-01-08 09:27:24', 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-08 09:27:24', '2013-01-08 09:27:24', 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-08 09:27:24', '2013-01-08 09:27:24') Fixture Insert (0.2ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-08 09:27:24', '2013-01-08 09:27:24') 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-08 09:27:24', '2013-01-08 09:27:24') Fixture Insert (0.2ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-08 09:27:24', '2013-01-08 09:27:24')  (67.5ms) COMMIT  (0.4ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Ominous::Warning Load (0.8ms) 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  (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.3ms) BEGIN Ominous::Warning Load (0.5ms) 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 (0.6ms) SELECT DISTINCT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) 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.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 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 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.6ms) 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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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  (1.9ms) 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.6ms) 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  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-08 09:27:25' WHERE `ominous_warning_closers`.`id` = 298486374  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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 (1.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  (32.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) 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.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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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 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` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 50ms (Views: 47.8ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (1.8ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-08 09:27:25', NULL, 'Foo', '2013-01-08 09:27:25')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/7 Completed 302 Found in 10ms (ActiveRecord: 2.6ms)  (0.4ms) SELECT COUNT(*) FROM `things`  (39.5ms) ROLLBACK  (0.8ms) BEGIN Thing Load (2.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (31.8ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (4.3ms) Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.8ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (10.4ms) Completed 200 OK in 32ms (Views: 28.9ms | ActiveRecord: 1.7ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (2.9ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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.6ms) 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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.5ms) 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.8ms) Completed 200 OK in 12ms (Views: 8.9ms | ActiveRecord: 1.5ms)  (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.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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) 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.7ms) 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 (0.4ms) 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 (3.2ms) Completed 200 OK in 12ms (Views: 8.4ms | ActiveRecord: 1.6ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.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#show as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.4ms)  (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"=>"2"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.8ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.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 Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 1.1ms)  (0.9ms) 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 (0.5ms) 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 (3.7ms) Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 1.7ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (3.6ms) BEGIN Fixture Delete (1.1ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-08 09:32:02', '2013-01-08 09:32:02') Fixture Insert (0.8ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-08 09:32:02', '2013-01-08 09:32:02') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-08 09:32:02', '2013-01-08 09:32:02', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-08 09:32:02', '2013-01-08 09:32:02', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-08 09:32:02', '2013-01-08 09:32:02', 113629430) Fixture Delete (0.4ms) 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-08 09:32:02', '2013-01-08 09:32:02') 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-08 09:32:02', '2013-01-08 09:32:02') 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-08 09:32:02', '2013-01-08 09:32:02') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-08 09:32:02', '2013-01-08 09:32:02')  (58.0ms) COMMIT  (0.7ms) SET FOREIGN_KEY_CHECKS = 1  (1.0ms) BEGIN Ominous::Warning Load (1.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.6ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.7ms) 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.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.4ms) 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 (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.3ms) ROLLBACK  (0.3ms) 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.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 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.5ms) 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.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.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.9ms) 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  (1.2ms) 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.6ms) 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  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-08 09:32:02' WHERE `ominous_warning_closers`.`id` = 298486374  (0.6ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (37.1ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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  (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::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 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::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 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 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` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 36ms (Views: 33.8ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.8ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-08 09:32:03', NULL, 'Foo', '2013-01-08 09:32:03')  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/8 Completed 302 Found in 9ms (ActiveRecord: 1.1ms)  (0.4ms) SELECT COUNT(*) FROM `things`  (30.1ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.7ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (32.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (3.6ms) Completed 200 OK in 18ms (Views: 16.2ms | ActiveRecord: 0.5ms)  (0.3ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 11ms (Views: 7.6ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (5.7ms) Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.0ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.4ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (38.4ms) Completed 200 OK in 50ms (Views: 45.7ms | ActiveRecord: 2.3ms)  (0.5ms) ROLLBACK  (0.5ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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"=>"2"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.6ms) 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 (1.8ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.7ms) Completed 200 OK in 12ms (Views: 6.8ms | ActiveRecord: 3.1ms)  (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 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.3ms | ActiveRecord: 0.4ms)  (0.9ms) 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"=>"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 Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.8ms)  (1.2ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK  (0.6ms) 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 (1.1ms) 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 (0.4ms) 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 (3.1ms) Completed 200 OK in 11ms (Views: 7.7ms | ActiveRecord: 1.6ms)  (0.5ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (2.0ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (1.0ms) DELETE FROM `ominous_warnings` Fixture Insert (2.2ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-08 09:33:40', '2013-01-08 09:33:40') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-08 09:33:40', '2013-01-08 09:33:40') Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-08 09:33:40', '2013-01-08 09:33:40', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-08 09:33:40', '2013-01-08 09:33:40', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-08 09:33:40', '2013-01-08 09:33:40', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-08 09:33:40', '2013-01-08 09:33:40') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-08 09:33:40', '2013-01-08 09:33:40') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-08 09:33:40', '2013-01-08 09:33:40') Fixture Insert (1.0ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-08 09:33:40', '2013-01-08 09:33:40')  (39.0ms) COMMIT  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.6ms) 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.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.3ms) 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 Exists (0.6ms) SELECT DISTINCT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1  (1.1ms) 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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 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.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.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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.5ms) 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  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-08 09:33:41' WHERE `ominous_warning_closers`.`id` = 298486374  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (36.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.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (1.6ms) 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::Warning Exists (2.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.3ms) ROLLBACK  (0.3ms) 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::Warning Exists (1.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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 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` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 36ms (Views: 34.0ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-08 09:33:41', NULL, 'Foo', '2013-01-08 09:33:41')  (0.5ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/9 Completed 302 Found in 9ms (ActiveRecord: 1.5ms)  (0.4ms) SELECT COUNT(*) FROM `things`  (26.7ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.6ms)  (0.4ms) SELECT COUNT(*) FROM `things`   (40.7ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.8ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (3.5ms) Completed 200 OK in 25ms (Views: 22.4ms | ActiveRecord: 0.4ms)  (0.7ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 14ms (Views: 7.4ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.4ms) 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 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.1ms) Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) 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 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (3.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.6ms) 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 (36.1ms) Completed 200 OK in 48ms (Views: 41.3ms | ActiveRecord: 4.7ms)  (0.5ms) ROLLBACK  (0.2ms) 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 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 5ms (Views: 2.8ms | ActiveRecord: 0.5ms)  (1.2ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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"=>"2"} Thing Load (1.8ms) 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 (0.4ms) 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 (3.5ms) Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 3.3ms)  (0.4ms) ROLLBACK  (0.5ms) 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#show as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 2.0ms | 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.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#show as HTML Parameters: {"id"=>"2"} Thing Load (0.5ms) 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 Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.8ms)  (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.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.6ms) 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 5ms (Views: 4.1ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (0.3ms) BEGIN Fixture Delete (1.0ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-08 09:34:00', '2013-01-08 09:34:00') Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-08 09:34:00', '2013-01-08 09:34:00') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-08 09:34:00', '2013-01-08 09:34:00', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-08 09:34:00', '2013-01-08 09:34:00', 298486374) Fixture Insert (0.7ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-08 09:34:00', '2013-01-08 09:34:00', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-08 09:34:00', '2013-01-08 09:34:00') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-08 09:34:00', '2013-01-08 09:34:00') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-08 09:34:00', '2013-01-08 09:34:00') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-08 09:34:00', '2013-01-08 09:34:00')  (39.9ms) COMMIT  (0.2ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Ominous::Warning Load (0.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.4ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (1.3ms) 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.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.7ms) 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 Exists (0.9ms) 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.4ms) 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.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Closer Load (0.4ms) 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.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (1.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.4ms) 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.6ms) 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  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-08 09:34:01' WHERE `ominous_warning_closers`.`id` = 298486374  (0.6ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.9ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (29.8ms) ROLLBACK  (0.9ms) BEGIN Ominous::Warning Load (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (1.0ms) ROLLBACK  (1.0ms) BEGIN Ominous::Warning Load (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.5ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 (1.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (1.1ms) 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.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 37ms (Views: 34.7ms | ActiveRecord: 0.6ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) 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  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-08 09:34:01', NULL, 'Foo', '2013-01-08 09:34:01')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/10 Completed 302 Found in 12ms (ActiveRecord: 1.2ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (28.9ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.9ms) 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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) 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 6ms (ActiveRecord: 1.6ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (39.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (2.6ms) 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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (5.1ms) Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.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 Processing by ThingsController#index as HTML Thing Load (0.6ms) SELECT `things`.* FROM `things`  Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.6ms)  (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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.7ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (1.6ms) 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.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 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.1ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` 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 (40.6ms) Completed 200 OK in 50ms (Views: 46.0ms | ActiveRecord: 2.3ms)  (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.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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)  (0.5ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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 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 (1.7ms) 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.5ms) Completed 200 OK in 18ms (Views: 12.5ms | ActiveRecord: 3.0ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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: 3.0ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.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 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 Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.8ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) 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 (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 (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 6ms (ActiveRecord: 2.6ms)  (0.3ms) 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 (1.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.5ms)  (1.2ms) ROLLBACK Connecting to database specified by database.yml  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS  (1.3ms) SET FOREIGN_KEY_CHECKS = 0  (0.4ms) BEGIN Fixture Delete (1.0ms) DELETE FROM `ominous_warnings` Fixture Insert (0.9ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-08 09:39:45', '2013-01-08 09:39:45') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-08 09:39:45', '2013-01-08 09:39:45') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.8ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-08 09:39:45', '2013-01-08 09:39:45', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-08 09:39:45', '2013-01-08 09:39:45', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-08 09:39:45', '2013-01-08 09:39:45', 113629430) Fixture Delete (0.6ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-08 09:39:45', '2013-01-08 09:39:45') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-08 09:39:45', '2013-01-08 09:39:45') Fixture Delete (0.7ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-08 09:39:45', '2013-01-08 09:39:45') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-08 09:39:45', '2013-01-08 09:39:45')  (92.0ms) COMMIT  (2.3ms) SET FOREIGN_KEY_CHECKS = 1  (1.4ms) BEGIN Ominous::Warning Load (1.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.7ms) 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.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Closer Exists (5.4ms) 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.5ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Load (2.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.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 (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.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Ominous::WarningCloser Load (0.7ms) 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.6ms) 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.6ms) 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  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-08 09:39:46' WHERE `ominous_warning_closers`.`id` = 298486374  (0.6ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.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  (38.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) 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  (0.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.4ms) 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::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.5ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 38ms (Views: 36.1ms | ActiveRecord: 0.5ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) 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  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.7ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-08 09:39:46', NULL, 'Foo', '2013-01-08 09:39:46')  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/11 Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (0.5ms) SELECT COUNT(*) FROM `things`  (30.2ms) ROLLBACK  (0.4ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 6ms (ActiveRecord: 1.7ms)  (0.5ms) SELECT COUNT(*) FROM `things`   (31.7ms) ROLLBACK  (0.5ms) BEGIN Thing Load (0.7ms) 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (4.0ms) Completed 200 OK in 19ms (Views: 16.8ms | ActiveRecord: 0.5ms)  (0.4ms) ROLLBACK  (0.7ms) 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#index as HTML Thing Load (0.6ms) SELECT `things`.* FROM `things`  Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.6ms)  (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#new as HTML Rendered things/_form.html.erb (5.2ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (2.9ms) 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.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (1.4ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (34.6ms) Completed 200 OK in 45ms (Views: 40.4ms | ActiveRecord: 2.6ms)  (2.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (2.6ms) 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 (2.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (2.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 10ms (Views: 2.4ms | ActiveRecord: 2.5ms)  (2.9ms) ROLLBACK  (0.3ms) BEGIN Thing Load (1.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#show as HTML Parameters: {"id"=>"2"} Thing Load (5.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (1.1ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Warning Load (3.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Ominous::Closer Load (2.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 (8.7ms) Completed 200 OK in 26ms (Views: 9.8ms | ActiveRecord: 12.0ms)  (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 (1.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 1.0ms)  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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 (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (1.0ms) 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 Completed 200 OK in 6ms (Views: 1.9ms | ActiveRecord: 1.5ms)  (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.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.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.5ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 1.5ms)  (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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.4ms) 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 10ms (Views: 8.3ms | ActiveRecord: 0.4ms)  (0.4ms) ROLLBACK Connecting to database specified by database.yml  (7.4ms) SELECT @@FOREIGN_KEY_CHECKS  (0.4ms) SET FOREIGN_KEY_CHECKS = 0  (4.5ms) BEGIN Fixture Delete (2.8ms) DELETE FROM `ominous_warnings` Fixture Insert (0.6ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-08 09:47:46', '2013-01-08 09:47:46') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-08 09:47:46', '2013-01-08 09:47:46') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (2.9ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-08 09:47:46', '2013-01-08 09:47:46', 980190962) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2013-01-08 09:47:46', '2013-01-08 09:47:46', 298486374) Fixture Insert (0.5ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-08 09:47:46', '2013-01-08 09:47:46', 113629430) Fixture Delete (0.5ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-08 09:47:46', '2013-01-08 09:47:46') Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-08 09:47:46', '2013-01-08 09:47:46') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-08 09:47:46', '2013-01-08 09:47:46') Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-08 09:47:46', '2013-01-08 09:47:46')  (40.2ms) COMMIT  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.3ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.5ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (1.0ms) 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.4ms) ROLLBACK  (0.5ms) BEGIN Ominous::Warning Load (0.5ms) 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 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.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.7ms) 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 (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 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (2.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.8ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`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 (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 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 Ominous::WarningCloser Load (0.6ms) 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.6ms) 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.6ms) 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  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-08 09:47:46' WHERE `ominous_warning_closers`.`id` = 298486374  (0.6ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.3ms) 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.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position  (36.3ms) ROLLBACK  (0.4ms) BEGIN Ominous::Warning Load (0.6ms) 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  (0.4ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (1.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (1.9ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (2.0ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Ominous::Closer Load (6.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (2.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1  (0.4ms) ROLLBACK  (1.4ms) BEGIN Ominous::Warning Load (2.4ms) 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.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 36ms (Views: 34.1ms | ActiveRecord: 0.7ms)  (0.5ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.3ms) 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 (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-08 09:47:46', NULL, 'Foo', '2013-01-08 09:47:46')  (3.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/12 Completed 302 Found in 14ms (ActiveRecord: 4.0ms)  (0.6ms) SELECT COUNT(*) FROM `things`  (32.7ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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  (0.8ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (1.3ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 7ms (ActiveRecord: 2.8ms)  (0.6ms) SELECT COUNT(*) FROM `things`   (31.1ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.5ms) 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#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (3.6ms) Completed 200 OK in 21ms (Views: 18.6ms | ActiveRecord: 0.5ms)  (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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (1.1ms) SELECT `things`.* FROM `things`  Completed 200 OK in 10ms (Views: 7.1ms | ActiveRecord: 1.1ms)  (0.4ms) ROLLBACK  (0.2ms) 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#new as HTML Rendered things/_form.html.erb (4.5ms) Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.0ms)  (1.4ms) ROLLBACK  (0.3ms) 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 (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 ERROR: compiling _app_views_things_show_html_erb___324877753_92648680 RAISED /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:2: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '(' ...utput_buffer.safe_concat('

');@output_buffer.a... ... ^ /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:5: unknown regexp option - b /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:7: unterminated regexp meets end of file /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:7: syntax error, unexpected $end, expecting ')' Function body: def _app_views_things_show_html_erb___324877753_92648680(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "things/show";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.append= ( ominous_warnings # helper method called here rather than in layout so that tests can be easily made with and without it acting );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('

');@output_buffer.append= ( notice );@output_buffer.safe_concat('

Name: ');@output_buffer.append= ( @thing.name );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('

');@output_buffer.append= ( link_to 'Edit', edit_thing_path(@thing) );@output_buffer.safe_concat(' | ');@output_buffer.append= ( link_to 'Back', things_path );@output_buffer.safe_concat(' ');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:297:in `module_eval' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:297:in `compile' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:244:in `block in compile!' :10:in `synchronize' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:232:in `compile!' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:144:in `block in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:143:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:45:in `render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:18:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/renderer.rb:36:in `render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/renderer.rb:17:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:110:in `_render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/streaming.rb:225:in `_render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:103:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/renderers.rb:28:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/compatibility.rb:50:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:88:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rendering.rb:16:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/benchmark.rb:295:in `realtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/core_ext/benchmark.rb:5:in `ms' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:39:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/implicit_render.rb:5:in `send_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:167:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rendering.rb:10:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:425:in `_run__449313704__process_action__562057858__callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in `__run_callback' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:17:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rescue.rb:29:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/params_wrapper.rb:207:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:121:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:45:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:473:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:49:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:390:in `get' /home/rob/web/ominous/test/dummy/test/functional/things_controller_test.rb:24:in `test_show_when_thing_without_warning_but_warning_in_session' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:949:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:458:in `_run__521664055__setup__573704199__callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in `__run_callback' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/testing/setup_and_teardown.rb:35:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:780:in `map' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:563:in `each' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:895:in `each' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:884:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:21:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:27:in `run_once' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun' Completed 500 Internal Server Error in 51ms  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.6ms) 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 ERROR: compiling _app_views_things_show_html_erb___324877753_92648680 RAISED /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:2: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '(' ...utput_buffer.safe_concat('

');@output_buffer.a... ... ^ /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:5: unknown regexp option - b /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:7: unterminated regexp meets end of file /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:7: syntax error, unexpected $end, expecting ')' Function body: def _app_views_things_show_html_erb___324877753_92648680(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "things/show";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.append= ( ominous_warnings # helper method called here rather than in layout so that tests can be easily made with and without it acting );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('

');@output_buffer.append= ( notice );@output_buffer.safe_concat('

Name: ');@output_buffer.append= ( @thing.name );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('

');@output_buffer.append= ( link_to 'Edit', edit_thing_path(@thing) );@output_buffer.safe_concat(' | ');@output_buffer.append= ( link_to 'Back', things_path );@output_buffer.safe_concat(' ');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:297:in `module_eval' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:297:in `compile' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:244:in `block in compile!' :10:in `synchronize' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:232:in `compile!' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:144:in `block in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:143:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:45:in `render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:18:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/renderer.rb:36:in `render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/renderer.rb:17:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:110:in `_render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/streaming.rb:225:in `_render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:103:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/renderers.rb:28:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/compatibility.rb:50:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:88:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rendering.rb:16:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/benchmark.rb:295:in `realtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/core_ext/benchmark.rb:5:in `ms' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:39:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/implicit_render.rb:5:in `send_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:167:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rendering.rb:10:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:425:in `_run__449313704__process_action__562057858__callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in `__run_callback' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:17:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rescue.rb:29:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/params_wrapper.rb:207:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:121:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:45:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:473:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:49:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:390:in `get' /home/rob/web/ominous/test/dummy/test/functional/things_controller_test.rb:34:in `test_show_when_warning_in_session_marked_as_hide' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:949:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:458:in `_run__521664055__setup__573704199__callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in `__run_callback' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/testing/setup_and_teardown.rb:35:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:780:in `map' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:563:in `each' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:895:in `each' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:884:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:21:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:27:in `run_once' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun' Completed 500 Internal Server Error in 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 Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 ERROR: compiling _app_views_things_show_html_erb___324877753_92648680 RAISED /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:2: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '(' ...utput_buffer.safe_concat('

');@output_buffer.a... ... ^ /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:5: unknown regexp option - b /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:7: unterminated regexp meets end of file /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:7: syntax error, unexpected $end, expecting ')' Function body: def _app_views_things_show_html_erb___324877753_92648680(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "things/show";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.append= ( ominous_warnings # helper method called here rather than in layout so that tests can be easily made with and without it acting );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('

');@output_buffer.append= ( notice );@output_buffer.safe_concat('

Name: ');@output_buffer.append= ( @thing.name );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('

');@output_buffer.append= ( link_to 'Edit', edit_thing_path(@thing) );@output_buffer.safe_concat(' | ');@output_buffer.append= ( link_to 'Back', things_path );@output_buffer.safe_concat(' ');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:297:in `module_eval' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:297:in `compile' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:244:in `block in compile!' :10:in `synchronize' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:232:in `compile!' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:144:in `block in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:143:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:45:in `render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:18:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/renderer.rb:36:in `render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/renderer.rb:17:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:110:in `_render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/streaming.rb:225:in `_render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:103:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/renderers.rb:28:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/compatibility.rb:50:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:88:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rendering.rb:16:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/benchmark.rb:295:in `realtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/core_ext/benchmark.rb:5:in `ms' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:39:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/implicit_render.rb:5:in `send_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:167:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rendering.rb:10:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:425:in `_run__449313704__process_action__562057858__callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in `__run_callback' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:17:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rescue.rb:29:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/params_wrapper.rb:207:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:121:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:45:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:473:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:49:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:390:in `get' /home/rob/web/ominous/test/dummy/test/functional/things_controller_test.rb:17:in `test_show_with_warning' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:949:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:458:in `_run__521664055__setup__573704199__callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in `__run_callback' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/testing/setup_and_teardown.rb:35:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:780:in `map' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:563:in `each' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:895:in `each' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:884:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:21:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:27:in `run_once' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun' Completed 500 Internal Server Error in 5ms  (0.4ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.8ms) 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.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 ERROR: compiling _app_views_things_show_html_erb___324877753_92648680 RAISED /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:2: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '(' ...utput_buffer.safe_concat('

');@output_buffer.a... ... ^ /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:5: unknown regexp option - b /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:7: unterminated regexp meets end of file /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:7: syntax error, unexpected $end, expecting ')' Function body: def _app_views_things_show_html_erb___324877753_92648680(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "things/show";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.append= ( ominous_warnings # helper method called here rather than in layout so that tests can be easily made with and without it acting );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('

');@output_buffer.append= ( notice );@output_buffer.safe_concat('

Name: ');@output_buffer.append= ( @thing.name );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('

');@output_buffer.append= ( link_to 'Edit', edit_thing_path(@thing) );@output_buffer.safe_concat(' | ');@output_buffer.append= ( link_to 'Back', things_path );@output_buffer.safe_concat(' ');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:297:in `module_eval' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:297:in `compile' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:244:in `block in compile!' :10:in `synchronize' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:232:in `compile!' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:144:in `block in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:143:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:45:in `render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:18:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/renderer.rb:36:in `render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/renderer.rb:17:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:110:in `_render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/streaming.rb:225:in `_render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:103:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/renderers.rb:28:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/compatibility.rb:50:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:88:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rendering.rb:16:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/benchmark.rb:295:in `realtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/core_ext/benchmark.rb:5:in `ms' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:39:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/implicit_render.rb:5:in `send_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:167:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rendering.rb:10:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:425:in `_run__449313704__process_action__562057858__callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in `__run_callback' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:17:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rescue.rb:29:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/params_wrapper.rb:207:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:121:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:45:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:473:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:49:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:390:in `get' /home/rob/web/ominous/test/dummy/test/functional/things_controller_test.rb:11:in `test_show_without_warning' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:949:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:458:in `_run__521664055__setup__573704199__callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in `__run_callback' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/testing/setup_and_teardown.rb:35:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:780:in `map' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:563:in `each' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:895:in `each' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:884:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:21:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:27:in `run_once' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun' Completed 500 Internal Server Error in 3ms  (0.4ms) 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#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 ERROR: compiling _app_views_things_show_html_erb___324877753_92648680 RAISED /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:2: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '(' ...utput_buffer.safe_concat('

');@output_buffer.a... ... ^ /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:5: unknown regexp option - b /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:7: unterminated regexp meets end of file /home/rob/web/ominous/test/dummy/app/views/things/show.html.erb:7: syntax error, unexpected $end, expecting ')' Function body: def _app_views_things_show_html_erb___324877753_92648680(local_assigns, output_buffer) _old_virtual_path, @virtual_path = @virtual_path, "things/show";_old_output_buffer = @output_buffer;;@output_buffer = output_buffer || ActionView::OutputBuffer.new;@output_buffer.append= ( ominous_warnings # helper method called here rather than in layout so that tests can be easily made with and without it acting );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('

');@output_buffer.append= ( notice );@output_buffer.safe_concat('

Name: ');@output_buffer.append= ( @thing.name );@output_buffer.safe_concat(' ');@output_buffer.safe_concat('

');@output_buffer.append= ( link_to 'Edit', edit_thing_path(@thing) );@output_buffer.safe_concat(' | ');@output_buffer.append= ( link_to 'Back', things_path );@output_buffer.safe_concat(' ');@output_buffer.to_s ensure @virtual_path, @output_buffer = _old_virtual_path, _old_output_buffer end Backtrace: /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:297:in `module_eval' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:297:in `compile' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:244:in `block in compile!' :10:in `synchronize' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:232:in `compile!' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:144:in `block in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/template.rb:143:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:45:in `render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/template_renderer.rb:18:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/renderer.rb:36:in `render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_view/renderer/renderer.rb:17:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:110:in `_render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/streaming.rb:225:in `_render_template' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:103:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/renderers.rb:28:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/compatibility.rb:50:in `render_to_body' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:88:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rendering.rb:16:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/core_ext/benchmark.rb:5:in `block in ms' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/benchmark.rb:295:in `realtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/core_ext/benchmark.rb:5:in `ms' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:40:in `block in render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:39:in `render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/implicit_render.rb:10:in `default_render' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/implicit_render.rb:5:in `send_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:167:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rendering.rb:10:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:18:in `block in process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:425:in `_run__449313704__process_action__562057858__callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in `__run_callback' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/callbacks.rb:17:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/rescue.rb:29:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `block in instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/notifications.rb:123:in `instrument' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/instrumentation.rb:29:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/params_wrapper.rb:207:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activerecord-3.2.9/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/base.rb:121:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/abstract_controller/rendering.rb:45:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:473:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:49:in `process' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/actionpack-3.2.9/lib/action_controller/test_case.rb:390:in `get' /home/rob/web/ominous/test/dummy/test/functional/things_controller_test.rb:44:in `test_triggering_warning_does_not_over_ride_existing_flags' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:949:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit/testcase.rb:17:in `run' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:458:in `_run__521664055__setup__573704199__callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:405:in `__run_callback' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/callbacks.rb:81:in `run_callbacks' /home/rob/.rvm/gems/ruby-1.9.3-p286@ominous/gems/activesupport-3.2.9/lib/active_support/testing/setup_and_teardown.rb:35:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:787:in `block in _run_suite' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:780:in `map' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:780:in `_run_suite' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:565:in `block in _run_suites' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:563:in `each' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:563:in `_run_suites' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:746:in `_run_anything' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:909:in `run_tests' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:896:in `block in _run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:895:in `each' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:895:in `_run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/minitest/unit.rb:884:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:21:in `run' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:27:in `run_once' /home/rob/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun' Completed 500 Internal Server Error in 5ms  (0.4ms) ROLLBACK  (0.5ms) 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.3ms) 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.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 1.1ms)  (5.5ms) ROLLBACK  (1.0ms) 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 Ominous::Warning Exists (0.4ms) 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 5ms (Views: 3.6ms | 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.4ms) BEGIN Fixture Delete (0.9ms) DELETE FROM `ominous_warnings` Fixture Insert (0.5ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2013-01-08 09:48:46', '2013-01-08 09:48:46') Fixture Insert (0.4ms) INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2013-01-08 09:48:46', '2013-01-08 09:48:46') Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2013-01-08 09:48:46', '2013-01-08 09:48:46', 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-08 09:48:46', '2013-01-08 09:48:46', 298486374) Fixture Insert (0.4ms) INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2013-01-08 09:48:46', '2013-01-08 09:48:46', 113629430) Fixture Delete (0.4ms) DELETE FROM `ominous_closers` Fixture Insert (0.4ms) INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2013-01-08 09:48:46', '2013-01-08 09:48:46') Fixture Insert (0.6ms) INSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2013-01-08 09:48:46', '2013-01-08 09:48:46') Fixture Delete (0.4ms) DELETE FROM `things` Fixture Insert (0.4ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2013-01-08 09:48:46', '2013-01-08 09:48:46') Fixture Insert (0.3ms) INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2013-01-08 09:48:46', '2013-01-08 09:48:46')  (45.9ms) COMMIT  (0.3ms) SET FOREIGN_KEY_CHECKS = 1  (0.2ms) BEGIN Ominous::Warning Load (0.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  (0.4ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.7ms) 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.5ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) 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.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Closer Exists (0.9ms) 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.4ms) 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  (1.6ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.4ms) 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 (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.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position 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.4ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2) Ominous::WarningCloser Exists (0.7ms) 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  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2013-01-08 09:48:46' WHERE `ominous_warning_closers`.`id` = 298486374  (5.6ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)  (0.6ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (1.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 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  (38.3ms) ROLLBACK  (0.3ms) BEGIN Ominous::Warning Load (0.5ms) 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  (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.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1 Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1  (0.5ms) 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::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' 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 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` = 1 LIMIT 1 Rendered text template (0.0ms) Completed 200 OK in 37ms (Views: 35.1ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.8ms) 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.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.6ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.3ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2013-01-08 09:48:46', NULL, 'Foo', '2013-01-08 09:48:46')  (0.6ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/13 Completed 302 Found in 8ms (ActiveRecord: 1.3ms)  (1.4ms) SELECT COUNT(*) FROM `things`  (27.8ms) ROLLBACK  (0.3ms) 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 (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM `things` Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.3ms)  (0.4ms) SELECT COUNT(*) FROM `things`   (32.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Load (2.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Rendered things/_form.html.erb (4.0ms) Completed 200 OK in 21ms (Views: 19.3ms | ActiveRecord: 0.4ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (2.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.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.5ms) SELECT `things`.* FROM `things`  Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.5ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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#new as HTML Rendered things/_form.html.erb (3.1ms) Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.0ms)  (0.3ms) 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.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.6ms) 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 (0.6ms) SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (34.7ms) Completed 200 OK in 46ms (Views: 41.1ms | ActiveRecord: 2.1ms)  (0.4ms) ROLLBACK  (0.2ms) BEGIN Thing Load (1.2ms) 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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.3ms) 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"=>"2"} Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.3ms) 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.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 (4.1ms) Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 1.3ms)  (0.4ms) ROLLBACK  (1.1ms) BEGIN Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.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.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms)  (0.3ms) ROLLBACK  (0.2ms) BEGIN Thing Load (0.6ms) 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.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 (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1 Ominous::Warning Exists (0.3ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1 Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 1.9ms)  (0.3ms) ROLLBACK  (0.3ms) BEGIN Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1 Thing Load (1.1ms) 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#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1  (0.3ms) SAVEPOINT active_record_1  (0.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 0.9ms)  (0.3ms) 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.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1 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 Connecting to database specified by database.yml  (3.8ms) begin transaction Fixture Delete (1.1ms) DELETE FROM "ominous_warnings" Fixture Insert (9.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-02-18 10:54:42', '2013-02-18 10:54:42') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-02-18 10:54:42', '2013-02-18 10:54:42') Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-02-18 10:54:42', '2013-02-18 10:54:42', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-02-18 10:54:42', '2013-02-18 10:54:42', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-02-18 10:54:42', '2013-02-18 10:54:42', 113629430) Fixture Delete (0.6ms) DELETE FROM "ominous_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-02-18 10:54:42', '2013-02-18 10:54:42') Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-02-18 10:54:42', '2013-02-18 10:54:42') Fixture Delete (0.5ms) DELETE FROM "things" Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-02-18 10:54:42', '2013-02-18 10:54:42') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-02-18 10:54:42', '2013-02-18 10:54:42')  (145.0ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.9ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Exists (6.0ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.5ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-02-18 10:54:43.407768' WHERE "ominous_warning_closers"."id" = 298486374  (0.4ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)  (0.0ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position  (0.5ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] Rendered text template (0.0ms) Completed 200 OK in 104ms (Views: 103.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things"  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.1ms) SAVEPOINT active_record_1 SQL (4.0ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 18 Feb 2013 10:54:43 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Mon, 18 Feb 2013 10:54:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 10ms (ActiveRecord: 4.2ms)  (0.2ms) SELECT COUNT(*) FROM "things"   (0.5ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things"  Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 6ms (ActiveRecord: 1.2ms)  (0.2ms) SELECT COUNT(*) FROM "things"  (0.4ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Rendered things/_form.html.erb (3.8ms) Completed 200 OK in 66ms (Views: 63.0ms | ActiveRecord: 0.1ms)  (0.0ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#new as HTML Rendered things/_form.html.erb (3.6ms) Completed 200 OK in 12ms (Views: 11.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (66.7ms) Completed 200 OK in 77ms (Views: 74.2ms | ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.8ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.1ms) Completed 200 OK in 11ms (Views: 8.5ms | ActiveRecord: 1.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 8ms (Views: 3.4ms | ActiveRecord: 0.9ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things" Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.8ms) begin transaction Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-02-18 11:22:23', '2013-02-18 11:22:23') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-02-18 11:22:23', '2013-02-18 11:22:23') Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-02-18 11:22:23', '2013-02-18 11:22:23', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-02-18 11:22:23', '2013-02-18 11:22:23', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-02-18 11:22:23', '2013-02-18 11:22:23', 113629430) Fixture Delete (0.5ms) DELETE FROM "ominous_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-02-18 11:22:23', '2013-02-18 11:22:23') Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-02-18 11:22:23', '2013-02-18 11:22:23') Fixture Delete (0.5ms) DELETE FROM "things" Fixture Insert (1.9ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-02-18 11:22:23', '2013-02-18 11:22:23') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-02-18 11:22:23', '2013-02-18 11:22:23')  (133.0ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.4ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] Ominous::Closer Load (2.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Ominous::WarningCloser Load (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.2ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-02-18 11:22:23.809329' WHERE "ominous_warning_closers"."id" = 298486374  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)  (0.1ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position  (0.6ms) rollback transaction  (0.2ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] Rendered text template (0.0ms) Completed 200 OK in 36ms (Views: 34.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (3.8ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-02-18 11:22:23.897089' WHERE "ominous_closers"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.9ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things" Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.1ms) SAVEPOINT active_record_1 SQL (5.6ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 18 Feb 2013 11:22:23 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Mon, 18 Feb 2013 11:22:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 12ms (ActiveRecord: 5.8ms)  (4.4ms) SELECT COUNT(*) FROM "things"  (0.3ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things" Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (3.6ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 6ms (ActiveRecord: 4.0ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.2ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Rendered things/_form.html.erb (8.1ms) Completed 200 OK in 81ms (Views: 76.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things"  Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#new as HTML Rendered things/_form.html.erb (3.1ms) Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (1.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (44.5ms) Completed 200 OK in 55ms (Views: 51.0ms | ActiveRecord: 0.6ms)  (0.2ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (6.7ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.3ms) Completed 200 OK in 25ms (Views: 16.3ms | ActiveRecord: 7.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (1.8ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 4ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (3.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things"  Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (3.7ms) begin transaction Fixture Delete (3.9ms) DELETE FROM "ominous_warnings" Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-02-18 11:22:36', '2013-02-18 11:22:36') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-02-18 11:22:36', '2013-02-18 11:22:36') Fixture Delete (0.1ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-02-18 11:22:37', '2013-02-18 11:22:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-02-18 11:22:37', '2013-02-18 11:22:37', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-02-18 11:22:37', '2013-02-18 11:22:37', 113629430) Fixture Delete (0.1ms) DELETE FROM "ominous_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-02-18 11:22:37', '2013-02-18 11:22:37') Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-02-18 11:22:37', '2013-02-18 11:22:37') Fixture Delete (0.5ms) DELETE FROM "things" Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-02-18 11:22:37', '2013-02-18 11:22:37') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-02-18 11:22:37', '2013-02-18 11:22:37')  (119.7ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (1.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (1.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] Ominous::Closer Load (1.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-02-18 11:22:37.477554' WHERE "ominous_warning_closers"."id" = 298486374  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)  (0.0ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (1.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position  (0.5ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1  (0.4ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Ominous::Warning Load (0.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] Rendered text template (0.0ms) Completed 200 OK in 80ms (Views: 77.6ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.9ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-02-18 11:22:37.605460' WHERE "ominous_closers"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (1.9ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things" Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 18 Feb 2013 11:22:37 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Mon, 18 Feb 2013 11:22:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 9ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (0.4ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things" Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.7ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Rendered things/_form.html.erb (4.1ms) Completed 200 OK in 47ms (Views: 45.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things"  Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#new as HTML Rendered things/_form.html.erb (4.1ms) Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (65.5ms) Completed 200 OK in 82ms (Views: 79.7ms | ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.6ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.9ms) Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.8ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1  (3.3ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 10ms (ActiveRecord: 3.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things"  Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.9ms) begin transaction Fixture Delete (1.0ms) DELETE FROM "ominous_warnings" Fixture Insert (0.7ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-02-18 11:22:49', '2013-02-18 11:22:49') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-02-18 11:22:49', '2013-02-18 11:22:49') Fixture Delete (0.5ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-02-18 11:22:49', '2013-02-18 11:22:49', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-02-18 11:22:49', '2013-02-18 11:22:49', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-02-18 11:22:49', '2013-02-18 11:22:49', 113629430) Fixture Delete (0.5ms) DELETE FROM "ominous_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-02-18 11:22:49', '2013-02-18 11:22:49') Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-02-18 11:22:49', '2013-02-18 11:22:49') Fixture Delete (0.5ms) DELETE FROM "things" Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-02-18 11:22:49', '2013-02-18 11:22:49') Fixture Insert (0.0ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-02-18 11:22:49', '2013-02-18 11:22:49')  (177.4ms) commit transaction  (0.3ms) begin transaction Ominous::Warning Load (0.9ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (2.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Ominous::WarningCloser Load (0.3ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (3.3ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-02-18 11:22:50.204064' WHERE "ominous_warning_closers"."id" = 298486374  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)  (0.0ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (2.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position  (0.4ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1  (0.0ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] Rendered text template (0.0ms) Completed 200 OK in 42ms (Views: 40.6ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.8ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-02-18 11:22:50.295013' WHERE "ominous_closers"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things" Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 18 Feb 2013 11:22:50 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Mon, 18 Feb 2013 11:22:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 9ms (ActiveRecord: 1.6ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (0.7ms) rollback transaction  (0.1ms) begin transaction Thing Load (2.6ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things" Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 3ms (ActiveRecord: 0.4ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Rendered things/_form.html.erb (4.3ms) Completed 200 OK in 48ms (Views: 46.9ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things"  Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#new as HTML Rendered things/_form.html.erb (3.2ms) Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (42.1ms) Completed 200 OK in 52ms (Views: 48.5ms | ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Warning Load (1.6ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.0ms) Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 2.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.7ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.7ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 11ms (Views: 1.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.7ms) SELECT "things".* FROM "things"  Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.7ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (1.7ms) begin transaction Fixture Delete (1.6ms) DELETE FROM "ominous_warnings" Fixture Insert (0.9ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-05-01 12:44:54', '2013-05-01 12:44:54') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-05-01 12:44:54', '2013-05-01 12:44:54') Fixture Delete (0.8ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-05-01 12:44:54', '2013-05-01 12:44:54', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-05-01 12:44:54', '2013-05-01 12:44:54', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-05-01 12:44:54', '2013-05-01 12:44:54', 113629430) Fixture Delete (0.6ms) DELETE FROM "ominous_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-05-01 12:44:54', '2013-05-01 12:44:54') Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-05-01 12:44:54', '2013-05-01 12:44:54') Fixture Delete (0.5ms) DELETE FROM "things" Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-05-01 12:44:54', '2013-05-01 12:44:54') Fixture Insert (0.2ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-05-01 12:44:54', '2013-05-01 12:44:54')  (304.2ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (0.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.5ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (1.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Exists (13.6ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.7ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-05-01 12:44:55.450988' WHERE "ominous_warning_closers"."id" = 298486374  (0.2ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)  (0.1ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.9ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position  (1.4ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] Rendered text template (0.0ms) Completed 200 OK in 119ms (Views: 112.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.5ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-05-01 12:44:55.852547' WHERE "ominous_closers"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things" Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 01 May 2013 12:44:55 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Wed, 01 May 2013 12:44:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 10ms (ActiveRecord: 1.6ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (0.6ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things" Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 4ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (1.4ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Rendered things/_form.html.erb (6.1ms) Completed 200 OK in 49ms (Views: 46.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things"  Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.8ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.4ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (64.5ms) Completed 200 OK in 74ms (Views: 72.0ms | ActiveRecord: 0.7ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Warning Load (1.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (2.7ms) Completed 200 OK in 10ms (Views: 6.0ms | ActiveRecord: 2.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (1.9ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 1.9ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (2.4ms) SELECT "things".* FROM "things"  Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 2.4ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (6.0ms) begin transaction Fixture Delete (3.5ms) DELETE FROM "ominous_warnings" Fixture Insert (5.5ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-05-01 12:50:41', '2013-05-01 12:50:41') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-05-01 12:50:41', '2013-05-01 12:50:41') Fixture Delete (0.6ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-05-01 12:50:41', '2013-05-01 12:50:41', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-05-01 12:50:41', '2013-05-01 12:50:41', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-05-01 12:50:41', '2013-05-01 12:50:41', 113629430) Fixture Delete (1.5ms) DELETE FROM "ominous_closers" Fixture Insert (0.2ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-05-01 12:50:41', '2013-05-01 12:50:41') Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-05-01 12:50:41', '2013-05-01 12:50:41') Fixture Delete (0.6ms) DELETE FROM "things" Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-05-01 12:50:41', '2013-05-01 12:50:41') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-05-01 12:50:41', '2013-05-01 12:50:41')  (186.4ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.3ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Exists (0.3ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (5.2ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Ominous::WarningCloser Load (3.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) Ominous::WarningCloser Exists (5.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-05-01 12:50:42.019467' WHERE "ominous_warning_closers"."id" = 298486374  (5.3ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)  (0.1ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position  (0.6ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] Rendered text template (0.0ms) Completed 200 OK in 89ms (Views: 84.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (1.9ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-05-01 12:50:42.255525' WHERE "ominous_closers"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.2ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (2.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things" Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 01 May 2013 12:50:42 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Wed, 01 May 2013 12:50:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 29ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (5.5ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (7.4ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SELECT COUNT(*) FROM "things" Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (8.4ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 29ms (ActiveRecord: 8.6ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.3ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Rendered things/_form.html.erb (52.3ms) Completed 200 OK in 208ms (Views: 206.3ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction Thing Load (13.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things"  Completed 200 OK in 44ms (Views: 38.2ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#new as HTML Rendered things/_form.html.erb (21.7ms) Completed 200 OK in 31ms (Views: 25.8ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (149.3ms) Completed 200 OK in 187ms (Views: 185.1ms | ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (7.8ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 16ms (Views: 14.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (10.1ms) Completed 200 OK in 41ms (Views: 31.9ms | ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 18ms (Views: 7.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1  (11.9ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 17ms (ActiveRecord: 12.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things"  Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.2ms)  (0.2ms) rollback transaction Connecting to database specified by database.yml  (2.0ms) begin transaction Fixture Delete (1.3ms) DELETE FROM "ominous_warnings" Fixture Insert (1.0ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-05-01 14:17:34', '2013-05-01 14:17:34') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-05-01 14:17:34', '2013-05-01 14:17:34') Fixture Delete (0.6ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-05-01 14:17:34', '2013-05-01 14:17:34', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2013-05-01 14:17:34', '2013-05-01 14:17:34', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2013-05-01 14:17:34', '2013-05-01 14:17:34', 113629430) Fixture Delete (0.5ms) DELETE FROM "ominous_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (1, 'closer_one', 'close_and_dismiss_warning', 'Closer one', 'Click to close', '2013-05-01 14:17:34', '2013-05-01 14:17:34') Fixture Insert (0.1ms) INSERT INTO "ominous_closers" ("id", "name", "url", "closure_method", "message", "link_text", "created_at", "updated_at") VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', 'Visit site', 'Click here to redirect', '2013-05-01 14:17:34', '2013-05-01 14:17:34') Fixture Delete (0.5ms) DELETE FROM "things" Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-05-01 14:17:34', '2013-05-01 14:17:34') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-05-01 14:17:34', '2013-05-01 14:17:34')  (195.1ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (1.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Exists (0.3ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (1.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-05-01 14:17:34.656850' WHERE "ominous_warning_closers"."id" = 298486374  (0.1ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)  (0.1ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position  (0.6ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] Rendered text template (0.0ms) Completed 200 OK in 38ms (Views: 35.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (1.0ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-05-01 14:17:34.754677' WHERE "ominous_closers"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.5ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (3.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things" Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 01 May 2013 14:17:34 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Wed, 01 May 2013 14:17:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 9ms (ActiveRecord: 2.0ms)  (0.2ms) SELECT COUNT(*) FROM "things"  (0.5ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "things" Processing by ThingsController#destroy as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.9ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.5ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.5ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#edit as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Rendered things/_form.html.erb (5.2ms) Completed 200 OK in 43ms (Views: 41.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things"  Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.2ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.5ms) Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (1.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (42.4ms) Completed 200 OK in 50ms (Views: 47.9ms | ActiveRecord: 0.5ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (4.7ms) Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things"  Completed 200 OK in 15ms (Views: 13.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (4.3ms) begin transaction Fixture Delete (2.3ms) DELETE FROM "ominous_warnings" Fixture Insert (0.9ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2013-07-29 13:33:17', '2013-07-29 13:33:17') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-07-29 13:33:17', '2013-07-29 13:33:17') Fixture Delete (0.6ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-07-29 13:33:17', '2013-07-29 13:33:17', 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-07-29 13:33:17', '2013-07-29 13:33:17', 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-07-29 13:33:17', '2013-07-29 13:33:17', 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-07-29 13:33:17', '2013-07-29 13:33:17') 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-07-29 13:33:17', '2013-07-29 13:33:17') 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-07-29 13:33:17', '2013-07-29 13:33:17') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-07-29 13:33:17', '2013-07-29 13:33:17')  (249.1ms) commit transaction  (0.2ms) begin transaction Ominous::Warning Load (7.5ms) 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.3ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (1.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.4ms) 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Exists (0.2ms) SELECT DISTINCT 1 AS one FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 LIMIT 1  (0.1ms) rollback transaction  (0.3ms) 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.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.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.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Ominous::WarningCloser Load (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.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.8ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-07-29 13:33:17.556489' 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  (2.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.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.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.0ms) 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]] 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 15ms (Views: 13.2ms | ActiveRecord: 0.1ms)  (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.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (1.1ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-07-29 13:33:17.643552' WHERE "ominous_closers"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (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.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.8ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 29 Jul 2013 13:33:17 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Mon, 29 Jul 2013 13:33:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 8ms (ActiveRecord: 1.9ms)  (0.1ms) 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]]  (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 (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.3ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.7ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.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#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 38ms (Views: 35.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#index as HTML Thing Load (1.1ms) SELECT "things".* FROM "things"  Completed 200 OK in 9ms (Views: 6.4ms | ActiveRecord: 1.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 (3.3ms) 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.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.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 (38.1ms) Completed 200 OK in 47ms (Views: 44.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.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#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.2ms) Completed 200 OK in 8ms (Views: 6.0ms | 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.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.2ms) 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.2ms) 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 9ms (Views: 5.2ms | ActiveRecord: 0.2ms)  (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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.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.1ms) SELECT "things".* FROM "things"  Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (3.8ms) begin transaction Fixture Delete (2.9ms) 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-07-29 13:34:55', '2013-07-29 13:34:55') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2013-07-29 13:34:55', '2013-07-29 13:34:55') Fixture Delete (0.6ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2013-07-29 13:34:55', '2013-07-29 13:34: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-07-29 13:34:55', '2013-07-29 13:34: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-07-29 13:34:55', '2013-07-29 13:34:55', 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-07-29 13:34:55', '2013-07-29 13:34: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-07-29 13:34:55', '2013-07-29 13:34:55') Fixture Delete (0.7ms) DELETE FROM "things" Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2013-07-29 13:34:55', '2013-07-29 13:34:55') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2013-07-29 13:34:55', '2013-07-29 13:34:55')  (180.0ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (7.9ms) 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.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]]  (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.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.2ms) 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.5ms) 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.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.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.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.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.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.5ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2013-07-29 13:34:55.697425' 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.8ms) rollback transaction  (0.4ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.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" = '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.0ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (1.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] 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 17ms (Views: 15.0ms | ActiveRecord: 0.1ms)  (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.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (1.0ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2013-07-29 13:34:55.795887' WHERE "ominous_closers"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_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.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) 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.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", Mon, 29 Jul 2013 13:34:55 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Mon, 29 Jul 2013 13:34:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 8ms (ActiveRecord: 1.8ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (0.7ms) 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.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.3ms) SELECT COUNT(*) FROM "things"   (2.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#edit as HTML Parameters: {"id"=>"1"} Thing Load (1.6ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Rendered things/_form.html.erb (2.7ms) Completed 200 OK in 35ms (Views: 32.0ms | ActiveRecord: 1.6ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things"  Completed 200 OK in 5ms (Views: 3.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#new as HTML Rendered things/_form.html.erb (1.6ms) Completed 200 OK in 5ms (Views: 4.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.3ms) 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 (30.8ms) Completed 200 OK in 40ms (Views: 36.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 2ms (Views: 1.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#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 (1.7ms) Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms)  (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.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 2ms (Views: 1.3ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#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 5ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.2ms) 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#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.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]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things"  Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (6.1ms) begin transaction Fixture Delete (4.9ms) DELETE FROM "ominous_warnings" Fixture Insert (3.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 09:08:12', '2014-08-26 09:08:12') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 09:08:12', '2014-08-26 09:08:12') Fixture Delete (0.2ms) 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, '2014-08-26 09:08:12', '2014-08-26 09:08:12', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 09:08:12', '2014-08-26 09:08:12', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 09:08:12', '2014-08-26 09:08:12', 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', '2014-08-26 09:08:12', '2014-08-26 09:08:12') 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', '2014-08-26 09:08:12', '2014-08-26 09:08:12') 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', '2014-08-26 09:08:12', '2014-08-26 09:08:12') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 09:08:12', '2014-08-26 09:08:12')  (173.3ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (6.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.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.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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Exists (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.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.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.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.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.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.0ms) 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  (0.6ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 09:08:12.969737' WHERE "ominous_warning_closers"."id" = 298486374  (0.2ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)  (0.1ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.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.9ms) 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.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.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 37ms (Views: 35.2ms | ActiveRecord: 0.1ms)  (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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 09:08:13.083576' WHERE "ominous_closers"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE 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.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (26.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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.8ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 09:08:13 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 09:08:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 8ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.8ms) 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]]  (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 (3.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 11ms (ActiveRecord: 4.1ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (1.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.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 (2.4ms) Completed 200 OK in 12ms (Views: 10.6ms | 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.1ms) SELECT "things".* FROM "things" Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (2.9ms) 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#new as HTML Rendered things/_form.html.erb (6.9ms) Completed 200 OK in 13ms (Views: 12.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.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.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 (47.9ms) Completed 200 OK in 54ms (Views: 51.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.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 22ms (Views: 21.2ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (6.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"=>"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 (8.5ms) Completed 200 OK in 15ms (Views: 11.2ms | ActiveRecord: 0.5ms)  (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#show as HTML Parameters: {"id"=>"1"} Thing Load (0.8ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.8ms)  (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.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.2ms) 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 40ms (Views: 37.5ms | 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#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.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 35ms (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 (4.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (12.1ms) SELECT "things".* FROM "things" Completed 200 OK in 16ms (Views: 3.5ms | ActiveRecord: 12.1ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (10.4ms) begin transaction Fixture Delete (4.7ms) DELETE FROM "ominous_warnings" Fixture Insert (1.4ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 09:09:14', '2014-08-26 09:09:14') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 09:09:14', '2014-08-26 09:09:14') Fixture Delete (0.9ms) 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, '2014-08-26 09:09:14', '2014-08-26 09:09:14', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 09:09:14', '2014-08-26 09:09:14', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 09:09:14', '2014-08-26 09:09:14', 113629430) Fixture Delete (0.9ms) 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', '2014-08-26 09:09:14', '2014-08-26 09:09:14') 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', '2014-08-26 09:09:14', '2014-08-26 09:09:14') Fixture Delete (1.4ms) DELETE FROM "things" Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 09:09:14', '2014-08-26 09:09:14') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 09:09:14', '2014-08-26 09:09:14')  (264.5ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (5.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.2ms) 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.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (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]] 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.6ms) 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.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = 1 ORDER BY position LIMIT 1  (0.1ms) rollback transaction  (0.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.0ms) SAVEPOINT active_record_1 SQL (1.4ms) 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.6ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 09:09:14.958208' 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.8ms) 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.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.1ms) Completed 200 OK in 39ms (Views: 37.3ms | ActiveRecord: 0.1ms)  (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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (1.4ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 09:09:15.059759' WHERE "ominous_closers"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) 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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE 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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.3ms) 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.5ms) 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", Tue, 26 Aug 2014 09:09:15 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 09:09:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 8ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.8ms) 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.1ms) SAVEPOINT active_record_1 SQL (1.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 5ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (0.8ms) 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 (2.6ms) Completed 200 OK in 15ms (Views: 14.3ms | 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.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 5ms (Views: 3.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (27.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#new as HTML Rendered things/_form.html.erb (1.6ms) Completed 200 OK in 4ms (Views: 3.8ms | 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.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 (32.3ms) Completed 200 OK in 38ms (Views: 36.5ms | ActiveRecord: 0.6ms)  (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"]] Completed 200 OK in 2ms (Views: 1.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.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.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.1ms) Completed 200 OK in 31ms (Views: 4.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.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"]] Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.1ms)  (0.2ms) 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]] 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 8ms (Views: 5.9ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.6ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.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.2ms) 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 21ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.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 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (27.6ms) begin transaction Fixture Delete (42.8ms) DELETE FROM "ominous_warnings" Fixture Insert (0.9ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 09:13:30', '2014-08-26 09:13:30') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 09:13:30', '2014-08-26 09:13:30') 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, '2014-08-26 09:13:30', '2014-08-26 09:13: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, '2014-08-26 09:13:30', '2014-08-26 09:13: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, '2014-08-26 09:13:30', '2014-08-26 09:13:30', 113629430) Fixture Delete (0.9ms) 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', '2014-08-26 09:13:30', '2014-08-26 09:13: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', '2014-08-26 09:13:30', '2014-08-26 09:13:30') Fixture Delete (0.7ms) DELETE FROM "things" Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 09:13:30', '2014-08-26 09:13:30') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 09:13:30', '2014-08-26 09:13:30')  (190.3ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (8.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.2ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.7ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.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.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] 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.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.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.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] Ominous::Closer Load (0.2ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 ORDER BY position Ominous::WarningCloser Load (0.2ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.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.7ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 09:13:30.919372' WHERE "ominous_warning_closers"."id" = 298486374  (0.4ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)  (0.0ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.0ms) 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.8ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.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.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.3ms) begin transaction Ominous::Warning Load (3.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.0ms) 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: 38.0ms | ActiveRecord: 0.0ms)  (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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (1.5ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 09:13:31.037693' WHERE "ominous_closers"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) 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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE 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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (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 (1.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 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction  (22.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.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.5ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 09:13:31 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 09:13:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 12ms (ActiveRecord: 2.6ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (1.3ms) 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#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 (1.6ms) 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.7ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (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#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 (2.5ms) Completed 200 OK in 32ms (Views: 31.2ms | 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.5ms) 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.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#new as HTML Rendered things/_form.html.erb (5.0ms) Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)  (0.2ms) 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]] 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 (80.8ms) Completed 200 OK in 92ms (Views: 89.7ms | ActiveRecord: 0.6ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#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.5ms | 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"=>"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.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 (1.8ms) Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.5ms)  (0.2ms) 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 3ms (Views: 2.3ms | 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.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 13ms (Views: 2.4ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.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.2ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 7ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.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.2ms) SELECT "things".* FROM "things" Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (7.6ms) begin transaction Fixture Delete (5.3ms) DELETE FROM "ominous_warnings" Fixture Insert (1.0ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 09:14:19', '2014-08-26 09:14:19') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 09:14:19', '2014-08-26 09:14:19') Fixture Delete (0.7ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.2ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 09:14:19', '2014-08-26 09:14:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 09:14:19', '2014-08-26 09:14:19', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 09:14:19', '2014-08-26 09:14:19', 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', '2014-08-26 09:14:19', '2014-08-26 09:14:19') 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', '2014-08-26 09:14:19', '2014-08-26 09:14:19') 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', '2014-08-26 09:14:19', '2014-08-26 09:14:19') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 09:14:19', '2014-08-26 09:14:19')  (219.9ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (10.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.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.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) 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.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.0ms) ROLLBACK TO SAVEPOINT active_record_1  (4.8ms) 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::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]]  (1.7ms) 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::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.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 (5.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.6ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 09:14:19.740359' 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.0ms) 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.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.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.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 54ms (Views: 53.1ms | ActiveRecord: 0.1ms)  (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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (1.5ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 09:14:19.848068' WHERE "ominous_closers"."id" = 1  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) 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.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.2ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) 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 (0.7ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 09:14:19 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 09:14:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 4ms (ActiveRecord: 0.8ms)  (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.7ms) 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: 0.9ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (1.5ms) 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 (2.6ms) 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 (2.4ms) Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.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.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#new as HTML Rendered things/_form.html.erb (1.8ms) Completed 200 OK in 30ms (Views: 29.4ms | 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.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 (1.8ms) 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 (27.0ms) Completed 200 OK in 41ms (Views: 37.0ms | ActiveRecord: 2.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#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.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.0ms) Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.5ms)  (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#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 8ms (Views: 3.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.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 Completed 200 OK in 34ms (Views: 30.7ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (2.8ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.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 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]] 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.2ms) SELECT "things".* FROM "things" Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (47.6ms) begin transaction Fixture Delete (5.0ms) DELETE FROM "ominous_warnings" Fixture Insert (1.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:30:43', '2014-08-26 10:30:43') Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:30:43', '2014-08-26 10:30:43') Fixture Delete (0.8ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:30:43', '2014-08-26 10:30:43', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:30:43', '2014-08-26 10:30:43', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:30:43', '2014-08-26 10:30:43', 113629430) Fixture Delete (1.4ms) 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', '2014-08-26 10:30:43', '2014-08-26 10:30:43') Fixture Insert (0.6ms) 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', '2014-08-26 10:30:43', '2014-08-26 10:30:43') 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', '2014-08-26 10:30:43', '2014-08-26 10:30:43') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:30:43', '2014-08-26 10:30:43')  (127.9ms) commit transaction  (0.2ms) begin transaction Ominous::Warning Load (15.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.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.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.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.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.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.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.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.1ms) 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.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] Ominous::Closer Load (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.2ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.6ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:30:43.666832' 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.0ms) 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.8ms) 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.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.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 34ms (Views: 32.2ms | ActiveRecord: 0.1ms)  (0.2ms) 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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (1.4ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:30:43.784275' WHERE "ominous_closers"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.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]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE 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.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.2ms) rollback transaction  (0.0ms) 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.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.7ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:30:43 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:30:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 8ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (1.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.3ms) 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.5ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 3ms (ActiveRecord: 0.7ms)  (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 (2.6ms) Completed 200 OK in 19ms (Views: 17.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (3.5ms) 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 9ms (Views: 8.1ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#new as HTML Rendered things/_form.html.erb (2.5ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Ominous::Warning Load (14.0ms) 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 (30.0ms) Completed 200 OK in 50ms (Views: 34.1ms | ActiveRecord: 14.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.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.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.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 (1.9ms) Completed 200 OK in 6ms (Views: 4.1ms | 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.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.3ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.8ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.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.2ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.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.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]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (13.1ms) begin transaction Fixture Delete (5.3ms) DELETE FROM "ominous_warnings" Fixture Insert (1.0ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:32:19', '2014-08-26 10:32:19') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:32:19', '2014-08-26 10:32:19') Fixture Delete (1.8ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:32:19', '2014-08-26 10:32:19', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:32:19', '2014-08-26 10:32:19', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:32:19', '2014-08-26 10:32:19', 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', '2014-08-26 10:32:19', '2014-08-26 10:32:19') 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', '2014-08-26 10:32:19', '2014-08-26 10:32:19') 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', '2014-08-26 10:32:19', '2014-08-26 10:32:19') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:32:19', '2014-08-26 10:32:19')  (133.5ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (7.9ms) 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.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.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.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]]  (0.1ms) SAVEPOINT active_record_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.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.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.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.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.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.6ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:32:20.159744' 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.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.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.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.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 60ms (Views: 57.5ms | ActiveRecord: 0.1ms)  (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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (1.5ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:32:20.276500' WHERE "ominous_closers"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) 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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) 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.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) 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.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.0ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:32:20 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:32:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 20ms (ActiveRecord: 1.2ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (4.9ms) 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#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.6ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 3ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (0.5ms) rollback transaction  (0.0ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.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.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Rendered things/_form.html.erb (16.0ms) Completed 200 OK in 32ms (Views: 30.3ms | 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#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things" Completed 200 OK in 61ms (Views: 60.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 (2.6ms) 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 (13.6ms) Completed 200 OK in 17ms (Views: 16.5ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (8.6ms) 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.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 (62.4ms) Completed 200 OK in 69ms (Views: 66.8ms | 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.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 2ms (Views: 1.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.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (3.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 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 (1.8ms) Completed 200 OK in 18ms (Views: 9.8ms | 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.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 10ms (Views: 6.7ms | ActiveRecord: 0.1ms)  (9.3ms) 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.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 8ms (Views: 2.3ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (2.8ms) SELECT "things".* FROM "things" WHERE "things"."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.5ms) 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.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.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)  (3.4ms) rollback transaction Connecting to database specified by database.yml  (3.5ms) begin transaction Fixture Delete (5.1ms) 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', '2014-08-26 10:32:39', '2014-08-26 10:32:39') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:32:39', '2014-08-26 10:32:39') Fixture Delete (0.1ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:32:39', '2014-08-26 10:32:39', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:32:39', '2014-08-26 10:32:39', 298486374) Fixture Insert (0.4ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:32:39', '2014-08-26 10:32:39', 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', '2014-08-26 10:32:39', '2014-08-26 10:32:39') 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', '2014-08-26 10:32:39', '2014-08-26 10:32:39') Fixture Delete (0.7ms) DELETE FROM "things" Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 10:32:39', '2014-08-26 10:32:39') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:32:39', '2014-08-26 10:32:39')  (138.1ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (4.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.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.8ms) 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.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.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) SAVEPOINT active_record_1  (0.1ms) 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.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.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.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.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.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (2.8ms) 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.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.6ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:32:40.101539' WHERE "ominous_warning_closers"."id" = 298486374  (0.2ms) SELECT COUNT(*) FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."warning_id" = 1 AND position = 1)  (0.1ms) RELEASE SAVEPOINT active_record_1 Ominous::Warning Load (0.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.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.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.0ms) 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 56ms (Views: 53.8ms | ActiveRecord: 0.1ms)  (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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (1.4ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:32:40.239593' WHERE "ominous_closers"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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.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.3ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:32:40 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:32:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 11ms (ActiveRecord: 3.4ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.8ms) 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.0ms) SAVEPOINT active_record_1 SQL (1.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 4ms (ActiveRecord: 1.3ms)  (0.6ms) SELECT COUNT(*) FROM "things"  (0.6ms) 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 (5.4ms) Completed 200 OK in 16ms (Views: 14.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.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 (5.7ms) SELECT "things".* FROM "things" Completed 200 OK in 10ms (Views: 3.8ms | ActiveRecord: 5.7ms)  (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 (1.3ms) Completed 200 OK in 4ms (Views: 3.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.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" 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 (32.3ms) Completed 200 OK in 37ms (Views: 36.2ms | 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 2ms (Views: 1.5ms | 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.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 (2.0ms) Completed 200 OK in 26ms (Views: 4.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 5ms (Views: 3.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.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.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 11ms (Views: 7.4ms | ActiveRecord: 0.2ms)  (0.2ms) 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#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 10ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.2ms) 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.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" Completed 200 OK in 44ms (Views: 42.9ms | ActiveRecord: 0.2ms)  (4.5ms) rollback transaction Connecting to database specified by database.yml  (5.2ms) begin transaction Fixture Delete (7.6ms) DELETE FROM "ominous_warnings" Fixture Insert (1.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:33:39', '2014-08-26 10:33:39') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:33:39', '2014-08-26 10:33:39') Fixture Delete (1.3ms) 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, '2014-08-26 10:33:39', '2014-08-26 10:33:39', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:33:39', '2014-08-26 10:33:39', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:33:39', '2014-08-26 10:33:39', 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', '2014-08-26 10:33:39', '2014-08-26 10:33:39') 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', '2014-08-26 10:33:39', '2014-08-26 10:33:39') 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', '2014-08-26 10:33:39', '2014-08-26 10:33:39') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:33:39', '2014-08-26 10:33:39')  (150.7ms) commit transaction  (0.2ms) begin transaction Ominous::Warning Load (5.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.4ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.3ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.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) 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.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.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Exists (3.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.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.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.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::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.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.5ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:33:39.677891' 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  (1.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]]  (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.0ms) 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.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::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 36ms (Views: 34.2ms | ActiveRecord: 0.1ms)  (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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:33:39.779162' WHERE "ominous_closers"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) 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#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:33:39 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:33:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 24ms (ActiveRecord: 2.2ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.9ms) 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]]  (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.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 6ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (0.6ms) 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.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 (2.5ms) Completed 200 OK in 17ms (Views: 15.2ms | 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.1ms) 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#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things" Completed 200 OK in 5ms (Views: 3.5ms | 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.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.9ms) Completed 200 OK in 6ms (Views: 5.8ms | 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 (29.4ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Ominous::Warning Load (0.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 (28.3ms) Completed 200 OK in 39ms (Views: 37.6ms | 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 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.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.3ms) Completed 200 OK in 29ms (Views: 5.0ms | 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.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.2ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#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.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 9ms (Views: 3.3ms | ActiveRecord: 0.4ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 5ms (ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (46.0ms) begin transaction Fixture Delete (5.1ms) 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', '2014-08-26 10:34:04', '2014-08-26 10:34:04') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:34:04', '2014-08-26 10:34:04') Fixture Delete (0.9ms) 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, '2014-08-26 10:34:04', '2014-08-26 10:34:04', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:34:04', '2014-08-26 10:34:04', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:34:04', '2014-08-26 10:34:04', 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', '2014-08-26 10:34:04', '2014-08-26 10:34:04') 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', '2014-08-26 10:34:04', '2014-08-26 10:34:04') 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', '2014-08-26 10:34:04', '2014-08-26 10:34:04') Fixture Insert (0.2ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:34:04', '2014-08-26 10:34:04')  (177.1ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (3.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (1.0ms) ROLLBACK TO SAVEPOINT active_record_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]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Exists (0.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 (2.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]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (4.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.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.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.3ms) SAVEPOINT active_record_1 SQL (1.5ms) 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  (27.7ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:34:04.508565' 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.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.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.0ms) 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 41ms (Views: 39.6ms | ActiveRecord: 0.1ms)  (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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:34:04.608795' WHERE "ominous_closers"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) 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.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (23.3ms) 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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) 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.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 (2.9ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:34:04 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:34:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 9ms (ActiveRecord: 3.1ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.8ms) 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.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 (3.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: 3.2ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (0.6ms) 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 (6.0ms) Completed 200 OK in 21ms (Views: 20.1ms | 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 5ms (Views: 3.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#new as HTML Rendered things/_form.html.erb (1.8ms) Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)  (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#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 (33.6ms) Completed 200 OK in 38ms (Views: 36.7ms | 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 24ms (Views: 22.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.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.1ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#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 15ms (Views: 3.7ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.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.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.6ms)  (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.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.3ms) SELECT "things".* FROM "things" Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (3.9ms) begin transaction Fixture Delete (5.2ms) DELETE FROM "ominous_warnings" Fixture Insert (1.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:34:38', '2014-08-26 10:34:38') Fixture Insert (0.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:34:38', '2014-08-26 10:34:38') Fixture Delete (1.1ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:34:38', '2014-08-26 10:34:38', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:34:38', '2014-08-26 10:34:38', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:34:38', '2014-08-26 10:34:38', 113629430) Fixture Delete (1.0ms) DELETE FROM "ominous_closers" Fixture Insert (0.7ms) 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', '2014-08-26 10:34:38', '2014-08-26 10:34:38') 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', '2014-08-26 10:34:38', '2014-08-26 10:34:38') Fixture Delete (0.7ms) DELETE FROM "things" Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 10:34:38', '2014-08-26 10:34:38') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:34:38', '2014-08-26 10:34:38')  (222.5ms) commit transaction  (0.2ms) begin transaction Ominous::Warning Load (4.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.2ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.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.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]]  (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.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.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (18.3ms) 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 (3.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::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 (1.6ms) 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  (2.7ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:34:39.485941' 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.9ms) 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.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]] 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.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 27ms (Views: 25.8ms | ActiveRecord: 0.1ms)  (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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:34:39.603850' WHERE "ominous_closers"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (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.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) 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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction  (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.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"}}  (3.9ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:34:39 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:34:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 11ms (ActiveRecord: 5.8ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.8ms) 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.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 6ms (ActiveRecord: 2.0ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (0.6ms) 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 23ms (Views: 21.1ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.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 5ms (Views: 3.5ms | 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#new as HTML Rendered things/_form.html.erb (1.6ms) Completed 200 OK in 8ms (Views: 8.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.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" 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 (30.1ms) Completed 200 OK in 37ms (Views: 35.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.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 2ms (Views: 1.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#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 6ms (Views: 4.4ms | ActiveRecord: 0.5ms)  (0.1ms) rollback transaction  (0.3ms) begin transaction Thing Load (2.6ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.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 69ms (Views: 67.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (1.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 (32.6ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (6.8ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 47ms (Views: 2.4ms | ActiveRecord: 39.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]] 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.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 10ms (ActiveRecord: 0.3ms)  (0.4ms) rollback transaction  (0.2ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.4ms) SELECT "things".* FROM "things" Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (3.4ms) begin transaction Fixture Delete (5.0ms) 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', '2014-08-26 10:35:10', '2014-08-26 10:35:10') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:35:10', '2014-08-26 10:35:10') 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, '2014-08-26 10:35:10', '2014-08-26 10:35: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, '2014-08-26 10:35:10', '2014-08-26 10:35: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, '2014-08-26 10:35:10', '2014-08-26 10:35:10', 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', '2014-08-26 10:35:10', '2014-08-26 10:35: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', '2014-08-26 10:35:10', '2014-08-26 10:35: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', '2014-08-26 10:35:10', '2014-08-26 10:35:10') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:35:10', '2014-08-26 10:35:10')  (179.2ms) commit transaction  (0.3ms) begin transaction Ominous::Warning Load (7.0ms) 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.3ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.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.1ms) ROLLBACK TO SAVEPOINT active_record_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.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (22.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.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 (2.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]] 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.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.0ms) SAVEPOINT active_record_1 SQL (1.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.3ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:35:10.662864' 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  (1.2ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.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.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.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1  (0.2ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.1ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'does_not_exist' LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by Ominous::WarningsController#dismiss as HTML Parameters: {"id"=>"1"} Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", "1"]] Rendered text template (0.0ms) Completed 200 OK in 28ms (Views: 26.2ms | ActiveRecord: 0.1ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT DISTINCT "ominous_closers".* FROM "ominous_closers" INNER JOIN "ominous_warning_closers" ON "ominous_closers"."id" = "ominous_warning_closers"."closer_id" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_closers"."id" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:35:10.763651' WHERE "ominous_closers"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.3ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) 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 (2.1ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:35:10 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:35:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 12ms (ActiveRecord: 2.3ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.8ms) 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#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.2ms) DELETE FROM "things" WHERE "things"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things Completed 302 Found in 4ms (ActiveRecord: 1.4ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (0.6ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] 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 18ms (Views: 17.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#index as HTML Thing Load (0.1ms) SELECT "things".* FROM "things" Completed 200 OK in 9ms (Views: 7.5ms | 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#new as HTML Rendered things/_form.html.erb (3.7ms) Completed 200 OK in 13ms (Views: 6.1ms | 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.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.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 (31.2ms) Completed 200 OK in 65ms (Views: 58.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.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 3ms (Views: 2.2ms | 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.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.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.3ms) Completed 200 OK in 6ms (Views: 4.4ms | 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.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: 2.4ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"2"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "2"]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 16ms (Views: 3.6ms | ActiveRecord: 0.3ms)  (3.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/1 Completed 302 Found in 8ms (ActiveRecord: 0.3ms)  (0.3ms) 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 (8.5ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (7.5ms) begin transaction Fixture Delete (4.7ms) DELETE FROM "ominous_warnings" Fixture Insert (1.2ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:41:21', '2014-08-26 10:41:21') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:41:21', '2014-08-26 10:41:21') Fixture Delete (2.0ms) 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, '2014-08-26 10:41:21', '2014-08-26 10:41:21', 980190962) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 2, 2, '2014-08-26 10:41:21', '2014-08-26 10:41:21', 298486374) Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (2, 2, 1, '2014-08-26 10:41:21', '2014-08-26 10:41:21', 113629430) Fixture Delete (0.9ms) 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', '2014-08-26 10:41:21', '2014-08-26 10:41:21') 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', '2014-08-26 10:41:21', '2014-08-26 10:41:21') Fixture Delete (0.7ms) DELETE FROM "things" Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (1, 'Foo', 'f', '2014-08-26 10:41:21', '2014-08-26 10:41:21') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:41:21', '2014-08-26 10:41:21')  (202.0ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (4.9ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.3ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 1 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (20.7ms) 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) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (0.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Exists (0.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.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 (1.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer 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.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::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 (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  (0.7ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:41:21.884598' 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 (20.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.8ms) 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.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" = '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 32ms (Views: 31.2ms | ActiveRecord: 0.1ms)  (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.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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (1.3ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:41:22.012849' WHERE "ominous_closers"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE 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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (1.8ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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.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 (25.0ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:41:22 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:41:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 32ms (ActiveRecord: 25.1ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.5ms) 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 (1.7ms) 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 7ms (ActiveRecord: 1.9ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (0.6ms) 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 (2.4ms) Completed 200 OK in 18ms (Views: 16.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#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 (1.9ms) SELECT "things".* FROM "things" WHERE "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 5ms (Views: 4.9ms | 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.6ms) 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 (30.0ms) Completed 200 OK in 54ms (Views: 52.6ms | 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.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 2ms (Views: 1.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#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.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.7ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.6ms)  (0.2ms) rollback transaction  (0.3ms) begin transaction Thing Load (0.3ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#show as HTML Parameters: {"id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]] Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.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 (4.4ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 9ms (Views: 2.3ms | ActiveRecord: 4.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#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 65ms (ActiveRecord: 0.3ms)  (0.3ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (11.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.5ms) SELECT "things".* FROM "things" Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 2.5ms)  (0.1ms) rollback transaction Connecting to database specified by database.yml  (3.4ms) begin transaction Fixture Delete (5.6ms) DELETE FROM "ominous_warnings" Fixture Insert (1.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "description", "created_at", "updated_at") VALUES (1, 'thing_alert', 'Thing Alert', 'An alert about things', '2014-08-26 10:43:00', '2014-08-26 10:43:00') Fixture Insert (0.1ms) INSERT INTO "ominous_warnings" ("id", "name", "title", "created_at", "updated_at") VALUES (2, 'other_alert', 'Other Alert', '2014-08-26 10:43:00', '2014-08-26 10:43:00') Fixture Delete (0.6ms) DELETE FROM "ominous_warning_closers" Fixture Insert (0.1ms) INSERT INTO "ominous_warning_closers" ("warning_id", "closer_id", "position", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2014-08-26 10:43:00', '2014-08-26 10:43: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, '2014-08-26 10:43:00', '2014-08-26 10:43: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, '2014-08-26 10:43:00', '2014-08-26 10:43:00', 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', '2014-08-26 10:43:00', '2014-08-26 10:43:00') 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', '2014-08-26 10:43:00', '2014-08-26 10:43:00') 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', '2014-08-26 10:43:00', '2014-08-26 10:43:00') Fixture Insert (0.1ms) INSERT INTO "things" ("id", "name", "has_warning", "created_at", "updated_at") VALUES (2, 'Bar', 't', '2014-08-26 10:43:00', '2014-08-26 10:43:00')  (178.0ms) commit transaction  (0.1ms) begin transaction Ominous::Warning Load (5.0ms) 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.2ms) 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.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1  (0.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]]  (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.2ms) 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.2ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.0ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.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.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 2]] 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 (0.1ms) SELECT DISTINCT "ominous_warning_closers".* FROM "ominous_warning_closers" WHERE "ominous_warning_closers"."warning_id" = 1 AND "ominous_warning_closers"."closer_id" = 2 ORDER BY position LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) UPDATE "ominous_warning_closers" SET position = (position + 1) WHERE ("ominous_warning_closers"."warning_id" = 1 AND position < 2) Ominous::WarningCloser Exists (0.1ms) SELECT 1 AS one FROM "ominous_warning_closers" WHERE ("ominous_warning_closers"."closer_id" = 2 AND "ominous_warning_closers"."id" != 298486374 AND "ominous_warning_closers"."warning_id" = 1) LIMIT 1  (1.0ms) UPDATE "ominous_warning_closers" SET "position" = 1, "updated_at" = '2014-08-26 10:43:00.700281' 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.0ms) 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.8ms) rollback transaction  (0.1ms) begin transaction Ominous::Warning Load (3.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT "ominous_closers".* FROM "ominous_closers" WHERE "ominous_closers"."id" = ? LIMIT 1 [["id", 1]]  (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" = '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.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 27ms (Views: 25.3ms | ActiveRecord: 0.1ms)  (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 DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (1.2ms) UPDATE "ominous_closers" SET "start_hidden" = 't', "updated_at" = '2014-08-26 10:43:00.796917' WHERE "ominous_closers"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.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]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE 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.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" = ? ORDER BY position LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Ominous::Warning Load (1.7ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Closer Load (0.1ms) SELECT DISTINCT "ominous_closers".* 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" = ? ORDER BY position LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) 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.3ms) SELECT COUNT(*) FROM "things"  Processing by ThingsController#create as HTML Parameters: {"thing"=>{"name"=>"Foo"}}  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "things" ("created_at", "has_warning", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 26 Aug 2014 10:43:00 UTC +00:00], ["has_warning", nil], ["name", "Foo"], ["updated_at", Tue, 26 Aug 2014 10:43:00 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Redirected to http://test.host/things/3 Completed 302 Found in 12ms (ActiveRecord: 2.8ms)  (0.1ms) SELECT COUNT(*) FROM "things"   (0.8ms) 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 (4.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) 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: 5.3ms)  (0.1ms) SELECT COUNT(*) FROM "things"  (0.6ms) 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.5ms) 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 (2.8ms) Completed 200 OK in 38ms (Views: 36.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 (7.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 6ms (Views: 3.2ms | 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#new as HTML Rendered things/_form.html.erb (1.4ms) 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 (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 (53.4ms) Completed 200 OK in 61ms (Views: 59.0ms | 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.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.5ms | ActiveRecord: 0.1ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.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.2ms) Completed 200 OK in 10ms (Views: 4.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.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 7ms (Views: 3.3ms | 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.3ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Completed 200 OK in 12ms (Views: 6.9ms | ActiveRecord: 0.4ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Thing Load (0.2ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 1]] Thing Load (0.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.0ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Processing by ThingsController#update as HTML Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"} Thing Load (0.1ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", "1"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) 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.0ms) SELECT "things".* FROM "things" WHERE "things"."id" = ? LIMIT 1 [["id", 2]] Ominous::Warning Load (0.1ms) SELECT "ominous_warnings".* FROM "ominous_warnings" WHERE "ominous_warnings"."id" = ? LIMIT 1 [["id", 1]] Ominous::Warning Exists (0.2ms) SELECT 1 AS one FROM "ominous_warnings" WHERE "ominous_warnings"."name" = 'thing_alert' LIMIT 1 Processing by ThingsController#index as HTML Thing Load (0.2ms) SELECT "things".* FROM "things" Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)  (0.1ms) rollback transaction