Skip to content

Instantly share code, notes, and snippets.

@darkhelmet
Created September 18, 2011 03:11
Show Gist options
  • Select an option

  • Save darkhelmet/1224675 to your computer and use it in GitHub Desktop.

Select an option

Save darkhelmet/1224675 to your computer and use it in GitHub Desktop.
Block
should return from the closure
should ignore extra arguments
should not care if not enough parameters are passed
should set unpassed parameters to `nil`
should accept *args
Lambda
should return from the lambda
should whine about too many arguments
should whine about too few arguments
should accept *args
should be a lambda
Proc
should return from the closure
should ignore extra arguments
should not care if not enough parameters are passed
should set unpassed parameters to `nil`
should accept *args
should not be a lambda
should be a proc when `proc` is used
Stabby
should return from the stabby
should whine about too many arguments
should whine about too few arguments
should accept *args
should be a lambda
Finished in 0.01227 seconds
22 examples, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment