From 857208e721a778a9f97dc838a935e92d98c7b89d Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 24 Nov 2012 16:07:48 +0000 Subject: Ensure that our alert-modules implement both raise + clear --- t/test-custodian-alertfactory.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 't') 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 -- cgit v1.2.1