diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-25 17:47:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-25 17:47:17 +0900 |
commit | a504535dd4044bc8b2daf73076e01028da5ad58a (patch) | |
tree | d1d77546151d828af77d534d7bb9d6f407c4fc38 /test/ostruct | |
parent | 0febd07c698c242109d0171b4ddb8c6722b5df0d (diff) |
Prefer dedicated assertion method
Diffstat (limited to 'test/ostruct')
-rw-r--r-- | test/ostruct/test_ostruct.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ostruct/test_ostruct.rb b/test/ostruct/test_ostruct.rb index 61a4822810..afe6affdc0 100644 --- a/test/ostruct/test_ostruct.rb +++ b/test/ostruct/test_ostruct.rb @@ -179,7 +179,7 @@ class TC_OpenStruct < Test::Unit::TestCase def test_accessor_defines_method os = OpenStruct.new(foo: 42) - assert os.respond_to? :foo + assert_respond_to(os, :foo) assert_equal([], os.singleton_methods) assert_equal(42, os.foo) assert_equal([:foo, :foo=], os.singleton_methods.sort) |