Skip to content

Commit 5f45dc3

Browse files
committed
Use locale directory for the tests
1 parent e552dd9 commit 5f45dc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_rdoc_i18n_locale.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ def test_name
2323
end
2424

2525
def test_load_nonexistent_po
26-
File.stub(:exist?, false) do
27-
refute @locale.load('nonexsitent-locale')
28-
end
26+
locale = File.join(@locale_dir, 'nonexsitent-locale')
27+
refute_file locale
28+
refute @locale.load(locale)
2929
end
3030

3131
def test_load_existent_po

0 commit comments

Comments
 (0)