diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-17 09:57:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-17 09:57:12 +0000 |
commit | 0958624759441b5e5b4e9c08f9e778b36a96c91f (patch) | |
tree | 5f3b300740ad7f6b72606562b6453b9dd4ead721 /test | |
parent | 62dd7a00fcef20ef5c74007bc93f8851e002a449 (diff) | |
download | ruby-0958624759441b5e5b4e9c08f9e778b36a96c91f.tar.gz |
* 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')
-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 |