diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-09-16 16:34:36 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-16 16:34:36 -0300 |
commit | 84650022d574d24d6adea6ad941ec3ca57d2a2f0 (patch) | |
tree | 07318ea156bb21b19042fe2bebc7a713ab0a02e7 /activesupport/test/multibyte_chars_test.rb | |
parent | c5c1a29be7d435fe569c9e15c22db65768b50318 (diff) | |
parent | a9aed2ac94d2e0d1a233a3c193985ae78d7e79e9 (diff) | |
download | rails-84650022d574d24d6adea6ad941ec3ca57d2a2f0.tar.gz rails-84650022d574d24d6adea6ad941ec3ca57d2a2f0.tar.bz2 rails-84650022d574d24d6adea6ad941ec3ca57d2a2f0.zip |
Merge pull request #26516 from grosser/grosser/assert
improve error message when include assertions fail
Diffstat (limited to 'activesupport/test/multibyte_chars_test.rb')
-rw-r--r-- | activesupport/test/multibyte_chars_test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activesupport/test/multibyte_chars_test.rb b/activesupport/test/multibyte_chars_test.rb index 54429f4aab..5ff1543328 100644 --- a/activesupport/test/multibyte_chars_test.rb +++ b/activesupport/test/multibyte_chars_test.rb @@ -213,11 +213,11 @@ class MultibyteCharsUTF8BehaviourTest < ActiveSupport::TestCase end def test_should_know_if_one_includes_the_other - assert @chars.include?("") - assert @chars.include?("ち") - assert @chars.include?("わ") - assert !@chars.include?("こちわ") - assert !@chars.include?("a") + assert_includes @chars, "" + assert_includes @chars, "ち" + assert_includes @chars, "わ" + assert_not_includes @chars, "こちわ" + assert_not_includes @chars, "a" end def test_include_raises_when_nil_is_passed |