Skip to content

Commit 81d0bb8

Browse files
committed
Use locale directory for the tests
1 parent 7d0b5e0 commit 81d0bb8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/test_rdoc_i18n_locale.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ 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+
refute @locale.load(File.join(@locale_dir, 'nonexsitent-locale'))
2927
end
3028

3129
def test_load_existent_po

0 commit comments

Comments
 (0)