From fb09cd3b24863a12f9bea9387db4bfbe635c5826 Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 21 Nov 2012 16:37:00 +0000 Subject: Added test to make sure alert_group gets cached. --- test/tc_mauve_notification.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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.. # -- cgit v1.2.1