From 92466e440d459cd21e89f8bfbe6d8438bcaa9389 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Wed, 26 Apr 2023 17:52:47 +0100 Subject: [ruby/irb] Use a more tolerant way to check Locale#find's return path (https://github.com/ruby/irb/pull/572) https://github.com/ruby/irb/commit/0b648adf38 --- test/irb/test_locale.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/irb/test_locale.rb b/test/irb/test_locale.rb index 37f39acf7d..930a38834c 100644 --- a/test/irb/test_locale.rb +++ b/test/irb/test_locale.rb @@ -107,12 +107,12 @@ module TestIRB def test_find jp_local = IRB::Locale.new("ja_JP.UTF-8") - path = jp_local.find("irb/error.rb").delete_prefix(Dir.pwd) - assert_equal("/lib/irb/lc/ja/error.rb", path) + path = jp_local.find("irb/error.rb") + assert_include(path, "/lib/irb/lc/ja/error.rb") en_local = IRB::Locale.new("en_US.UTF-8") - path = en_local.find("irb/error.rb").delete_prefix(Dir.pwd) - assert_equal("/lib/irb/lc/error.rb", path) + path = en_local.find("irb/error.rb") + assert_include(path, "/lib/irb/lc/error.rb") end end end -- cgit v1.2.1