summaryrefslogtreecommitdiff
path: root/test/ostruct
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2020-09-14 13:29:31 -0400
committerMarc-Andre Lafortune <github@marc-andre.ca>2020-09-14 13:29:54 -0400
commit28e60b0045b5732bca11012d81a5223001faa6b2 (patch)
tree90f962d0f5221a136ea30b63a6d007d999affd16 /test/ostruct
parent867f0c6793da63a8f80eb3d868fe10e859abe3d8 (diff)
downloadruby-28e60b0045b5732bca11012d81a5223001faa6b2.tar.gz
[ruby/ostruct] Revert recent changes
This reverts commit e026e186f4..12a2e32d43.
Diffstat (limited to 'test/ostruct')
-rw-r--r--test/ostruct/test_ostruct.rb16
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