summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ostruct/test_ostruct.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ostruct/test_ostruct.rb b/test/ostruct/test_ostruct.rb
index 37b7cd1..5e0f4b2 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