diff options
-rwxr-xr-x | t/test-custodian-alertfactory.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/t/test-custodian-alertfactory.rb b/t/test-custodian-alertfactory.rb index 11ad4b9..4fd504e 100755 --- a/t/test-custodian-alertfactory.rb +++ b/t/test-custodian-alertfactory.rb @@ -37,12 +37,8 @@ class TestAlertFactory < Test::Unit::TestCase # Get the name of the class, and ensure it matches # what we expect. # - nm = obj.class - if ( nm =~ /Alerter::(.*)$/i ) - tst = $1.dup.downcase - - assert_equal( name, nm ) - end + a_type = obj.get_type + assert_equal( name, a_type) end end |