From 0958624759441b5e5b4e9c08f9e778b36a96c91f Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 17 Feb 2009 09:57:12 +0000 Subject: * 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 --- test/ostruct/test_ostruct.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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 -- cgit v1.2.3