From 5310dc73bd0dd3bda2bb2d71b7feca708d4dde43 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 16 Apr 2015 16:14:33 +0100 Subject: Updated to cope with renamed API. Rather than having "inverted" we now name the test-method "inverted?" which is more ideomatic. --- t/test-custodian-testfactory.rb | 6 +++--- 1 file 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) -- cgit v1.2.1