Change to absolute path in localization test

This commit is contained in:
Simon Eskildsen
2013-08-30 12:31:57 -04:00
parent f37a984fd7
commit 0dac6fe88a
+5 -1
View File
@@ -3,8 +3,12 @@ require 'test_helper'
class I18nTest < Test::Unit::TestCase class I18nTest < Test::Unit::TestCase
include Liquid include Liquid
def en_locale_path
File.join(File.expand_path(File.dirname(__FILE__)), "..", "fixtures", "en_locale.yml")
end
def setup def setup
@i18n = I18n.new("./test/fixtures/en_locale.yml") @i18n = I18n.new en_locale_path
end end
def test_simple_translate_string def test_simple_translate_string