Permalink
Browse files

Clearer tests

  • Loading branch information...
1 parent 731bc3d commit 39f6673567ed33433728fc51ded8758f26e63f76 Amiel Martin committed Mar 26, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 activesupport/test/core_ext/symbol_test.rb
@@ -16,12 +16,13 @@ def not_true?
def test_tilde_operator_in_case
case ExamplePredicateClass.new
when ~:not_true?
- fail 'Reached not_true? clause'
+ clause = 'not-true'
when ~:so_true?
- pass
+ clause = 'so-true'
else
- fail 'Reached else clause'
+ clause = 'else'
end
- end
+ assert_equal 'so-true', clause
+ end
end

0 comments on commit 39f6673

Please sign in to comment.