Skip to content

Commit 775961b

Browse files
committed
Small change to proc new_spec.
1 parent 7146104 commit 775961b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/ruby/core/proc/new_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,11 @@ def some_method
195195
def some_method
196196
proc do |&block|
197197
Proc.new
198-
end.call
198+
end.call { "failing" }
199199
end
200200
prc = some_method { "hello" }
201201

202202
prc.call.should == "hello"
203-
prc.call { "fail" }.should == "hello"
204203
end
205204
end
206205

0 commit comments

Comments
 (0)