1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Expectations first

This commit is contained in:
Akira Matsuda 2014-08-18 13:50:01 +09:00
parent e9197efc26
commit 87228a207c

View file

@ -196,14 +196,14 @@ class StringInflectionsTest < ActiveSupport::TestCase
"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