ruby-changes:55694
From: Nobuyoshi <ko1@a...>
Date: Fri, 10 May 2019 09:00:56 +0900 (JST)
Subject: [ruby-changes:55694] Nobuyoshi Nakada: a85ed43294 (trunk): Do not access the internal member
https://git.ruby-lang.org/ruby.git/commit/?id=a85ed43294 From a85ed43294700ed0dd11d22b5c3d5d37d2b1809c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 10 May 2019 08:59:08 +0900 Subject: Do not access the internal member diff --git a/spec/ruby/library/openstruct/method_missing_spec.rb b/spec/ruby/library/openstruct/method_missing_spec.rb index fe95579..5f85b2e 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 '=' https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/openstruct/method_missing_spec.rb#L24 @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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/