aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_object.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_object.rb')
-rw-r--r--test/ruby/test_object.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb
index 55f3ef2b16..1d6c6e3023 100644
--- a/test/ruby/test_object.rb
+++ b/test/ruby/test_object.rb
@@ -411,8 +411,8 @@ class TestObject < Test::Unit::TestCase
assert_equal([:foo], foo.foobar);
assert_equal([:foo, 1], foo.foobar(1));
assert_equal([:foo, 1, 2, 3, 4, 5], foo.foobar(1, 2, 3, 4, 5));
- assert(foo.respond_to?(:foobar))
- assert_equal(false, foo.respond_to?(:foobarbaz))
+ assert_respond_to(foo, :foobar)
+ assert_not_respond_to(foo, :foobarbaz)
assert_raise(NoMethodError) do
foo.foobarbaz
end