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 | 0e53ee2544b02b2a672e69923c906d603e5e15b2 (patch) | |
tree | 91778d86e5ab3799b27832441e793dc0b3f82eb7 | |
parent | c7fb5945f1b4f9b6239d97f27e43c06fd99d5921 (diff) |
Use the new get_type method to simplify the test-logic.
-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 |