summaryrefslogtreecommitdiff
path: root/spec/ruby/language/send_spec.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-20 02:17:58 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-20 02:21:37 +0900
commite6378cdcd8246697be652b74442f9c07503e0ba6 (patch)
treec0b0069388f2e8438b2dfa735ef5d232deb58411 /spec/ruby/language/send_spec.rb
parentd583df525922ca14ecfab7a39f0c617eb86bc804 (diff)
Allow calling a private accessor with `self.`
[Feature #11297] [Feature #16123]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2474
Diffstat (limited to 'spec/ruby/language/send_spec.rb')
-rw-r--r--spec/ruby/language/send_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/ruby/language/send_spec.rb b/spec/ruby/language/send_spec.rb
index 290b8662db..5e6571893c 100644
--- a/spec/ruby/language/send_spec.rb
+++ b/spec/ruby/language/send_spec.rb
@@ -269,6 +269,7 @@ describe "Invoking a private getter method" do
it "permits self as a receiver" do
receiver = LangSendSpecs::PrivateGetter.new
-> { receiver.call_self_foo }.should_not raise_error(NoMethodError)
+ -> { receiver.call_self_foo_or_equals(6) }.should_not raise_error(NoMethodError)
end
end
end