summaryrefslogtreecommitdiff
path: root/test/ostruct/test_ostruct.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-17 09:57:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-17 09:57:12 +0000
commit0958624759441b5e5b4e9c08f9e778b36a96c91f (patch)
tree5f3b300740ad7f6b72606562b6453b9dd4ead721 /test/ostruct/test_ostruct.rb
parent62dd7a00fcef20ef5c74007bc93f8851e002a449 (diff)
* test/ostruct/test_ostruct.rb (test_frozen): added assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ostruct/test_ostruct.rb')
-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 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