aboutsummaryrefslogtreecommitdiff
path: root/test/tc_mauve_configuration_builders_notification_method.rb
blob: 80768e885c4a865d472803480bb948ab5ef3387b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$:.unshift "../lib/"

require 'th_mauve'
require 'mauve/configuration_builder'
require 'mauve/configuration_builders/notification_method'

class TcMauveConfigurationBuildersNotificationMethod < Mauve::UnitTest

  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