Skip to content

Commit e988232

Browse files
committed
Small fixes to shared proc call_arguments spec.
1 parent 669d29c commit e988232

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/ruby/core/proc/shared/call_arguments.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
proc {|&b| b.send(@method)}.send(@method) {1 + 1}.should == 2
66
end
77

8-
it "Yield to the block given at declaration and not to the block argument" do
8+
it "yields to the block given at declaration and not to the block argument" do
99
proc_creator = Object.new
1010
def proc_creator.create
1111
Proc.new do |&b|
1212
yield
1313
end
1414
end
1515
a_proc = proc_creator.create { 7 }
16-
a_proc.call { 3 }.should == 7
16+
a_proc.send(@method) { 3 }.should == 7
1717
end
1818

19-
it "Can call its block argument declared with a block argument" do
19+
it "can call its block argument declared with a block argument" do
2020
proc_creator = Object.new
2121
def proc_creator.create(method_name)
2222
Proc.new do |&b|

0 commit comments

Comments
 (0)