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:
parent
62dd7a00fc
commit
0958624759
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue