We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ed38ec commit 724eeb6Copy full SHA for 724eeb6
spec/ruby/core/proc/new_spec.rb
@@ -200,6 +200,7 @@ def some_method
200
prc = some_method { "hello" }
201
202
prc.call.should == "hello"
203
+ prc.call { "fail" }.should == "hello"
204
end
205
206
spec/ruby/language/yield_spec.rb
@@ -20,7 +20,7 @@
20
@y.ze { 42 }.should == 42
21
22
23
- it "passes nil as a named block" do
+ it "does not pass a named block to the block being yielded to" do
24
@y.z() { |&block| block == nil }.should == true
25
26
0 commit comments