summaryrefslogtreecommitdiff
path: root/t/test-custodian-alertfactory.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-24 15:01:20 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-24 15:01:20 +0000
commit0e53ee2544b02b2a672e69923c906d603e5e15b2 (patch)
tree91778d86e5ab3799b27832441e793dc0b3f82eb7 /t/test-custodian-alertfactory.rb
parentc7fb5945f1b4f9b6239d97f27e43c06fd99d5921 (diff)
Use the new get_type method to simplify the test-logic.
Diffstat (limited to 't/test-custodian-alertfactory.rb')
-rwxr-xr-xt/test-custodian-alertfactory.rb8
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