diff options
author | Akira Matsuda <ronnie@dio.jp> | 2014-08-18 13:50:01 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2014-08-18 13:50:01 +0900 |
commit | 87228a207cdbeea8663a41ef86d661575522e957 (patch) | |
tree | 274c1cc3946aace6d81f900cf7b5254764b811f4 /activesupport | |
parent | e9197efc266df0cefbfd5c249bd27c7498521e29 (diff) | |
download | rails-87228a207cdbeea8663a41ef86d661575522e957.tar.gz rails-87228a207cdbeea8663a41ef86d661575522e957.tar.bz2 rails-87228a207cdbeea8663a41ef86d661575522e957.zip |
Expectations first
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/core_ext/string_ext_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/test/core_ext/string_ext_test.rb b/activesupport/test/core_ext/string_ext_test.rb index d77e6be595..18b4727c3b 100644 --- a/activesupport/test/core_ext/string_ext_test.rb +++ b/activesupport/test/core_ext/string_ext_test.rb @@ -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 |