Skip to content
Browse files

Expectations first

  • Loading branch information...
1 parent e9197ef commit 87228a207cdbeea8663a41ef86d661575522e957 @amatsuda amatsuda committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 activesupport/test/core_ext/string_ext_test.rb
View
8 activesupport/test/core_ext/string_ext_test.rb
@@ -196,14 +196,14 @@ def test_string_squish
"with tabs( ), newlines( ), unicode nextlines( ) and many spaces( )."
# Make sure squish returns what we expect:
- assert_equal original.squish, expected
+ assert_equal expected, original.squish
# But doesn't modify the original string:
- assert_not_equal original, expected
+ assert_not_equal expected, original
# Make sure squish! returns what we expect:
- assert_equal original.squish!, expected
+ assert_equal expected, original.squish!
# And changes the original string:
- assert_equal original, expected
+ assert_equal expected, original
end
def test_string_inquiry

0 comments on commit 87228a2

Please sign in to comment.
Something went wrong with that request. Please try again.