Permalink
Browse files

Switch from succeed! to pass!

  • Loading branch information...
1 parent 9cab7fc commit 72293669b7ce58b76f7a3669df98c6d2ed1f7617 @jm committed Oct 9, 2008
Showing with 4 additions and 6 deletions.
  1. +1 −3 lib/matchy/expectation.rb
  2. +1 −1 lib/matchy/modals.rb
  3. +2 −2 test/test_expectation_base.rb
@@ -29,9 +29,7 @@ def fail!
# Pass the expectations. Calls <tt>assert true</tt>. May want to consider something
# different here.
- #
- # TODO: Perhaps rename to +pass!+?
- def succeed!
+ def pass!
@test_case.assert true
end
View
@@ -37,7 +37,7 @@ def match_expectation(expectation, match)
if expectation.matches?(self) != match
expectation.fail!
else
- expectation.succeed!
+ expectation.pass!
end
end
end
@@ -21,8 +21,8 @@ def test_fail_should_raise
}.should raise_error(Test::Unit::AssertionFailedError)
end
- def test_succeed
- @instance.succeed!
+ def test_pass
+ @instance.pass!
end
def test_failure_message

0 comments on commit 7229366

Please sign in to comment.