1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2009-02-17 09:57:12 +00:00
parent 62dd7a00fc
commit 0958624759

View file

@ -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