Skip to content

Commit

Permalink
Expectations first
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Aug 18, 2014
1 parent e9197ef commit 87228a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions activesupport/test/core_ext/string_ext_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 87228a2

Please sign in to comment.