diff options
Diffstat (limited to 'test/ostruct/test_ostruct.rb')
-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 |