1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use locale directory for the tests

This commit is contained in:
Nobuyoshi Nakada 2018-12-02 11:46:13 +09:00 committed by aycabta
parent 1a5304228a
commit 8045ebbf78

View file

@ -23,9 +23,9 @@ class TestRDocI18nLocale < RDoc::TestCase
end
def test_load_nonexistent_po
File.stub(:exist?, false) do
refute @locale.load('nonexsitent-locale')
end
locale = File.join(@locale_dir, 'nonexsitent-locale')
refute_file locale
refute @locale.load(locale)
end
def test_load_existent_po