Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clearer tests

  • Loading branch information...
commit 39f6673567ed33433728fc51ded8758f26e63f76 1 parent 731bc3d
@amiel amiel authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 activesupport/test/core_ext/symbol_test.rb
View
9 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
Please sign in to comment.
Something went wrong with that request. Please try again.