summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/irb/test_locale.rb8
1 files changed, 4 insertions, 4 deletions
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