mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert GH-808
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a8565ad220
commit
759a31b4a3
3 changed files with 12 additions and 25 deletions
|
|
@ -135,10 +135,4 @@ class TC_OpenStruct < Test::Unit::TestCase
|
|||
e = assert_raise(ArgumentError) { os.send :foo=, true, true }
|
||||
assert_match(/#{__callee__}/, e.backtrace[0])
|
||||
end
|
||||
|
||||
def test_modifiable
|
||||
os = OpenStruct.new(modifiable: true)
|
||||
assert_equal true, os.modifiable
|
||||
assert_nothing_raised { os.foo = true }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue