diff --git a/test/liquid/i18n_test.rb b/test/liquid/i18n_test.rb index 7afe4cb..afdda27 100644 --- a/test/liquid/i18n_test.rb +++ b/test/liquid/i18n_test.rb @@ -3,12 +3,8 @@ 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 en_locale_path + @i18n = I18n.new fixture("en_locale.yml") end def test_simple_translate_string diff --git a/test/test_helper.rb b/test/test_helper.rb index cf49d47..aa2f6e7 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -21,6 +21,12 @@ Liquid::Template.error_mode = mode module Test module Unit + class TestCase + def fixture(name) + File.join(File.expand_path(File.dirname(__FILE__)), "fixtures", name) + end + end + module Assertions include Liquid