aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2014-08-18 13:50:01 +0900
committerAkira Matsuda <ronnie@dio.jp>2014-08-18 13:50:01 +0900
commit87228a207cdbeea8663a41ef86d661575522e957 (patch)
tree274c1cc3946aace6d81f900cf7b5254764b811f4 /activesupport
parente9197efc266df0cefbfd5c249bd27c7498521e29 (diff)
downloadrails-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.rb8
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