summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-04-16 16:14:33 +0100
committerSteve Kemp <steve@steve.org.uk>2015-04-16 16:14:33 +0100
commit5324663f8171ef1e9cf254868986629fe70f63f8 (patch)
treee44be3e98e1678a7fb2a60fdd961f9780952f2b3
parentc31a047c7ecf949b3cf8369985946f563957bf0a (diff)
Updated to cope with renamed API.
Rather than having "inverted" we now name the test-method "inverted?" which is more ideomatic.
-rwxr-xr-xt/test-custodian-testfactory.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/test-custodian-testfactory.rb b/t/test-custodian-testfactory.rb
index f36a821..a1cfdd9 100755
--- a/t/test-custodian-testfactory.rb
+++ b/t/test-custodian-testfactory.rb
@@ -237,7 +237,7 @@ class TestTestFactory < Test::Unit::TestCase
# Ensure we got the object, and the port was correct.
#
assert(obj, "created object via TestFactory.create('#{str}')")
- assert(obj[0].inverted == inv, "#{str} -> #{inv}")
+ assert(obj[0].inverted? == inv, "#{str} -> #{inv}")
end
end
@@ -270,10 +270,10 @@ class TestTestFactory < Test::Unit::TestCase
assert_nothing_raised do
test_one_obj = Custodian::TestFactory.create(test_one)
- assert(!test_one_obj[0].inverted)
+ assert(!test_one_obj[0].inverted?)
test_two_obj = Custodian::TestFactory.create(test_two)
- assert(test_two_obj[0].inverted, "Found inverted test for #{tst}")
+ assert(test_two_obj[0].inverted?, "Found inverted test for #{tst}")
assert_equal(tst, test_one_obj[0].get_type)
assert_equal(tst, test_two_obj[0].get_type)