Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit dd0567e

Browse files
committedJun 2, 2015
remove comments
1 parent 2c164e5 commit dd0567e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed
 

‎spec/ruby/core/method/curry_spec.rb

-8
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,7 @@ def x.foo(a,b,c); [a,b,c]; end
2525

2626
it "raises ArgumentError when the method requires less arguments than the given arity" do
2727
lambda { @obj.method(:zero).curry(1) }.should raise_error(ArgumentError)
28-
29-
# a method with one optional param would be something like: lambda { |a,b=nil| a + (b||0) }
30-
# which doesn't work on rubinius:
31-
# irb(main):002:0> b = lambda { |a,b=nil| a + (b||0) }
32-
# Error validating bytecode: more arguments than local slots
33-
# Rubinius::Internal: invalid bytecode method
3428
lambda { @obj.method(:one_req_one_opt).curry(3) }.should raise_error(ArgumentError)
35-
36-
# same as above optional param in lambda/proc
3729
lambda { @obj.method(:two_req_one_opt_with_block).curry(4) }.should raise_error(ArgumentError)
3830
end
3931

0 commit comments

Comments
 (0)
Please sign in to comment.