diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-10 08:59:08 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-10 09:00:25 +0900 |
commit | a85ed43294700ed0dd11d22b5c3d5d37d2b1809c (patch) | |
tree | add5ddb14c8424835d276e44d4012415b2d3fd69 /spec/ruby/library | |
parent | c4d49749fbbb922f6102d3bf0729c861f9436a00 (diff) | |
download | ruby-a85ed43294700ed0dd11d22b5c3d5d37d2b1809c.tar.gz |
Do not access the internal member
Diffstat (limited to 'spec/ruby/library')
-rw-r--r-- | spec/ruby/library/openstruct/method_missing_spec.rb | 5 |
1 files changed, 0 insertions, 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 |