From a85ed43294700ed0dd11d22b5c3d5d37d2b1809c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 10 May 2019 08:59:08 +0900 Subject: [PATCH] Do not access the internal member --- spec/ruby/library/openstruct/method_missing_spec.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/spec/ruby/library/openstruct/method_missing_spec.rb b/spec/ruby/library/openstruct/method_missing_spec.rb index fe955791af..5f85b2e513 100644 --- a/spec/ruby/library/openstruct/method_missing_spec.rb +++ b/spec/ruby/library/openstruct/method_missing_spec.rb @@ -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