diff --git a/test/variable_test.rb b/test/variable_test.rb index 058383a..bc4d41a 100644 --- a/test/variable_test.rb +++ b/test/variable_test.rb @@ -131,5 +131,11 @@ class VariableResolutionTest < Test::Unit::TestCase template = Template.parse(%|{{ test.test }}|) assert_equal 'worked', template.render('test' => {'test' => 'worked'}) end + + def test_preset_assigns + template = Template.parse(%|{{ test }}|) + template.assigns['test'] = 'worked' + assert_equal 'worked', template.render + end end \ No newline at end of file