Permalink
Browse files

add non-default description ability for raises

  • Loading branch information...
1 parent ae7fd5c commit 4daf6aa104c6a03701ad4d2ed86be970663fa667 @geemus geemus committed Jan 25, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 Gemfile.lock
  2. +3 −3 lib/shindo.rb
View
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- shindo (0.1.12)
+ shindo (0.2.0)
formatador (>= 0.0.16)
GEM
View
@@ -93,11 +93,11 @@ def tests(description, tags = [], &block)
self
end
- def raises(error, &block)
- assert(:raises, error, "raises #{error.inspect}", &block)
+ def raises(error, description = "raises #{error.inspect}", &block)
+ assert(:raises, error, description, &block)
end
- def returns(expectation, description="returns #{expectation.inspect}", &block)
+ def returns(expectation, description = "returns #{expectation.inspect}", &block)
assert(:returns, expectation, description, &block)
end

0 comments on commit 4daf6aa

Please sign in to comment.