aboutsummaryrefslogtreecommitdiff
path: root/test/tc_mauve_notification.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-18 18:11:10 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-18 18:11:10 +0100
commit6aba0c3d8e2d30797755dc8b968fe338e13b8df4 (patch)
treea9c3a469146a47fe88e3a56c8bf40c0ed9b66288 /test/tc_mauve_notification.rb
parentc30daf56d4aab9e41a993d82406cba947c8efe32 (diff)
* Fixed up Alert to postpone raises/clears within initial sleep period for old alerts
* Fixed up AlertChanged to do the same * Added a migration method for the new AlertHistories table * added singleton cleanup for tests * moar tests * cleaned up Alert a bit
Diffstat (limited to 'test/tc_mauve_notification.rb')
-rw-r--r--test/tc_mauve_notification.rb14
1 files changed, 4 insertions, 10 deletions
diff --git a/test/tc_mauve_notification.rb b/test/tc_mauve_notification.rb
index 435d5da..6b4c3d1 100644
--- a/test/tc_mauve_notification.rb
+++ b/test/tc_mauve_notification.rb
@@ -114,25 +114,19 @@ class TcMauveNotification < Mauve::UnitTest
include Mauve
def setup
- @logger = setup_logger
- Timecop.freeze(Time.local(2011,8,1,0,0,0,0))
+ super
+ setup_database
end
def teardown
- teardown_logger
- Timecop.return
- DataObjects::Pooling.pools.each{|pool| pool.dispose}
+ teardown_database
+ super
end
def test_notify
t = Time.now
config=<<EOF
-
-server {
- database "sqlite::memory:"
-}
-
person ("test1") {
all { true }
}