mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Expectations first
This commit is contained in:
parent
e9197efc26
commit
87228a207c
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue