diff options
author | Marc-Andre Lafortune <github@marc-andre.ca> | 2020-09-14 13:29:31 -0400 |
---|---|---|
committer | Marc-Andre Lafortune <github@marc-andre.ca> | 2020-09-14 13:29:54 -0400 |
commit | 28e60b0045b5732bca11012d81a5223001faa6b2 (patch) | |
tree | 90f962d0f5221a136ea30b63a6d007d999affd16 /test | |
parent | 867f0c6793da63a8f80eb3d868fe10e859abe3d8 (diff) | |
download | ruby-28e60b0045b5732bca11012d81a5223001faa6b2.tar.gz |
[ruby/ostruct] Revert recent changes
This reverts commit e026e186f4..12a2e32d43.
Diffstat (limited to 'test')
-rw-r--r-- | test/ostruct/test_ostruct.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/ostruct/test_ostruct.rb b/test/ostruct/test_ostruct.rb index d07fef3a83..3917cc0417 100644 --- a/test/ostruct/test_ostruct.rb +++ b/test/ostruct/test_ostruct.rb @@ -225,25 +225,9 @@ class TC_OpenStruct < Test::Unit::TestCase end end - def test_access_undefined - os = OpenStruct.new - assert_nil os.foo - end - def test_overriden_private_methods os = OpenStruct.new(puts: :foo, format: :bar) assert_equal(:foo, os.puts) assert_equal(:bar, os.format) end - - def test_overriden_public_methods - os = OpenStruct.new(method: :foo, class: :bar) - assert_equal(:foo, os.method) - assert_equal(:bar, os.class) - end - - def test_access_original_methods - os = OpenStruct.new(method: :foo) - assert_equal(os.object_id, os.method!(:object_id).call) - end end |