aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/language
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2019-05-28 22:41:48 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-05-28 22:41:48 +0200
commita66bc2c01194a9c017c874a30db5b3b6bd95e966 (patch)
tree598d6375b44fd86f90c3477c73086f6fcf08d76c /spec/ruby/language
parentd070523e7be4b95914adeef9a10401fba7718c5a (diff)
downloadruby-a66bc2c01194a9c017c874a30db5b3b6bd95e966.tar.gz
Update to ruby/spec@9a501a8
Diffstat (limited to 'spec/ruby/language')
-rw-r--r--spec/ruby/language/yield_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/language/yield_spec.rb b/spec/ruby/language/yield_spec.rb
index e4e8448174..8ab698196a 100644
--- a/spec/ruby/language/yield_spec.rb
+++ b/spec/ruby/language/yield_spec.rb
@@ -19,6 +19,10 @@ describe "The yield call" do
it "ignores assignment to the explicit block argument and calls the passed block" do
@y.ze { 42 }.should == 42
end
+
+ it "does not pass a named block to the block being yielded to" do
+ @y.z() { |&block| block == nil }.should == true
+ end
end
describe "taking a single argument" do