Fix use of 1.9 hash syntax

This commit is contained in:
Simon Eskildsen
2013-08-29 21:48:01 -04:00
parent 072c12dc47
commit fc8c45ebe6

View File

@@ -152,7 +152,7 @@ class TemplateTest < Test::Unit::TestCase
def test_sets_default_localization_in_context_with_quick_initialization
t = Template.new
t.parse('{{foo}}', locale: I18n.new(fixture("en_locale.yml")))
t.parse('{{foo}}', :locale => I18n.new(fixture("en_locale.yml")))
assert_instance_of I18n, t.root.options[:locale]
assert_equal fixture("en_locale.yml"), t.root.options[:locale].path