summaryrefslogtreecommitdiff
path: root/test/ruby/enc/test_emoji_breaks.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/enc/test_emoji_breaks.rb')
-rw-r--r--test/ruby/enc/test_emoji_breaks.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/enc/test_emoji_breaks.rb b/test/ruby/enc/test_emoji_breaks.rb
index 3e2999d61e..bb5114680e 100644
--- a/test/ruby/enc/test_emoji_breaks.rb
+++ b/test/ruby/enc/test_emoji_breaks.rb
@@ -75,7 +75,7 @@ class TestEmojiBreaks < Test::Unit::TestCase
EMOJI_DATA_FILES.each do |file|
version_mismatch = true
file_tests = []
- IO.foreach(file.fullname, encoding: Encoding::UTF_8) do |line|
+ File.foreach(file.fullname, encoding: Encoding::UTF_8) do |line|
line.chomp!
if $.==1
if line=="# #{file.basename}-#{file.version}.txt"