aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-04-17 18:06:24 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-04-17 18:06:24 +0100
commit3a579efcd3ea7e4362f7abeb4138c4087e6f13c1 (patch)
tree35a1654cf752f31efb198fbbce0ba8a46a6ba6f4 /test
parentc8d16b7511969edbde58bc49ef44e0ff63e5cb8f (diff)
Changed method of including the Debug notification module. Now debug! can be
specified in the config to extend that particular instance of a notification method.
Diffstat (limited to 'test')
-rw-r--r--test/tc_mauve_configuration_builders_notification_method.rb16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/tc_mauve_configuration_builders_notification_method.rb b/test/tc_mauve_configuration_builders_notification_method.rb
index e5e8475..80768e8 100644
--- a/test/tc_mauve_configuration_builders_notification_method.rb
+++ b/test/tc_mauve_configuration_builders_notification_method.rb
@@ -1,13 +1,25 @@
$:.unshift "../lib/"
require 'th_mauve'
-require 'pp'
+require 'mauve/configuration_builder'
require 'mauve/configuration_builders/notification_method'
class TcMauveConfigurationBuildersNotificationMethod < Mauve::UnitTest
- def test_load
+ def test_debug_methods
+ config =<<EOF
+notification_method("email") {
+ debug!
+ disable_normal_delivery!
+ deliver_to_queue []
+}
+EOF
+ x = nil
+ assert_nothing_raised { x = Mauve::ConfigurationBuilder.parse(config) }
+ y = x.notification_methods["email"]
+
+ # TODO test delivery
end
end