diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2018-12-02 11:46:13 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-08-16 06:07:11 +0900 |
commit | 8045ebbf780d4eb35154111cb0d177b5fc7c486b (patch) | |
tree | 48961dc778da837347bff93eaba853b4b08d33f0 | |
parent | 1a5304228a03139b55821985856628cfe7362966 (diff) | |
download | ruby-8045ebbf780d4eb35154111cb0d177b5fc7c486b.tar.gz |
Use locale directory for the tests
-rw-r--r-- | test/rdoc/test_rdoc_i18n_locale.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rdoc/test_rdoc_i18n_locale.rb b/test/rdoc/test_rdoc_i18n_locale.rb index c936a7219f..42d22edf4d 100644 --- a/test/rdoc/test_rdoc_i18n_locale.rb +++ b/test/rdoc/test_rdoc_i18n_locale.rb @@ -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 |