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:
parent
1a5304228a
commit
8045ebbf78
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue