mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Do not access the internal member
This commit is contained in:
parent
c4d49749fb
commit
a85ed43294
1 changed files with 0 additions and 5 deletions
|
@ -24,11 +24,6 @@ describe "OpenStruct#method_missing when called with a method name ending in '='
|
|||
@os.test = "changed"
|
||||
@os.test.should == "changed"
|
||||
end
|
||||
|
||||
it "updates the method/value table with the passed method/value" do
|
||||
@os.method_missing(:test=, "test")
|
||||
@os.send(:table)[:test].should == "test"
|
||||
end
|
||||
end
|
||||
|
||||
describe "OpenStruct#method_missing when passed additional arguments" do
|
||||
|
|
Loading…
Add table
Reference in a new issue