Skip to content

Commit 930b547

Browse files
committed
Test OpenStruct#methods
This supports overriding `#methods`.
1 parent b55ecb4 commit 930b547

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/ostruct/test_ostruct.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def test_accessor_defines_method
195195
assert_respond_to(os, :foo)
196196
assert_equal(42, os.foo)
197197
assert_equal([:foo, :foo=], os.singleton_methods.sort)
198+
assert_equal([:foo, :foo=], os.methods(false).sort)
198199
end
199200

200201
def test_does_not_redefine

0 commit comments

Comments
 (0)