aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/enc/test_emoji.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-13 09:18:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-12-13 09:18:05 +0000
commit3ac0ec4ecdea849143ed64e8935e6675b341e44b (patch)
treefe18c8213610bfdbca51b687133caf5ab297b882 /test/ruby/enc/test_emoji.rb
parent287d2adab0ce45018ada9941ce4eaf67ba6a4d3a (diff)
downloadruby-3ac0ec4ecdea849143ed64e8935e6675b341e44b.tar.gz
test/ruby: better assertions
* test/ruby: use better assertions instead of mere assert. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/enc/test_emoji.rb')
-rw-r--r--test/ruby/enc/test_emoji.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/enc/test_emoji.rb b/test/ruby/enc/test_emoji.rb
index 90144cffff..1f80c5a79e 100644
--- a/test/ruby/enc/test_emoji.rb
+++ b/test/ruby/enc/test_emoji.rb
@@ -42,7 +42,7 @@ module Emoji
def test_encoding_name
%w(UTF8-DoCoMo
SJIS-DoCoMo).each do |n|
- assert Encoding.name_list.include?(n), "encoding not found: #{n}"
+ assert_include Encoding.name_list, n, "encoding not found: #{n}"
end
end
@@ -126,7 +126,7 @@ module Emoji
SJIS-KDDI
ISO-2022-JP-KDDI
stateless-ISO-2022-JP-KDDI).each do |n|
- assert Encoding.name_list.include?(n), "encoding not found: #{n}"
+ assert_include Encoding.name_list, n, "encoding not found: #{n}"
end
end
@@ -250,7 +250,7 @@ module Emoji
def test_encoding_name
%w(UTF8-SoftBank
SJIS-SoftBank).each do |n|
- assert Encoding.name_list.include?(n), "encoding not found: #{n}"
+ assert_include Encoding.name_list, n, "encoding not found: #{n}"
end
end