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 +5 -1
- data/app/models/ominous/warning.rb +1 -0
- data/app/models/ominous/warning_closer.rb +2 -0
- data/lib/ominous/version.rb +1 -1
- data/test/dummy/log/test.log +801 -0
- data/test/unit/ominous/closer_test.rb +14 -3
- metadata +1 -1
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'
|
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
|
data/lib/ominous/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -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
|
[1m[35m (0.3ms)[0m ROLLBACK
|
16545
|
+
Connecting to database specified by database.yml
|
16546
|
+
[1m[36m (0.4ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
16547
|
+
[1m[35m (0.3ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
16548
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16549
|
+
[1m[35mFixture Delete (1.0ms)[0m DELETE FROM `ominous_warnings`
|
16550
|
+
[1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 15:30:34', '2012-12-10 15:30:34')[0m
|
16551
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 15:30:34', '2012-12-10 15:30:34')
|
16552
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM `ominous_warning_closers`[0m
|
16553
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 15:30:34', '2012-12-10 15:30:34', 980190962)
|
16554
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 15:30:34', '2012-12-10 15:30:34', 298486374)[0m
|
16555
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 15:30:34', '2012-12-10 15:30:34', 113629430)
|
16556
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM `ominous_closers`[0m
|
16557
|
+
[1m[35mFixture Insert (0.7ms)[0m INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 15:30:34', '2012-12-10 15:30:34')
|
16558
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 15:30:34', '2012-12-10 15:30:34')[0m
|
16559
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM `things`
|
16560
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 15:30:34', '2012-12-10 15:30:34')[0m
|
16561
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 15:30:34', '2012-12-10 15:30:34')
|
16562
|
+
[1m[36m (56.0ms)[0m [1mCOMMIT[0m
|
16563
|
+
[1m[35m (3.3ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
16564
|
+
[1m[36m (2.5ms)[0m [1mBEGIN[0m
|
16565
|
+
[1m[35mOminous::Warning Load (2.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16566
|
+
[1m[36mOminous::Closer Load (1.5ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
16567
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM `ominous_warning_closers`
|
16568
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
16569
|
+
[1m[35mOminous::WarningCloser Load (0.9ms)[0m SELECT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1) ORDER BY ominous_warning_closers.position DESC LIMIT 1
|
16570
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `ominous_warning_closers` (`closer_id`, `created_at`, `position`, `updated_at`, `warning_id`) VALUES (1, '2012-12-10 15:30:34', 3, '2012-12-10 15:30:34', 1)[0m
|
16571
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16572
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM `ominous_warning_closers` [0m
|
16573
|
+
[1m[35m (31.4ms)[0m ROLLBACK
|
16574
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16575
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16576
|
+
[1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
16577
|
+
[1m[35mOminous::Closer Exists (8.2ms)[0m SELECT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1
|
16578
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16579
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16580
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16581
|
+
[1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
16582
|
+
[1m[36mOminous::Closer Load (7.0ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1[0m
|
16583
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
16584
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16585
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16586
|
+
[1m[36mOminous::Closer Load (0.4ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
16587
|
+
[1m[35mOminous::Closer Load (1.5ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
16588
|
+
[1m[36mOminous::Closer Load (5.1ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1[0m
|
16589
|
+
[1m[35mOminous::Closer Load (0.7ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
|
16590
|
+
[1m[36mOminous::WarningCloser Load (0.5ms)[0m [1mSELECT DISTINCT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_warning_closers`.`closer_id` = 2 ORDER BY position LIMIT 1[0m
|
16591
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16592
|
+
[1m[36mSQL (7.6ms)[0m [1mUPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)[0m
|
16593
|
+
[1m[35m (0.5ms)[0m UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:30:35' WHERE `ominous_warning_closers`.`id` = 298486374
|
16594
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)[0m
|
16595
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16596
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16597
|
+
[1m[35mOminous::Closer Load (0.6ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
|
16598
|
+
[1m[36m (42.0ms)[0m [1mROLLBACK[0m
|
16599
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16600
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16601
|
+
[1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
16602
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16603
|
+
[1m[35m (0.8ms)[0m BEGIN
|
16604
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16605
|
+
[1m[35mOminous::Closer Load (0.4ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
16606
|
+
[1m[36mOminous::Warning Exists (0.6ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
|
16607
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16608
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16609
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16610
|
+
[1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
16611
|
+
[1m[35mOminous::Warning Exists (0.6ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1
|
16612
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16613
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16614
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16615
|
+
Processing by Ominous::WarningsController#dismiss as HTML
|
16616
|
+
Parameters: {"id"=>"1"}
|
16617
|
+
[1m[35mOminous::Warning Load (0.5ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
16621
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16622
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16623
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16624
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16625
|
+
[1m[35mThing Load (0.6ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16626
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16627
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM `things`
|
16628
|
+
Processing by ThingsController#create as HTML
|
16629
|
+
Parameters: {"thing"=>{"name"=>"Foo"}}
|
16630
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
16631
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 15:30:35', NULL, 'Foo', '2012-12-10 15:30:35')
|
16632
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16633
|
+
Redirected to http://test.host/things/5
|
16634
|
+
Completed 302 Found in 10ms (ActiveRecord: 1.2ms)
|
16635
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
|
16636
|
+
[1m[36m (47.5ms)[0m [1mROLLBACK[0m
|
16637
|
+
[1m[35m (4.9ms)[0m BEGIN
|
16638
|
+
[1m[36mThing Load (3.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16639
|
+
[1m[35mThing Load (1.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16640
|
+
[1m[36mOminous::Warning Load (0.9ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16641
|
+
[1m[35m (1.2ms)[0m SELECT COUNT(*) FROM `things`
|
16642
|
+
Processing by ThingsController#destroy as HTML
|
16643
|
+
Parameters: {"id"=>"1"}
|
16644
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16645
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
16646
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM `things` WHERE `things`.`id` = 1[0m
|
16647
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
16648
|
+
Redirected to http://test.host/things
|
16649
|
+
Completed 302 Found in 9ms (ActiveRecord: 2.2ms)
|
16650
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
|
16651
|
+
[1m[35m (40.5ms)[0m ROLLBACK
|
16652
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
16653
|
+
[1m[35mThing Load (0.9ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16654
|
+
[1m[36mThing Load (2.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
16655
|
+
[1m[35mOminous::Warning Load (0.5ms)[0m 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
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16659
|
+
Rendered things/_form.html.erb (12.9ms)
|
16660
|
+
[1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
|
16661
|
+
[1m[36mOminous::Closer Load (0.7ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
|
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
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16665
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16666
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16667
|
+
[1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
16668
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16669
|
+
Processing by ThingsController#index as HTML
|
16670
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` [0m
|
16671
|
+
Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms)
|
16672
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16673
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
16674
|
+
[1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16675
|
+
[1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
16676
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16681
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16682
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16683
|
+
[1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16684
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16685
|
+
Processing by ThingsController#show as HTML
|
16686
|
+
Parameters: {"id"=>"1"}
|
16687
|
+
[1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16688
|
+
[1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
|
16689
|
+
[1m[35mOminous::Closer Load (0.4ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
|
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
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
16693
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16694
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16695
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16696
|
+
[1m[36mOminous::Warning Load (1.8ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16697
|
+
Processing by ThingsController#show as HTML
|
16698
|
+
Parameters: {"id"=>"1"}
|
16699
|
+
[1m[35mThing Load (4.1ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16700
|
+
Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 4.1ms)
|
16701
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
16702
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16703
|
+
[1m[36mThing Load (1.9ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16704
|
+
[1m[35mThing Load (4.6ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16705
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16706
|
+
Processing by ThingsController#show as HTML
|
16707
|
+
Parameters: {"id"=>"2"}
|
16708
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16709
|
+
[1m[36mOminous::Warning Exists (6.8ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
|
16710
|
+
[1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
|
16711
|
+
[1m[36mOminous::Closer Load (3.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
|
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
|
+
[1m[35m (1.1ms)[0m ROLLBACK
|
16715
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16716
|
+
[1m[35mThing Load (1.7ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16717
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
16718
|
+
[1m[35mOminous::Warning Load (0.4ms)[0m 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
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16722
|
+
Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.4ms)
|
16723
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
16724
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16725
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16726
|
+
[1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
16727
|
+
[1m[35mOminous::Warning Load (0.4ms)[0m 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
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
16731
|
+
[1m[35mOminous::Warning Exists (0.4ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
16734
|
+
[1m[35m (3.8ms)[0m BEGIN
|
16735
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16736
|
+
[1m[35mThing Load (1.0ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16737
|
+
[1m[36mOminous::Warning Load (1.0ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16738
|
+
Processing by ThingsController#update as HTML
|
16739
|
+
Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
|
16740
|
+
[1m[35mThing Load (0.7ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16741
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
16742
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
16743
|
+
Redirected to http://test.host/things/1
|
16744
|
+
Completed 302 Found in 17ms (ActiveRecord: 1.4ms)
|
16745
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
16746
|
+
Connecting to database specified by database.yml
|
16747
|
+
[1m[36m (0.5ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
16748
|
+
[1m[35m (7.7ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
16749
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
16750
|
+
[1m[35mFixture Delete (0.9ms)[0m DELETE FROM `ominous_warnings`
|
16751
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 15:31:02', '2012-12-10 15:31:02')[0m
|
16752
|
+
[1m[35mFixture Insert (0.6ms)[0m INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 15:31:02', '2012-12-10 15:31:02')
|
16753
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM `ominous_warning_closers`[0m
|
16754
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 15:31:02', '2012-12-10 15:31:02', 980190962)
|
16755
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 15:31:02', '2012-12-10 15:31:02', 298486374)[0m
|
16756
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 15:31:02', '2012-12-10 15:31:02', 113629430)
|
16757
|
+
[1m[36mFixture Delete (0.3ms)[0m [1mDELETE FROM `ominous_closers`[0m
|
16758
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 15:31:02', '2012-12-10 15:31:02')
|
16759
|
+
[1m[36mFixture Insert (2.0ms)[0m [1mINSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 15:31:02', '2012-12-10 15:31:02')[0m
|
16760
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM `things`
|
16761
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 15:31:02', '2012-12-10 15:31:02')[0m
|
16762
|
+
[1m[35mFixture Insert (1.2ms)[0m INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 15:31:02', '2012-12-10 15:31:02')
|
16763
|
+
[1m[36m (50.8ms)[0m [1mCOMMIT[0m
|
16764
|
+
[1m[35m (0.3ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
16765
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16766
|
+
[1m[35mOminous::Warning Load (0.7ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16767
|
+
[1m[36mOminous::Closer Load (0.7ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
16768
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM `ominous_warning_closers`
|
16769
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
16770
|
+
[1m[35mOminous::WarningCloser Load (7.0ms)[0m SELECT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1) ORDER BY ominous_warning_closers.position DESC LIMIT 1
|
16771
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `ominous_warning_closers` (`closer_id`, `created_at`, `position`, `updated_at`, `warning_id`) VALUES (1, '2012-12-10 15:31:02', 3, '2012-12-10 15:31:02', 1)[0m
|
16772
|
+
[1m[35m (4.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16773
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `ominous_warning_closers` [0m
|
16774
|
+
[1m[35m (32.5ms)[0m ROLLBACK
|
16775
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16776
|
+
[1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16777
|
+
[1m[36mOminous::Closer Load (2.1ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
16778
|
+
[1m[35mOminous::Closer Exists (0.7ms)[0m SELECT DISTINCT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1
|
16779
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16780
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16781
|
+
[1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16782
|
+
[1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
16783
|
+
[1m[36mOminous::Closer Load (0.6ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1[0m
|
16784
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
16785
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16786
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16787
|
+
[1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
16788
|
+
[1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
16789
|
+
[1m[36mOminous::Closer Load (0.4ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1[0m
|
16790
|
+
[1m[35mOminous::Closer Load (2.7ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
|
16791
|
+
[1m[36mOminous::WarningCloser Load (0.6ms)[0m [1mSELECT DISTINCT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_warning_closers`.`closer_id` = 2 ORDER BY position LIMIT 1[0m
|
16792
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
16793
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)[0m
|
16794
|
+
[1m[35m (0.6ms)[0m UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:31:02' WHERE `ominous_warning_closers`.`id` = 298486374
|
16795
|
+
[1m[36m (4.0ms)[0m [1mSELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)[0m
|
16796
|
+
[1m[35m (0.5ms)[0m RELEASE SAVEPOINT active_record_1
|
16797
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16798
|
+
[1m[35mOminous::Closer Load (0.7ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
|
16799
|
+
[1m[36m (41.8ms)[0m [1mROLLBACK[0m
|
16800
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16801
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16802
|
+
[1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
16803
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
16804
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16805
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16806
|
+
[1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
16807
|
+
[1m[36mOminous::Warning Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
|
16808
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16809
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16810
|
+
[1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16811
|
+
[1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
16812
|
+
[1m[35mOminous::Warning Exists (0.4ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1
|
16813
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16814
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16815
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16816
|
+
Processing by Ominous::WarningsController#dismiss as HTML
|
16817
|
+
Parameters: {"id"=>"1"}
|
16818
|
+
[1m[35mOminous::Warning Load (0.6ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
16822
|
+
[1m[35m (0.4ms)[0m BEGIN
|
16823
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
16824
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16825
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16826
|
+
[1m[35mThing Load (0.8ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16827
|
+
[1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16828
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
|
16829
|
+
Processing by ThingsController#create as HTML
|
16830
|
+
Parameters: {"thing"=>{"name"=>"Foo"}}
|
16831
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
16832
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 15:31:03', NULL, 'Foo', '2012-12-10 15:31:03')
|
16833
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16834
|
+
Redirected to http://test.host/things/6
|
16835
|
+
Completed 302 Found in 13ms (ActiveRecord: 1.5ms)
|
16836
|
+
[1m[35m (1.4ms)[0m SELECT COUNT(*) FROM `things`
|
16837
|
+
[1m[36m (41.1ms)[0m [1mROLLBACK[0m
|
16838
|
+
[1m[35m (1.1ms)[0m BEGIN
|
16839
|
+
[1m[36mThing Load (3.0ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16840
|
+
[1m[35mThing Load (1.7ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16841
|
+
[1m[36mOminous::Warning Load (1.2ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16842
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
|
16843
|
+
Processing by ThingsController#destroy as HTML
|
16844
|
+
Parameters: {"id"=>"1"}
|
16845
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16846
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
16847
|
+
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM `things` WHERE `things`.`id` = 1[0m
|
16848
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16849
|
+
Redirected to http://test.host/things
|
16850
|
+
Completed 302 Found in 7ms (ActiveRecord: 1.9ms)
|
16851
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
|
16852
|
+
[1m[35m (42.2ms)[0m ROLLBACK
|
16853
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16854
|
+
[1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16855
|
+
[1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
16856
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m 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
|
+
[1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16860
|
+
Rendered things/_form.html.erb (10.8ms)
|
16861
|
+
[1m[35mOminous::Warning Load (0.6ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
|
16862
|
+
[1m[36mOminous::Closer Load (0.8ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
|
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
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16866
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16867
|
+
[1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16868
|
+
[1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
16869
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16870
|
+
Processing by ThingsController#index as HTML
|
16871
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` [0m
|
16872
|
+
Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.5ms)
|
16873
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
16874
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16875
|
+
[1m[35mThing Load (1.7ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16876
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
16877
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m 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
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
16882
|
+
[1m[35m (0.4ms)[0m BEGIN
|
16883
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16884
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16885
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16886
|
+
Processing by ThingsController#show as HTML
|
16887
|
+
Parameters: {"id"=>"1"}
|
16888
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16889
|
+
[1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
|
16890
|
+
[1m[35mOminous::Closer Load (0.5ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
|
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
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
16894
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16895
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16896
|
+
[1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16897
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16898
|
+
Processing by ThingsController#show as HTML
|
16899
|
+
Parameters: {"id"=>"1"}
|
16900
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16901
|
+
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)
|
16902
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
16903
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16904
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16905
|
+
[1m[35mThing Load (0.6ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16906
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16907
|
+
Processing by ThingsController#show as HTML
|
16908
|
+
Parameters: {"id"=>"2"}
|
16909
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16910
|
+
[1m[36mOminous::Warning Exists (0.4ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
|
16911
|
+
[1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
|
16912
|
+
[1m[36mOminous::Closer Load (0.7ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
|
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
|
+
[1m[35m (1.2ms)[0m ROLLBACK
|
16916
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16917
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16918
|
+
[1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
16919
|
+
[1m[35mOminous::Warning Load (0.4ms)[0m 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
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16923
|
+
Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.4ms)
|
16924
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
16925
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16926
|
+
[1m[35mThing Load (0.6ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16927
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
16928
|
+
[1m[35mOminous::Warning Load (0.7ms)[0m 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
|
+
[1m[36mThing Load (4.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
16932
|
+
[1m[35mOminous::Warning Exists (4.6ms)[0m 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
|
+
[1m[36m (5.2ms)[0m [1mROLLBACK[0m
|
16935
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16936
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
16937
|
+
[1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
16938
|
+
[1m[36mOminous::Warning Load (5.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16939
|
+
Processing by ThingsController#update as HTML
|
16940
|
+
Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
|
16941
|
+
[1m[35mThing Load (1.0ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
16942
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
16943
|
+
[1m[35m (0.6ms)[0m RELEASE SAVEPOINT active_record_1
|
16944
|
+
Redirected to http://test.host/things/1
|
16945
|
+
Completed 302 Found in 8ms (ActiveRecord: 2.0ms)
|
16946
|
+
[1m[36m (1.4ms)[0m [1mROLLBACK[0m
|
16947
|
+
Connecting to database specified by database.yml
|
16948
|
+
[1m[36m (0.7ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
16949
|
+
[1m[35m (0.3ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
16950
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
16951
|
+
[1m[35mFixture Delete (1.3ms)[0m DELETE FROM `ominous_warnings`
|
16952
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 15:58:09', '2012-12-10 15:58:09')[0m
|
16953
|
+
[1m[35mFixture Insert (0.6ms)[0m INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 15:58:09', '2012-12-10 15:58:09')
|
16954
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM `ominous_warning_closers`[0m
|
16955
|
+
[1m[35mFixture Insert (0.6ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 15:58:10', '2012-12-10 15:58:10', 980190962)
|
16956
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 15:58:10', '2012-12-10 15:58:10', 298486374)[0m
|
16957
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 15:58:10', '2012-12-10 15:58:10', 113629430)
|
16958
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM `ominous_closers`[0m
|
16959
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 15:58:10', '2012-12-10 15:58:10')
|
16960
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 15:58:10', '2012-12-10 15:58:10')[0m
|
16961
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM `things`
|
16962
|
+
[1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 15:58:10', '2012-12-10 15:58:10')[0m
|
16963
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 15:58:10', '2012-12-10 15:58:10')
|
16964
|
+
[1m[36m (80.5ms)[0m [1mCOMMIT[0m
|
16965
|
+
[1m[35m (0.8ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
16966
|
+
[1m[36m (1.2ms)[0m [1mBEGIN[0m
|
16967
|
+
[1m[35mOminous::Warning Load (1.9ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16968
|
+
[1m[36mOminous::Closer Load (0.9ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
16969
|
+
[1m[35m (1.3ms)[0m SELECT COUNT(*) FROM `ominous_warning_closers`
|
16970
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
16971
|
+
[1m[35mOminous::WarningCloser Exists (0.7ms)[0m SELECT 1 AS one FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`closer_id` = BINARY 1 AND `ominous_warning_closers`.`warning_id` = 1) LIMIT 1
|
16972
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16973
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
16974
|
+
[1m[36m (4.1ms)[0m [1mBEGIN[0m
|
16975
|
+
[1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16976
|
+
[1m[36mOminous::Closer Load (0.4ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
16977
|
+
[1m[35mOminous::Closer Exists (0.7ms)[0m SELECT DISTINCT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1
|
16978
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16979
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16980
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
16981
|
+
[1m[35mOminous::Closer Load (0.4ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
16982
|
+
[1m[36mOminous::Closer Load (0.8ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1[0m
|
16983
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
16984
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16985
|
+
[1m[35mOminous::Warning Load (1.6ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16986
|
+
[1m[36mOminous::Closer Load (7.6ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
16987
|
+
[1m[35mOminous::Closer Load (0.4ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
16988
|
+
[1m[36mOminous::Closer Load (0.5ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1[0m
|
16989
|
+
[1m[35mOminous::Closer Load (0.9ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
|
16990
|
+
[1m[36mOminous::WarningCloser Load (0.6ms)[0m [1mSELECT DISTINCT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_warning_closers`.`closer_id` = 2 ORDER BY position LIMIT 1[0m
|
16991
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
16992
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)[0m
|
16993
|
+
[1m[35mOminous::WarningCloser Exists (0.7ms)[0m SELECT 1 AS one FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`closer_id` = BINARY 2 AND `ominous_warning_closers`.`id` != 298486374 AND `ominous_warning_closers`.`warning_id` = 1) LIMIT 1
|
16994
|
+
[1m[36m (0.6ms)[0m [1mUPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:58:10' WHERE `ominous_warning_closers`.`id` = 298486374[0m
|
16995
|
+
[1m[35m (3.5ms)[0m SELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)
|
16996
|
+
[1m[36m (7.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16997
|
+
[1m[35mOminous::Warning Load (2.8ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
16998
|
+
[1m[36mOminous::Closer Load (0.9ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
|
16999
|
+
[1m[35m (67.9ms)[0m ROLLBACK
|
17000
|
+
[1m[36m (1.0ms)[0m [1mBEGIN[0m
|
17001
|
+
[1m[35mOminous::Warning Load (1.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
17002
|
+
[1m[36mOminous::Closer Load (9.2ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
17003
|
+
[1m[35m (3.1ms)[0m ROLLBACK
|
17004
|
+
[1m[36m (0.6ms)[0m [1mBEGIN[0m
|
17005
|
+
[1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
17006
|
+
[1m[36mOminous::Closer Load (2.0ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
17007
|
+
[1m[35mOminous::Warning Exists (0.8ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
|
17008
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
17009
|
+
[1m[35m (0.7ms)[0m BEGIN
|
17010
|
+
[1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17011
|
+
[1m[35mOminous::Closer Load (0.5ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
17012
|
+
[1m[36mOminous::Warning Exists (0.7ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1[0m
|
17013
|
+
[1m[35m (1.1ms)[0m ROLLBACK
|
17014
|
+
[1m[36m (0.5ms)[0m [1mBEGIN[0m
|
17015
|
+
[1m[35mOminous::Warning Load (0.4ms)[0m 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
|
+
[1m[36mOminous::Warning Load (0.7ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17019
|
+
Rendered text template (0.0ms)
|
17020
|
+
Completed 200 OK in 40ms (Views: 37.4ms | ActiveRecord: 0.7ms)
|
17021
|
+
[1m[35m (0.7ms)[0m ROLLBACK
|
17022
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17023
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17024
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17025
|
+
[1m[35mThing Load (1.8ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17026
|
+
[1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17027
|
+
[1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
17028
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
|
17029
|
+
Processing by ThingsController#create as HTML
|
17030
|
+
Parameters: {"thing"=>{"name"=>"Foo"}}
|
17031
|
+
[1m[35m (1.6ms)[0m SAVEPOINT active_record_1
|
17032
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 15:58:10', NULL, 'Foo', '2012-12-10 15:58:10')[0m
|
17033
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17034
|
+
Redirected to http://test.host/things/7
|
17035
|
+
Completed 302 Found in 10ms (ActiveRecord: 2.5ms)
|
17036
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
|
17037
|
+
[1m[35m (45.7ms)[0m ROLLBACK
|
17038
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17039
|
+
[1m[35mThing Load (0.7ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17040
|
+
[1m[36mThing Load (1.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17041
|
+
[1m[35mOminous::Warning Load (0.4ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
17042
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
|
17043
|
+
Processing by ThingsController#destroy as HTML
|
17044
|
+
Parameters: {"id"=>"1"}
|
17045
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17046
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17047
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM `things` WHERE `things`.`id` = 1
|
17048
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17049
|
+
Redirected to http://test.host/things
|
17050
|
+
Completed 302 Found in 6ms (ActiveRecord: 1.6ms)
|
17051
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
|
17052
|
+
[1m[36m (46.5ms)[0m [1mROLLBACK[0m
|
17053
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17054
|
+
[1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17055
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17056
|
+
[1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17057
|
+
Processing by ThingsController#edit as HTML
|
17058
|
+
Parameters: {"id"=>"1"}
|
17059
|
+
[1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17060
|
+
Rendered things/_form.html.erb (3.9ms)
|
17061
|
+
[1m[36mOminous::Warning Load (2.7ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
|
17062
|
+
[1m[35mOminous::Closer Load (1.2ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
|
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
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
17066
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17067
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17068
|
+
[1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17069
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17070
|
+
Processing by ThingsController#index as HTML
|
17071
|
+
[1m[35mThing Load (0.6ms)[0m SELECT `things`.* FROM `things`
|
17072
|
+
Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms)
|
17073
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
17074
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17075
|
+
[1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17076
|
+
[1m[35mThing Load (1.6ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17077
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
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
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
17082
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17083
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17084
|
+
[1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17085
|
+
[1m[35mOminous::Warning Load (28.2ms)[0m 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
|
+
[1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17089
|
+
[1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
|
17090
|
+
[1m[36mOminous::Closer Load (0.5ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
|
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
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
17094
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17095
|
+
[1m[35mThing Load (6.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17096
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17097
|
+
[1m[35mOminous::Warning Load (0.4ms)[0m 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
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17101
|
+
Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.5ms)
|
17102
|
+
[1m[35m (9.4ms)[0m ROLLBACK
|
17103
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17104
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17105
|
+
[1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17106
|
+
[1m[35mOminous::Warning Load (1.1ms)[0m 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
|
+
[1m[36mThing Load (4.2ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17110
|
+
[1m[35mOminous::Warning Exists (0.4ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
|
17111
|
+
[1m[36mOminous::Warning Load (0.6ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
|
17112
|
+
[1m[35mOminous::Closer Load (4.1ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
|
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
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
17116
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17117
|
+
[1m[36mThing Load (1.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17118
|
+
[1m[35mThing Load (3.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17119
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17120
|
+
Processing by ThingsController#show as HTML
|
17121
|
+
Parameters: {"id"=>"1"}
|
17122
|
+
[1m[35mThing Load (2.9ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17123
|
+
Completed 200 OK in 6ms (Views: 1.4ms | ActiveRecord: 2.9ms)
|
17124
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
17125
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17126
|
+
[1m[36mThing Load (1.8ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17127
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17128
|
+
[1m[36mOminous::Warning Load (2.6ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17129
|
+
Processing by ThingsController#show as HTML
|
17130
|
+
Parameters: {"id"=>"2"}
|
17131
|
+
[1m[35mThing Load (1.0ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17132
|
+
[1m[36mOminous::Warning Exists (3.6ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
|
17133
|
+
Completed 200 OK in 10ms (Views: 2.2ms | ActiveRecord: 4.5ms)
|
17134
|
+
[1m[35m (4.1ms)[0m ROLLBACK
|
17135
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17136
|
+
[1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17137
|
+
[1m[36mThing Load (1.1ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17138
|
+
[1m[35mOminous::Warning Load (2.5ms)[0m 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
|
+
[1m[36mThing Load (0.6ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17142
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
17143
|
+
[1m[36m (2.9ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17144
|
+
Redirected to http://test.host/things/1
|
17145
|
+
Completed 302 Found in 13ms (ActiveRecord: 3.9ms)
|
17146
|
+
[1m[35m (2.7ms)[0m ROLLBACK
|
17147
|
+
Connecting to database specified by database.yml
|
17148
|
+
[1m[36m (0.4ms)[0m [1mSELECT @@FOREIGN_KEY_CHECKS[0m
|
17149
|
+
[1m[35m (0.3ms)[0m SET FOREIGN_KEY_CHECKS = 0
|
17150
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17151
|
+
[1m[35mFixture Delete (1.0ms)[0m DELETE FROM `ominous_warnings`
|
17152
|
+
[1m[36mFixture Insert (0.8ms)[0m [1mINSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'thing_alert', '2012-12-10 15:58:56', '2012-12-10 15:58:56')[0m
|
17153
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warnings` (`id`, `name`, `created_at`, `updated_at`) VALUES (2, 'other_alert', '2012-12-10 15:58:56', '2012-12-10 15:58:56')
|
17154
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM `ominous_warning_closers`[0m
|
17155
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 1, 1, '2012-12-10 15:58:56', '2012-12-10 15:58:56', 980190962)
|
17156
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (1, 2, 2, '2012-12-10 15:58:56', '2012-12-10 15:58:56', 298486374)[0m
|
17157
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_warning_closers` (`warning_id`, `closer_id`, `position`, `created_at`, `updated_at`, `id`) VALUES (2, 2, 1, '2012-12-10 15:58:56', '2012-12-10 15:58:56', 113629430)
|
17158
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM `ominous_closers`[0m
|
17159
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO `ominous_closers` (`id`, `name`, `closure_method`, `created_at`, `updated_at`) VALUES (1, 'closer_one', 'close_and_dismiss_warning', '2012-12-10 15:58:56', '2012-12-10 15:58:56')
|
17160
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `ominous_closers` (`id`, `name`, `url`, `closure_method`, `created_at`, `updated_at`) VALUES (2, 'closer_two', 'http://undervale.co.uk', 'redirect', '2012-12-10 15:58:56', '2012-12-10 15:58:56')[0m
|
17161
|
+
[1m[35mFixture Delete (0.9ms)[0m DELETE FROM `things`
|
17162
|
+
[1m[36mFixture Insert (0.4ms)[0m [1mINSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (1, 'Foo', 0, '2012-12-10 15:58:56', '2012-12-10 15:58:56')[0m
|
17163
|
+
[1m[35mFixture Insert (1.8ms)[0m INSERT INTO `things` (`id`, `name`, `has_warning`, `created_at`, `updated_at`) VALUES (2, 'Bar', 1, '2012-12-10 15:58:56', '2012-12-10 15:58:56')
|
17164
|
+
[1m[36m (43.9ms)[0m [1mCOMMIT[0m
|
17165
|
+
[1m[35m (0.2ms)[0m SET FOREIGN_KEY_CHECKS = 1
|
17166
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17167
|
+
[1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
17168
|
+
[1m[36mOminous::Closer Load (5.0ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
17169
|
+
[1m[35m (0.5ms)[0m SAVEPOINT active_record_1
|
17170
|
+
[1m[36mOminous::WarningCloser Exists (0.6ms)[0m [1mSELECT 1 AS one FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`closer_id` = BINARY 1 AND `ominous_warning_closers`.`warning_id` = 1) LIMIT 1[0m
|
17171
|
+
[1m[35m (0.4ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
17172
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17173
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17174
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17175
|
+
[1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
17176
|
+
[1m[36mOminous::Closer Exists (0.8ms)[0m [1mSELECT DISTINCT 1 AS one FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 LIMIT 1[0m
|
17177
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
17178
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17179
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
17180
|
+
[1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
17181
|
+
[1m[35mOminous::Closer Load (0.7ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_closers`.`id` = 1 ORDER BY position LIMIT 1
|
17182
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17183
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17184
|
+
[1m[36mOminous::Warning Load (0.5ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17185
|
+
[1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
17186
|
+
[1m[36mOminous::Closer Load (0.3ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
17187
|
+
[1m[35mOminous::Closer Load (0.4ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 2 LIMIT 1
|
17188
|
+
[1m[36mOminous::Closer Load (0.6ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
|
17189
|
+
[1m[35mOminous::WarningCloser Load (1.7ms)[0m SELECT DISTINCT `ominous_warning_closers`.* FROM `ominous_warning_closers` WHERE `ominous_warning_closers`.`warning_id` = 1 AND `ominous_warning_closers`.`closer_id` = 2 ORDER BY position LIMIT 1
|
17190
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17191
|
+
[1m[35mSQL (0.6ms)[0m UPDATE `ominous_warning_closers` SET position = (position + 1) WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position < 2)
|
17192
|
+
[1m[36mOminous::WarningCloser Exists (0.6ms)[0m [1mSELECT 1 AS one FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`closer_id` = BINARY 2 AND `ominous_warning_closers`.`id` != 298486374 AND `ominous_warning_closers`.`warning_id` = 1) LIMIT 1[0m
|
17193
|
+
[1m[35m (0.7ms)[0m UPDATE `ominous_warning_closers` SET `position` = 1, `updated_at` = '2012-12-10 15:58:56' WHERE `ominous_warning_closers`.`id` = 298486374
|
17194
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM `ominous_warning_closers` WHERE (`ominous_warning_closers`.`warning_id` = 1 AND position = 1)[0m
|
17195
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17196
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17197
|
+
[1m[35mOminous::Closer Load (0.6ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
|
17198
|
+
[1m[36m (41.9ms)[0m [1mROLLBACK[0m
|
17199
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17200
|
+
[1m[36mOminous::Warning Load (0.9ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17201
|
+
[1m[35mOminous::Closer Load (0.6ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
17202
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
17203
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17204
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17205
|
+
[1m[35mOminous::Closer Load (0.3ms)[0m SELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1
|
17206
|
+
[1m[36mOminous::Warning Exists (0.5ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
|
17207
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17208
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17209
|
+
[1m[35mOminous::Warning Load (0.6ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
17210
|
+
[1m[36mOminous::Closer Load (0.5ms)[0m [1mSELECT `ominous_closers`.* FROM `ominous_closers` WHERE `ominous_closers`.`id` = 1 LIMIT 1[0m
|
17211
|
+
[1m[35mOminous::Warning Exists (0.4ms)[0m SELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'does_not_exist' LIMIT 1
|
17212
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17213
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17214
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17215
|
+
Processing by Ominous::WarningsController#dismiss as HTML
|
17216
|
+
Parameters: {"id"=>"1"}
|
17217
|
+
[1m[35mOminous::Warning Load (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17221
|
+
[1m[35m (0.5ms)[0m BEGIN
|
17222
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17223
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17224
|
+
[1m[36mThing Load (0.7ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17225
|
+
[1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17226
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17227
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
|
17228
|
+
Processing by ThingsController#create as HTML
|
17229
|
+
Parameters: {"thing"=>{"name"=>"Foo"}}
|
17230
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17231
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO `things` (`created_at`, `has_warning`, `name`, `updated_at`) VALUES ('2012-12-10 15:58:56', NULL, 'Foo', '2012-12-10 15:58:56')
|
17232
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17233
|
+
Redirected to http://test.host/things/8
|
17234
|
+
Completed 302 Found in 11ms (ActiveRecord: 1.0ms)
|
17235
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM `things`
|
17236
|
+
[1m[36m (47.0ms)[0m [1mROLLBACK[0m
|
17237
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17238
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17239
|
+
[1m[35mThing Load (0.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17240
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17241
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM `things`
|
17242
|
+
Processing by ThingsController#destroy as HTML
|
17243
|
+
Parameters: {"id"=>"1"}
|
17244
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17245
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17246
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM `things` WHERE `things`.`id` = 1[0m
|
17247
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17248
|
+
Redirected to http://test.host/things
|
17249
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
|
17250
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM `things` [0m
|
17251
|
+
[1m[35m (40.0ms)[0m ROLLBACK
|
17252
|
+
[1m[36m (2.6ms)[0m [1mBEGIN[0m
|
17253
|
+
[1m[35mThing Load (1.0ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17254
|
+
[1m[36mThing Load (0.8ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17255
|
+
[1m[35mOminous::Warning Load (0.6ms)[0m 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
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17259
|
+
Rendered things/_form.html.erb (4.3ms)
|
17260
|
+
[1m[35mOminous::Warning Load (0.5ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
|
17261
|
+
[1m[36mOminous::Closer Load (0.8ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
|
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
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17265
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17266
|
+
[1m[35mThing Load (0.6ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17267
|
+
[1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17268
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1
|
17269
|
+
Processing by ThingsController#index as HTML
|
17270
|
+
[1m[36mThing Load (0.5ms)[0m [1mSELECT `things`.* FROM `things` [0m
|
17271
|
+
Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.5ms)
|
17272
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17273
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17274
|
+
[1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17275
|
+
[1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17276
|
+
[1m[35mOminous::Warning Load (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17281
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17282
|
+
[1m[36mThing Load (0.3ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17283
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17284
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17285
|
+
Processing by ThingsController#show as HTML
|
17286
|
+
Parameters: {"id"=>"1"}
|
17287
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17288
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
|
17289
|
+
[1m[35mOminous::Closer Load (0.4ms)[0m SELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position
|
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
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
17293
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17294
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17295
|
+
[1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17296
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17297
|
+
Processing by ThingsController#show as HTML
|
17298
|
+
Parameters: {"id"=>"1"}
|
17299
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17300
|
+
Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.4ms)
|
17301
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
17302
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17303
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17304
|
+
[1m[35mThing Load (0.7ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17305
|
+
[1m[36mOminous::Warning Load (0.3ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17306
|
+
Processing by ThingsController#show as HTML
|
17307
|
+
Parameters: {"id"=>"2"}
|
17308
|
+
[1m[35mThing Load (2.9ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17309
|
+
[1m[36mOminous::Warning Exists (0.4ms)[0m [1mSELECT 1 AS one FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1[0m
|
17310
|
+
[1m[35mOminous::Warning Load (3.7ms)[0m SELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`name` = 'thing_alert' LIMIT 1
|
17311
|
+
[1m[36mOminous::Closer Load (4.7ms)[0m [1mSELECT DISTINCT `ominous_closers`.* FROM `ominous_closers` INNER JOIN `ominous_warning_closers` ON `ominous_closers`.`id` = `ominous_warning_closers`.`closer_id` WHERE `ominous_warning_closers`.`warning_id` = 1 ORDER BY position[0m
|
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
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
17315
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17316
|
+
[1m[35mThing Load (1.5ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17317
|
+
[1m[36mThing Load (4.0ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17318
|
+
[1m[35mOminous::Warning Load (0.4ms)[0m 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
|
+
[1m[36mThing Load (3.9ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17322
|
+
Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 3.9ms)
|
17323
|
+
[1m[35m (5.4ms)[0m ROLLBACK
|
17324
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
17325
|
+
[1m[35mThing Load (0.4ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17326
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17327
|
+
[1m[35mOminous::Warning Load (0.3ms)[0m 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
|
+
[1m[36mThing Load (6.2ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1[0m
|
17331
|
+
[1m[35mOminous::Warning Exists (0.4ms)[0m 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
|
+
[1m[36m (10.7ms)[0m [1mROLLBACK[0m
|
17334
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17335
|
+
[1m[36mThing Load (0.4ms)[0m [1mSELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1[0m
|
17336
|
+
[1m[35mThing Load (0.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 2 LIMIT 1
|
17337
|
+
[1m[36mOminous::Warning Load (0.4ms)[0m [1mSELECT `ominous_warnings`.* FROM `ominous_warnings` WHERE `ominous_warnings`.`id` = 1 LIMIT 1[0m
|
17338
|
+
Processing by ThingsController#update as HTML
|
17339
|
+
Parameters: {"thing"=>{"name"=>"Foo"}, "id"=>"1"}
|
17340
|
+
[1m[35mThing Load (5.3ms)[0m SELECT `things`.* FROM `things` WHERE `things`.`id` = 1 LIMIT 1
|
17341
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
17342
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17343
|
+
Redirected to http://test.host/things/1
|
17344
|
+
Completed 302 Found in 12ms (ActiveRecord: 6.0ms)
|
17345
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
@@ -2,8 +2,19 @@ require 'test_helper'
|
|
2
2
|
|
3
3
|
module Ominous
|
4
4
|
class CloserTest < ActiveSupport::TestCase
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|