diff options
Diffstat (limited to 'test/ostruct/test_ostruct.rb')
-rw-r--r-- | test/ostruct/test_ostruct.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ostruct/test_ostruct.rb b/test/ostruct/test_ostruct.rb index 37b7cd137e..5e0f4b2418 100644 --- a/test/ostruct/test_ostruct.rb +++ b/test/ostruct/test_ostruct.rb @@ -41,5 +41,7 @@ class TC_OpenStruct < Test::Unit::TestCase o.freeze assert_raise(TypeError) {o.b = 'b'} assert_not_respond_to(o, :b) + assert_raise(TypeError) {o.a = 'z'} + assert_equal('a', o.a) end end |