Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

Commit

Permalink
ruby 1.9 fix: alterado helper assert_false
Browse files Browse the repository at this point in the history
  • Loading branch information
fmluizao committed Aug 31, 2009
1 parent 2687f38 commit d879c28
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions brdinheiro/test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ def p80 text

class Test::Unit::TestCase
def assert_false(boolean, message=nil)
_wrap_assertion do
assert_block("assert should not be called with a block.") { !block_given? }
assert_block(build_message(message, "<?> is not false.", boolean)) { !boolean }
end
assert_block("assert should not be called with a block.") { !block_given? }
assert_block(build_message(message, "<?> is not false.", boolean)) { !boolean }
end
end
end

0 comments on commit d879c28

Please sign in to comment.