aboutsummaryrefslogtreecommitdiff
path: root/test/tc_mauve_notification.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-21 16:37:00 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-21 16:37:00 +0000
commitfb09cd3b24863a12f9bea9387db4bfbe635c5826 (patch)
tree22d7e39cd37cb3902ad6da13d28dce886d8d1c16 /test/tc_mauve_notification.rb
parentd19286223b4250478e8cfba14bc2fbfab62211fe (diff)
Added test to make sure alert_group gets cached.
Diffstat (limited to 'test/tc_mauve_notification.rb')
-rw-r--r--test/tc_mauve_notification.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/tc_mauve_notification.rb b/test/tc_mauve_notification.rb
index ea041f8..448c3ca 100644
--- a/test/tc_mauve_notification.rb
+++ b/test/tc_mauve_notification.rb
@@ -426,7 +426,13 @@ EOF
alert.raise!
assert_equal(1, Alert.count, "Wrong number of alerts saved")
-
+
+ #
+ # Make sure the alert group gets cached
+ #
+ alert.reload
+ assert_equal("default", alert.cached_alert_group)
+
#
# Also make sure that only 2 notifications has been sent..
#