diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-24 15:01:20 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-24 15:01:20 +0000 |
commit | e2efc7e43928b0ad9a88172e73fbd449edbe4eae (patch) | |
tree | 91778d86e5ab3799b27832441e793dc0b3f82eb7 /t | |
parent | 8bafdd0e6c8dcb792b71d001821e8701c9df7fee (diff) |
Use the new get_type method to simplify the test-logic.
Diffstat (limited to 't')
-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 |