diff options
| author | Steve Kemp <steve@steve.org.uk> | 2012-11-24 16:07:48 +0000 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2012-11-24 16:07:48 +0000 | 
| commit | f8f86a0321f82e816a93e6e531d4680dc0f7a587 (patch) | |
| tree | d13b0b8f52bb59b02e3aa05176046cf23c6077f2 /t | |
| parent | addd1528a7e981d368b0610314df6ebcbc7ef945 (diff) | |
  Ensure that our alert-modules implement both raise + clear
Diffstat (limited to 't')
| -rwxr-xr-x | t/test-custodian-alertfactory.rb | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/t/test-custodian-alertfactory.rb b/t/test-custodian-alertfactory.rb index 4fd504e..602ef5f 100755 --- a/t/test-custodian-alertfactory.rb +++ b/t/test-custodian-alertfactory.rb @@ -31,6 +31,10 @@ class TestAlertFactory < Test::Unit::TestCase      # Ensure we can create each of the two alert types we care about      #      %w( mauve smtp ).each do |name| + +      # +      #  Use the factory to instantiate the correct object. +      #        obj = Custodian::AlertFactory.create( name, nil )        # @@ -39,6 +43,13 @@ class TestAlertFactory < Test::Unit::TestCase        #        a_type = obj.get_type        assert_equal( name, a_type) + +      # +      # Ensure that the object implements the raise() + clear() +      # methods we mandate. +      # +      assert( obj.respond_to? "raise" ) +      assert( obj.respond_to? "clear" )      end    end | 
