ominous 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -6,7 +6,11 @@ This engine adds warnings to a rails application.
6
6
 
7
7
  Add to your gemfile:
8
8
 
9
- 'gem ominous' # TODO - gem not created yet
9
+ 'gem ominous'
10
+
11
+ Add this to your routes to mount the engine within your application:
12
+
13
+ mount Ominous::Engine => "/ominous"
10
14
 
11
15
  Some ominous functionality is provided by JavaScript. To enable this, you
12
16
  need to add this to your app/assets/javascripts/application.js
@@ -13,6 +13,7 @@ module Ominous
13
13
  has_many(
14
14
  :closers,
15
15
  :through => :warning_closers,
16
+ :uniq => true,
16
17
  :order => :position
17
18
  )
18
19
 
@@ -7,5 +7,7 @@ module Ominous
7
7
  belongs_to :warning
8
8
 
9
9
  acts_as_list :scope => :warning
10
+
11
+ validates_uniqueness_of :closer_id, :scope => :warning_id
10
12
  end
11
13
  end
@@ -1,3 +1,3 @@
1
1
  module Ominous
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -16542,3 +16542,804 @@ Processing by ThingsController#update as HTML
16542
16542
  Redirected to http://test.host/things/1
16543
16543
  Completed 302 Found in 6ms (ActiveRecord: 2.4ms)
16544
16544
   (0.3ms) ROLLBACK
16545
+ Connecting to database specified by database.yml
16546
+  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS
16547
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 0
16548
+  (0.3ms) BEGIN
16549
+ Fixture Delete (1.0ms) DELETE FROM `ominous_warnings`
16550
+ 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')
16551
+ 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')
16552
+ Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers`
16553
+ 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)
16554
+ 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)
16555
+ 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)
16556
+ Fixture Delete (0.3ms) DELETE FROM `ominous_closers`
16557
+ 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')
16558
+ 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')
16559
+ Fixture Delete (0.3ms) DELETE FROM `things`
16560
+ 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')
16561
+ 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')
16562
+  (56.0ms) COMMIT
16563
+  (3.3ms) SET FOREIGN_KEY_CHECKS = 1
16564
+  (2.5ms) BEGIN
16565
+ Ominous::Warning Load (2.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16566
+ Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16567
+  (0.8ms) SELECT COUNT(*) FROM `ominous_warning_closers`
16568
+  (0.4ms) SAVEPOINT active_record_1
16569
+ 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
16570
+ 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)
16571
+  (0.3ms) RELEASE SAVEPOINT active_record_1
16572
+  (0.4ms) SELECT COUNT(*) FROM `ominous_warning_closers` 
16573
+  (31.4ms) ROLLBACK
16574
+  (0.2ms) BEGIN
16575
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16576
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16577
+ 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
16578
+  (0.3ms) ROLLBACK
16579
+  (0.3ms) BEGIN
16580
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16581
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16582
+ 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
16583
+  (0.4ms) ROLLBACK
16584
+  (0.3ms) BEGIN
16585
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16586
+ Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16587
+ Ominous::Closer Load (1.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16588
+ Ominous::Closer Load (5.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1
16589
+ 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
16590
+ 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
16591
+  (0.3ms) SAVEPOINT active_record_1
16592
+ SQL (7.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)
16593
+  (0.5ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:30:35' WHERE `ominous_warning_closers`.`id` = 298486374
16594
+  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)
16595
+  (0.2ms) RELEASE SAVEPOINT active_record_1
16596
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16597
+ 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
16598
+  (42.0ms) ROLLBACK
16599
+  (0.2ms) BEGIN
16600
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16601
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16602
+  (0.3ms) ROLLBACK
16603
+  (0.8ms) BEGIN
16604
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16605
+ Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16606
+ Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
16607
+  (0.3ms) ROLLBACK
16608
+  (0.3ms) BEGIN
16609
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16610
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16611
+ Ominous::Warning Exists (0.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1
16612
+  (0.3ms) ROLLBACK
16613
+  (0.3ms) BEGIN
16614
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16615
+ Processing by Ominous::WarningsController#dismiss as HTML
16616
+ Parameters: {"id"=>"1"}
16617
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16618
+ Rendered text template (0.0ms)
16619
+ Completed 200 OK in 45ms (Views: 42.1ms | ActiveRecord: 0.5ms)
16620
+  (0.4ms) ROLLBACK
16621
+  (0.3ms) BEGIN
16622
+  (0.3ms) ROLLBACK
16623
+  (0.3ms) BEGIN
16624
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16625
+ Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16626
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16627
+  (0.7ms) SELECT COUNT(*) FROM `things`
16628
+ Processing by ThingsController#create as HTML
16629
+ Parameters: {"thing"=>{"name"=>"Foo"}}
16630
+  (0.5ms) SAVEPOINT active_record_1
16631
+ 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')
16632
+  (0.3ms) RELEASE SAVEPOINT active_record_1
16633
+ Redirected to http://test.host/things/5
16634
+ Completed 302 Found in 10ms (ActiveRecord: 1.2ms)
16635
+  (0.5ms) SELECT COUNT(*) FROM `things`
16636
+  (47.5ms) ROLLBACK
16637
+  (4.9ms) BEGIN
16638
+ Thing Load (3.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16639
+ Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16640
+ Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16641
+  (1.2ms) SELECT COUNT(*) FROM `things`
16642
+ Processing by ThingsController#destroy as HTML
16643
+ Parameters: {"id"=>"1"}
16644
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16645
+  (0.4ms) SAVEPOINT active_record_1
16646
+ SQL (0.9ms) DELETE FROM `things` WHERE `things`.`id` = 1
16647
+  (0.4ms) RELEASE SAVEPOINT active_record_1
16648
+ Redirected to http://test.host/things
16649
+ Completed 302 Found in 9ms (ActiveRecord: 2.2ms)
16650
+  (0.6ms) SELECT COUNT(*) FROM `things` 
16651
+  (40.5ms) ROLLBACK
16652
+  (0.4ms) BEGIN
16653
+ Thing Load (0.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16654
+ Thing Load (2.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16655
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16656
+ Processing by ThingsController#edit as HTML
16657
+ Parameters: {"id"=>"1"}
16658
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16659
+ Rendered things/_form.html.erb (12.9ms)
16660
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
16661
+ 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
16662
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.7ms)
16663
+ Completed 200 OK in 44ms (Views: 39.6ms | ActiveRecord: 1.7ms)
16664
+  (0.3ms) ROLLBACK
16665
+  (0.3ms) BEGIN
16666
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16667
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16668
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16669
+ Processing by ThingsController#index as HTML
16670
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` 
16671
+ Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
16672
+  (0.3ms) ROLLBACK
16673
+  (0.5ms) BEGIN
16674
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16675
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16676
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16677
+ Processing by ThingsController#new as HTML
16678
+ Rendered things/_form.html.erb (4.6ms)
16679
+ Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms)
16680
+  (0.3ms) ROLLBACK
16681
+  (0.2ms) BEGIN
16682
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16683
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16684
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16685
+ Processing by ThingsController#show as HTML
16686
+ Parameters: {"id"=>"1"}
16687
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16688
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
16689
+ 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
16690
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.3ms)
16691
+ Completed 200 OK in 42ms (Views: 38.6ms | ActiveRecord: 1.5ms)
16692
+  (0.4ms) ROLLBACK
16693
+  (0.2ms) BEGIN
16694
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16695
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16696
+ Ominous::Warning Load (1.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16697
+ Processing by ThingsController#show as HTML
16698
+ Parameters: {"id"=>"1"}
16699
+ Thing Load (4.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16700
+ Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 4.1ms)
16701
+  (0.4ms) ROLLBACK
16702
+  (0.3ms) BEGIN
16703
+ Thing Load (1.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16704
+ Thing Load (4.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16705
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16706
+ Processing by ThingsController#show as HTML
16707
+ Parameters: {"id"=>"2"}
16708
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16709
+ Ominous::Warning Exists (6.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
16710
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
16711
+ 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
16712
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (6.4ms)
16713
+ Completed 200 OK in 23ms (Views: 9.1ms | ActiveRecord: 11.0ms)
16714
+  (1.1ms) ROLLBACK
16715
+  (0.2ms) BEGIN
16716
+ Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16717
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16718
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16719
+ Processing by ThingsController#show as HTML
16720
+ Parameters: {"id"=>"1"}
16721
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16722
+ Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)
16723
+  (0.6ms) ROLLBACK
16724
+  (0.3ms) BEGIN
16725
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16726
+ Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16727
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16728
+ Processing by ThingsController#show as HTML
16729
+ Parameters: {"id"=>"2"}
16730
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16731
+ Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
16732
+ Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.8ms)
16733
+  (0.4ms) ROLLBACK
16734
+  (3.8ms) BEGIN
16735
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16736
+ Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16737
+ Ominous::Warning Load (1.0ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16738
+ Processing by ThingsController#update as HTML
16739
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
16740
+ Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16741
+  (0.4ms) SAVEPOINT active_record_1
16742
+  (0.4ms) RELEASE SAVEPOINT active_record_1
16743
+ Redirected to http://test.host/things/1
16744
+ Completed 302 Found in 17ms (ActiveRecord: 1.4ms)
16745
+  (0.5ms) ROLLBACK
16746
+ Connecting to database specified by database.yml
16747
+  (0.5ms) SELECT @@FOREIGN_KEY_CHECKS
16748
+  (7.7ms) SET FOREIGN_KEY_CHECKS = 0
16749
+  (0.4ms) BEGIN
16750
+ Fixture Delete (0.9ms) DELETE FROM `ominous_warnings`
16751
+ 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')
16752
+ 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')
16753
+ Fixture Delete (0.5ms) DELETE FROM `ominous_warning_closers`
16754
+ 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)
16755
+ 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)
16756
+ 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)
16757
+ Fixture Delete (0.3ms) DELETE FROM `ominous_closers`
16758
+ 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')
16759
+ 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')
16760
+ Fixture Delete (0.3ms) DELETE FROM `things`
16761
+ 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')
16762
+ 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')
16763
+  (50.8ms) COMMIT
16764
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
16765
+  (0.2ms) BEGIN
16766
+ Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16767
+ Ominous::Closer Load (0.7ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16768
+  (0.7ms) SELECT COUNT(*) FROM `ominous_warning_closers`
16769
+  (0.4ms) SAVEPOINT active_record_1
16770
+ 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
16771
+ 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)
16772
+  (4.2ms) RELEASE SAVEPOINT active_record_1
16773
+  (0.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` 
16774
+  (32.5ms) ROLLBACK
16775
+  (0.2ms) BEGIN
16776
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16777
+ Ominous::Closer Load (2.1ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16778
+ 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
16779
+  (0.3ms) ROLLBACK
16780
+  (0.3ms) BEGIN
16781
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16782
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16783
+ 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
16784
+  (0.4ms) ROLLBACK
16785
+  (0.3ms) BEGIN
16786
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16787
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16788
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16789
+ Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1
16790
+ 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
16791
+ 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
16792
+  (0.5ms) SAVEPOINT active_record_1
16793
+ SQL (0.4ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)
16794
+  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:31:02' WHERE `ominous_warning_closers`.`id` = 298486374
16795
+  (4.0ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)
16796
+  (0.5ms) RELEASE SAVEPOINT active_record_1
16797
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16798
+ 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
16799
+  (41.8ms) ROLLBACK
16800
+  (0.3ms) BEGIN
16801
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16802
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16803
+  (0.7ms) ROLLBACK
16804
+  (0.2ms) BEGIN
16805
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16806
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16807
+ Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
16808
+  (0.3ms) ROLLBACK
16809
+  (0.2ms) BEGIN
16810
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16811
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16812
+ Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1
16813
+  (0.3ms) ROLLBACK
16814
+  (0.3ms) BEGIN
16815
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16816
+ Processing by Ominous::WarningsController#dismiss as HTML
16817
+ Parameters: {"id"=>"1"}
16818
+ Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16819
+ Rendered text template (0.0ms)
16820
+ Completed 200 OK in 47ms (Views: 44.1ms | ActiveRecord: 0.6ms)
16821
+  (0.4ms) ROLLBACK
16822
+  (0.4ms) BEGIN
16823
+  (0.5ms) ROLLBACK
16824
+  (0.3ms) BEGIN
16825
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16826
+ Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16827
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16828
+  (0.5ms) SELECT COUNT(*) FROM `things`
16829
+ Processing by ThingsController#create as HTML
16830
+ Parameters: {"thing"=>{"name"=>"Foo"}}
16831
+  (0.6ms) SAVEPOINT active_record_1
16832
+ 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')
16833
+  (0.3ms) RELEASE SAVEPOINT active_record_1
16834
+ Redirected to http://test.host/things/6
16835
+ Completed 302 Found in 13ms (ActiveRecord: 1.5ms)
16836
+  (1.4ms) SELECT COUNT(*) FROM `things`
16837
+  (41.1ms) ROLLBACK
16838
+  (1.1ms) BEGIN
16839
+ Thing Load (3.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16840
+ Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16841
+ Ominous::Warning Load (1.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16842
+  (0.5ms) SELECT COUNT(*) FROM `things`
16843
+ Processing by ThingsController#destroy as HTML
16844
+ Parameters: {"id"=>"1"}
16845
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16846
+  (0.5ms) SAVEPOINT active_record_1
16847
+ SQL (0.7ms) DELETE FROM `things` WHERE `things`.`id` = 1
16848
+  (0.3ms) RELEASE SAVEPOINT active_record_1
16849
+ Redirected to http://test.host/things
16850
+ Completed 302 Found in 7ms (ActiveRecord: 1.9ms)
16851
+  (0.5ms) SELECT COUNT(*) FROM `things` 
16852
+  (42.2ms) ROLLBACK
16853
+  (0.3ms) BEGIN
16854
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16855
+ Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16856
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16857
+ Processing by ThingsController#edit as HTML
16858
+ Parameters: {"id"=>"1"}
16859
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16860
+ Rendered things/_form.html.erb (10.8ms)
16861
+ Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
16862
+ 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
16863
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.5ms)
16864
+ Completed 200 OK in 36ms (Views: 32.6ms | ActiveRecord: 1.7ms)
16865
+  (0.3ms) ROLLBACK
16866
+  (0.2ms) BEGIN
16867
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16868
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16869
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16870
+ Processing by ThingsController#index as HTML
16871
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` 
16872
+ Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.5ms)
16873
+  (0.4ms) ROLLBACK
16874
+  (0.3ms) BEGIN
16875
+ Thing Load (1.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16876
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16877
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16878
+ Processing by ThingsController#new as HTML
16879
+ Rendered things/_form.html.erb (2.0ms)
16880
+ Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms)
16881
+  (0.6ms) ROLLBACK
16882
+  (0.4ms) BEGIN
16883
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16884
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16885
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16886
+ Processing by ThingsController#show as HTML
16887
+ Parameters: {"id"=>"1"}
16888
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16889
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
16890
+ 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
16891
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.7ms)
16892
+ Completed 200 OK in 40ms (Views: 36.5ms | ActiveRecord: 1.4ms)
16893
+  (0.5ms) ROLLBACK
16894
+  (0.3ms) BEGIN
16895
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16896
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16897
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16898
+ Processing by ThingsController#show as HTML
16899
+ Parameters: {"id"=>"1"}
16900
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16901
+ Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)
16902
+  (0.4ms) ROLLBACK
16903
+  (0.3ms) BEGIN
16904
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16905
+ Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16906
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16907
+ Processing by ThingsController#show as HTML
16908
+ Parameters: {"id"=>"2"}
16909
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16910
+ Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
16911
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
16912
+ 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
16913
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.6ms)
16914
+ Completed 200 OK in 12ms (Views: 8.3ms | ActiveRecord: 2.0ms)
16915
+  (1.2ms) ROLLBACK
16916
+  (0.3ms) BEGIN
16917
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16918
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16919
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16920
+ Processing by ThingsController#show as HTML
16921
+ Parameters: {"id"=>"1"}
16922
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16923
+ Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)
16924
+  (0.6ms) ROLLBACK
16925
+  (0.3ms) BEGIN
16926
+ Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16927
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16928
+ Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16929
+ Processing by ThingsController#show as HTML
16930
+ Parameters: {"id"=>"2"}
16931
+ Thing Load (4.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16932
+ Ominous::Warning Exists (4.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
16933
+ Completed 200 OK in 14ms (Views: 2.0ms | ActiveRecord: 9.1ms)
16934
+  (5.2ms) ROLLBACK
16935
+  (0.3ms) BEGIN
16936
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16937
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
16938
+ Ominous::Warning Load (5.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16939
+ Processing by ThingsController#update as HTML
16940
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
16941
+ Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
16942
+  (0.4ms) SAVEPOINT active_record_1
16943
+  (0.6ms) RELEASE SAVEPOINT active_record_1
16944
+ Redirected to http://test.host/things/1
16945
+ Completed 302 Found in 8ms (ActiveRecord: 2.0ms)
16946
+  (1.4ms) ROLLBACK
16947
+ Connecting to database specified by database.yml
16948
+  (0.7ms) SELECT @@FOREIGN_KEY_CHECKS
16949
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 0
16950
+  (0.4ms) BEGIN
16951
+ Fixture Delete (1.3ms) DELETE FROM `ominous_warnings`
16952
+ 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')
16953
+ 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')
16954
+ Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers`
16955
+ 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)
16956
+ 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)
16957
+ 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)
16958
+ Fixture Delete (0.5ms) DELETE FROM `ominous_closers`
16959
+ 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')
16960
+ 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')
16961
+ Fixture Delete (0.4ms) DELETE FROM `things`
16962
+ 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')
16963
+ 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')
16964
+  (80.5ms) COMMIT
16965
+  (0.8ms) SET FOREIGN_KEY_CHECKS = 1
16966
+  (1.2ms) BEGIN
16967
+ Ominous::Warning Load (1.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16968
+ Ominous::Closer Load (0.9ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16969
+  (1.3ms) SELECT COUNT(*) FROM `ominous_warning_closers`
16970
+  (0.5ms) SAVEPOINT active_record_1
16971
+ 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
16972
+  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1
16973
+  (0.4ms) ROLLBACK
16974
+  (4.1ms) BEGIN
16975
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16976
+ Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16977
+ 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
16978
+  (0.3ms) ROLLBACK
16979
+  (0.3ms) BEGIN
16980
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16981
+ Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16982
+ 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
16983
+  (0.4ms) ROLLBACK
16984
+  (0.3ms) BEGIN
16985
+ Ominous::Warning Load (1.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16986
+ Ominous::Closer Load (7.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16987
+ Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
16988
+ Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1
16989
+ 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
16990
+ 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
16991
+  (0.4ms) SAVEPOINT active_record_1
16992
+ SQL (0.5ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)
16993
+ 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
16994
+  (0.6ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:58:10' WHERE `ominous_warning_closers`.`id` = 298486374
16995
+  (3.5ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)
16996
+  (7.1ms) RELEASE SAVEPOINT active_record_1
16997
+ Ominous::Warning Load (2.8ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
16998
+ 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
16999
+  (67.9ms) ROLLBACK
17000
+  (1.0ms) BEGIN
17001
+ Ominous::Warning Load (1.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17002
+ Ominous::Closer Load (9.2ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
17003
+  (3.1ms) ROLLBACK
17004
+  (0.6ms) BEGIN
17005
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17006
+ Ominous::Closer Load (2.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
17007
+ Ominous::Warning Exists (0.8ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
17008
+  (0.5ms) ROLLBACK
17009
+  (0.7ms) BEGIN
17010
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17011
+ Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
17012
+ Ominous::Warning Exists (0.7ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1
17013
+  (1.1ms) ROLLBACK
17014
+  (0.5ms) BEGIN
17015
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17016
+ Processing by Ominous::WarningsController#dismiss as HTML
17017
+ Parameters: {"id"=>"1"}
17018
+ Ominous::Warning Load (0.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17019
+ Rendered text template (0.0ms)
17020
+ Completed 200 OK in 40ms (Views: 37.4ms | ActiveRecord: 0.7ms)
17021
+  (0.7ms) ROLLBACK
17022
+  (0.3ms) BEGIN
17023
+  (0.3ms) ROLLBACK
17024
+  (0.3ms) BEGIN
17025
+ Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17026
+ Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17027
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17028
+  (0.5ms) SELECT COUNT(*) FROM `things` 
17029
+ Processing by ThingsController#create as HTML
17030
+ Parameters: {"thing"=>{"name"=>"Foo"}}
17031
+  (1.6ms) SAVEPOINT active_record_1
17032
+ 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')
17033
+  (0.3ms) RELEASE SAVEPOINT active_record_1
17034
+ Redirected to http://test.host/things/7
17035
+ Completed 302 Found in 10ms (ActiveRecord: 2.5ms)
17036
+  (0.7ms) SELECT COUNT(*) FROM `things` 
17037
+  (45.7ms) ROLLBACK
17038
+  (0.3ms) BEGIN
17039
+ Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17040
+ Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17041
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17042
+  (0.5ms) SELECT COUNT(*) FROM `things` 
17043
+ Processing by ThingsController#destroy as HTML
17044
+ Parameters: {"id"=>"1"}
17045
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17046
+  (0.3ms) SAVEPOINT active_record_1
17047
+ SQL (0.5ms) DELETE FROM `things` WHERE `things`.`id` = 1
17048
+  (0.3ms) RELEASE SAVEPOINT active_record_1
17049
+ Redirected to http://test.host/things
17050
+ Completed 302 Found in 6ms (ActiveRecord: 1.6ms)
17051
+  (0.5ms) SELECT COUNT(*) FROM `things`
17052
+  (46.5ms) ROLLBACK
17053
+  (0.3ms) BEGIN
17054
+ Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17055
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17056
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17057
+ Processing by ThingsController#edit as HTML
17058
+ Parameters: {"id"=>"1"}
17059
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17060
+ Rendered things/_form.html.erb (3.9ms)
17061
+ Ominous::Warning Load (2.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
17062
+ 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
17063
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (11.2ms)
17064
+ Completed 200 OK in 35ms (Views: 28.8ms | ActiveRecord: 4.4ms)
17065
+  (0.4ms) ROLLBACK
17066
+  (0.3ms) BEGIN
17067
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17068
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17069
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17070
+ Processing by ThingsController#index as HTML
17071
+ Thing Load (0.6ms) SELECT `things`.* FROM `things`
17072
+ Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms)
17073
+  (0.4ms) ROLLBACK
17074
+  (0.3ms) BEGIN
17075
+ Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17076
+ Thing Load (1.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17077
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17078
+ Processing by ThingsController#new as HTML
17079
+ Rendered things/_form.html.erb (2.8ms)
17080
+ Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
17081
+  (0.4ms) ROLLBACK
17082
+  (0.3ms) BEGIN
17083
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17084
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17085
+ Ominous::Warning Load (28.2ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17086
+ Processing by ThingsController#show as HTML
17087
+ Parameters: {"id"=>"1"}
17088
+ Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17089
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
17090
+ 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
17091
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (5.8ms)
17092
+ Completed 200 OK in 14ms (Views: 10.6ms | ActiveRecord: 1.6ms)
17093
+  (0.4ms) ROLLBACK
17094
+  (0.3ms) BEGIN
17095
+ Thing Load (6.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17096
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17097
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17098
+ Processing by ThingsController#show as HTML
17099
+ Parameters: {"id"=>"1"}
17100
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17101
+ Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.5ms)
17102
+  (9.4ms) ROLLBACK
17103
+  (0.3ms) BEGIN
17104
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17105
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17106
+ Ominous::Warning Load (1.1ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17107
+ Processing by ThingsController#show as HTML
17108
+ Parameters: {"id"=>"2"}
17109
+ Thing Load (4.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17110
+ Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
17111
+ Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
17112
+ 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
17113
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (12.8ms)
17114
+ Completed 200 OK in 24ms (Views: 11.8ms | ActiveRecord: 9.3ms)
17115
+  (0.4ms) ROLLBACK
17116
+  (0.3ms) BEGIN
17117
+ Thing Load (1.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17118
+ Thing Load (3.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17119
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17120
+ Processing by ThingsController#show as HTML
17121
+ Parameters: {"id"=>"1"}
17122
+ Thing Load (2.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17123
+ Completed 200 OK in 6ms (Views: 1.4ms | ActiveRecord: 2.9ms)
17124
+  (0.4ms) ROLLBACK
17125
+  (0.3ms) BEGIN
17126
+ Thing Load (1.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17127
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17128
+ Ominous::Warning Load (2.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17129
+ Processing by ThingsController#show as HTML
17130
+ Parameters: {"id"=>"2"}
17131
+ Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17132
+ Ominous::Warning Exists (3.6ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
17133
+ Completed 200 OK in 10ms (Views: 2.2ms | ActiveRecord: 4.5ms)
17134
+  (4.1ms) ROLLBACK
17135
+  (0.3ms) BEGIN
17136
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17137
+ Thing Load (1.1ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17138
+ Ominous::Warning Load (2.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17139
+ Processing by ThingsController#update as HTML
17140
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
17141
+ Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17142
+  (0.4ms) SAVEPOINT active_record_1
17143
+  (2.9ms) RELEASE SAVEPOINT active_record_1
17144
+ Redirected to http://test.host/things/1
17145
+ Completed 302 Found in 13ms (ActiveRecord: 3.9ms)
17146
+  (2.7ms) ROLLBACK
17147
+ Connecting to database specified by database.yml
17148
+  (0.4ms) SELECT @@FOREIGN_KEY_CHECKS
17149
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 0
17150
+  (0.3ms) BEGIN
17151
+ Fixture Delete (1.0ms) DELETE FROM `ominous_warnings`
17152
+ 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')
17153
+ 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')
17154
+ Fixture Delete (0.4ms) DELETE FROM `ominous_warning_closers`
17155
+ 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)
17156
+ 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)
17157
+ 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)
17158
+ Fixture Delete (0.5ms) DELETE FROM `ominous_closers`
17159
+ 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')
17160
+ 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')
17161
+ Fixture Delete (0.9ms) DELETE FROM `things`
17162
+ 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')
17163
+ 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')
17164
+  (43.9ms) COMMIT
17165
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
17166
+  (0.3ms) BEGIN
17167
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17168
+ Ominous::Closer Load (5.0ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
17169
+  (0.5ms) SAVEPOINT active_record_1
17170
+ 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
17171
+  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1
17172
+  (0.3ms) ROLLBACK
17173
+  (0.3ms) BEGIN
17174
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17175
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
17176
+ 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
17177
+  (0.5ms) ROLLBACK
17178
+  (0.3ms) BEGIN
17179
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17180
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
17181
+ 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
17182
+  (0.3ms) ROLLBACK
17183
+  (0.3ms) BEGIN
17184
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17185
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
17186
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
17187
+ Ominous::Closer Load (0.4ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1
17188
+ 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
17189
+ 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
17190
+  (0.3ms) SAVEPOINT active_record_1
17191
+ SQL (0.6ms) UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)
17192
+ 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
17193
+  (0.7ms) UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:58:56' WHERE `ominous_warning_closers`.`id` = 298486374
17194
+  (0.6ms) SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)
17195
+  (0.3ms) RELEASE SAVEPOINT active_record_1
17196
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17197
+ 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
17198
+  (41.9ms) ROLLBACK
17199
+  (0.3ms) BEGIN
17200
+ Ominous::Warning Load (0.9ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17201
+ Ominous::Closer Load (0.6ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
17202
+  (0.4ms) ROLLBACK
17203
+  (0.2ms) BEGIN
17204
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17205
+ Ominous::Closer Load (0.3ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
17206
+ Ominous::Warning Exists (0.5ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
17207
+  (0.3ms) ROLLBACK
17208
+  (0.3ms) BEGIN
17209
+ Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17210
+ Ominous::Closer Load (0.5ms) SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
17211
+ Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1
17212
+  (0.3ms) ROLLBACK
17213
+  (0.2ms) BEGIN
17214
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17215
+ Processing by Ominous::WarningsController#dismiss as HTML
17216
+ Parameters: {"id"=>"1"}
17217
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17218
+ Rendered text template (0.0ms)
17219
+ Completed 200 OK in 36ms (Views: 34.2ms | ActiveRecord: 0.4ms)
17220
+  (0.3ms) ROLLBACK
17221
+  (0.5ms) BEGIN
17222
+  (0.3ms) ROLLBACK
17223
+  (0.3ms) BEGIN
17224
+ Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17225
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17226
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17227
+  (0.5ms) SELECT COUNT(*) FROM `things`
17228
+ Processing by ThingsController#create as HTML
17229
+ Parameters: {"thing"=>{"name"=>"Foo"}}
17230
+  (0.3ms) SAVEPOINT active_record_1
17231
+ 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')
17232
+  (0.3ms) RELEASE SAVEPOINT active_record_1
17233
+ Redirected to http://test.host/things/8
17234
+ Completed 302 Found in 11ms (ActiveRecord: 1.0ms)
17235
+  (0.5ms) SELECT COUNT(*) FROM `things`
17236
+  (47.0ms) ROLLBACK
17237
+  (0.3ms) BEGIN
17238
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17239
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17240
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17241
+  (0.3ms) SELECT COUNT(*) FROM `things`
17242
+ Processing by ThingsController#destroy as HTML
17243
+ Parameters: {"id"=>"1"}
17244
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17245
+  (0.3ms) SAVEPOINT active_record_1
17246
+ SQL (0.4ms) DELETE FROM `things` WHERE `things`.`id` = 1
17247
+  (0.3ms) RELEASE SAVEPOINT active_record_1
17248
+ Redirected to http://test.host/things
17249
+ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
17250
+  (0.5ms) SELECT COUNT(*) FROM `things` 
17251
+  (40.0ms) ROLLBACK
17252
+  (2.6ms) BEGIN
17253
+ Thing Load (1.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17254
+ Thing Load (0.8ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17255
+ Ominous::Warning Load (0.6ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17256
+ Processing by ThingsController#edit as HTML
17257
+ Parameters: {"id"=>"1"}
17258
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17259
+ Rendered things/_form.html.erb (4.3ms)
17260
+ Ominous::Warning Load (0.5ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
17261
+ 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
17262
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.6ms)
17263
+ Completed 200 OK in 32ms (Views: 28.7ms | ActiveRecord: 1.7ms)
17264
+  (0.3ms) ROLLBACK
17265
+  (0.3ms) BEGIN
17266
+ Thing Load (0.6ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17267
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17268
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17269
+ Processing by ThingsController#index as HTML
17270
+ Thing Load (0.5ms) SELECT `things`.* FROM `things` 
17271
+ Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.5ms)
17272
+  (0.3ms) ROLLBACK
17273
+  (0.2ms) BEGIN
17274
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17275
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17276
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17277
+ Processing by ThingsController#new as HTML
17278
+ Rendered things/_form.html.erb (4.3ms)
17279
+ Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
17280
+  (0.3ms) ROLLBACK
17281
+  (0.3ms) BEGIN
17282
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17283
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17284
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17285
+ Processing by ThingsController#show as HTML
17286
+ Parameters: {"id"=>"1"}
17287
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17288
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
17289
+ 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
17290
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (3.6ms)
17291
+ Completed 200 OK in 13ms (Views: 9.7ms | ActiveRecord: 1.2ms)
17292
+  (0.4ms) ROLLBACK
17293
+  (0.2ms) BEGIN
17294
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17295
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17296
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17297
+ Processing by ThingsController#show as HTML
17298
+ Parameters: {"id"=>"1"}
17299
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17300
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.4ms)
17301
+  (0.4ms) ROLLBACK
17302
+  (0.3ms) BEGIN
17303
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17304
+ Thing Load (0.7ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17305
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17306
+ Processing by ThingsController#show as HTML
17307
+ Parameters: {"id"=>"2"}
17308
+ Thing Load (2.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17309
+ Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
17310
+ Ominous::Warning Load (3.7ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
17311
+ 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
17312
+ Rendered /home/rob/web/ominous/app/views/ominous/warnings/_list.html.erb (7.3ms)
17313
+ Completed 200 OK in 21ms (Views: 6.2ms | ActiveRecord: 11.6ms)
17314
+  (0.4ms) ROLLBACK
17315
+  (0.3ms) BEGIN
17316
+ Thing Load (1.5ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17317
+ Thing Load (4.0ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17318
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17319
+ Processing by ThingsController#show as HTML
17320
+ Parameters: {"id"=>"1"}
17321
+ Thing Load (3.9ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17322
+ Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 3.9ms)
17323
+  (5.4ms) ROLLBACK
17324
+  (0.3ms) BEGIN
17325
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17326
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17327
+ Ominous::Warning Load (0.3ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17328
+ Processing by ThingsController#show as HTML
17329
+ Parameters: {"id"=>"2"}
17330
+ Thing Load (6.2ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17331
+ Ominous::Warning Exists (0.4ms) SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
17332
+ Completed 200 OK in 10ms (Views: 2.0ms | ActiveRecord: 6.6ms)
17333
+  (10.7ms) ROLLBACK
17334
+  (0.3ms) BEGIN
17335
+ Thing Load (0.4ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17336
+ Thing Load (0.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
17337
+ Ominous::Warning Load (0.4ms) SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
17338
+ Processing by ThingsController#update as HTML
17339
+ Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
17340
+ Thing Load (5.3ms) SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
17341
+  (0.4ms) SAVEPOINT active_record_1
17342
+  (0.3ms) RELEASE SAVEPOINT active_record_1
17343
+ Redirected to http://test.host/things/1
17344
+ Completed 302 Found in 12ms (ActiveRecord: 6.0ms)
17345
+  (0.4ms) ROLLBACK
@@ -2,8 +2,19 @@ require 'test_helper'
2
2
 
3
3
  module Ominous
4
4
  class CloserTest < ActiveSupport::TestCase
5
- # test "the truth" do
6
- # assert true
7
- # end
5
+ def setup
6
+ @warning = Warning.find(1)
7
+ @closer = Closer.find(1)
8
+ end
9
+
10
+ def test_setup
11
+ assert(@warning.closers.include?(@closer))
12
+ end
13
+
14
+ def test_adding_closer_again_does_not_add_duplicate
15
+ assert_raise ActiveRecord::RecordInvalid do
16
+ @warning.closers << @closer
17
+ end
18
+ end
8
19
  end
9
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ominous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: