1
0
Fork 0
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:
Nobuyoshi Nakada 2019-05-10 08:59:08 +09:00
parent c4d49749fb
commit a85ed43294
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -24,11 +24,6 @@ describe "OpenStruct#method_missing when called with a method name ending in '='
@os.test = "changed" @os.test = "changed"
@os.test.should == "changed" @os.test.should == "changed"
end 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 end
describe "OpenStruct#method_missing when passed additional arguments" do describe "OpenStruct#method_missing when passed additional arguments" do