From 0dac6fe88a0c361854fa059502dea2f63f0c3384 Mon Sep 17 00:00:00 2001 From: Simon Eskildsen Date: Thu, 15 Aug 2013 10:00:00 -0400 Subject: [PATCH] Change to absolute path in localization test --- test/liquid/i18n_test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/liquid/i18n_test.rb b/test/liquid/i18n_test.rb index 93d3159c..7afe4cbc 100644 --- a/test/liquid/i18n_test.rb +++ b/test/liquid/i18n_test.rb @@ -3,8 +3,12 @@ require 'test_helper' class I18nTest < Test::Unit::TestCase include Liquid + def en_locale_path + File.join(File.expand_path(File.dirname(__FILE__)), "..", "fixtures", "en_locale.yml") + end + def setup - @i18n = I18n.new("./test/fixtures/en_locale.yml") + @i18n = I18n.new en_locale_path end def test_simple_translate_string