Skip to content

Commit 724eeb6

Browse files
committed
Small cleanup to specs.
1 parent 7ed38ec commit 724eeb6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spec/ruby/core/proc/new_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def some_method
200200
prc = some_method { "hello" }
201201

202202
prc.call.should == "hello"
203+
prc.call { "fail" }.should == "hello"
203204
end
204205
end
205206

spec/ruby/language/yield_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@y.ze { 42 }.should == 42
2121
end
2222

23-
it "passes nil as a named block" do
23+
it "does not pass a named block to the block being yielded to" do
2424
@y.z() { |&block| block == nil }.should == true
2525
end
2626
end

0 commit comments

Comments
 (0)