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 | 087bd64ca217168fe208f0efb3b684424af5d9b4 (patch) | |
| tree | 5f3b300740ad7f6b72606562b6453b9dd4ead721 /test | |
| parent | 092d0e8b44ab03604775423844494cad233db9e8 (diff) | |
| download | ruby-087bd64ca217168fe208f0efb3b684424af5d9b4.tar.gz ruby-087bd64ca217168fe208f0efb3b684424af5d9b4.tar.xz ruby-087bd64ca217168fe208f0efb3b684424af5d9b4.zip | |
* test/ostruct/test_ostruct.rb (test_frozen): added assertions.
git-svn-id: http://svn.ruby-lang.org/repos/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 37b7cd137..5e0f4b241 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 |
