summaryrefslogtreecommitdiff
path: root/t/test-custodian-testfactory.rb
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
commit5310dc73bd0dd3bda2bb2d71b7feca708d4dde43 (patch)
treed82b07afa13b14e9259f70f018ee49fb3eeaa061 /t/test-custodian-testfactory.rb
parent91713ef347d49dca7de7dd9360d42763dd961894 (diff)
Updated to cope with renamed API.
Rather than having "inverted" we now name the test-method "inverted?" which is more ideomatic.
Diffstat (limited to 't/test-custodian-testfactory.rb')
-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)