Remove now unnecessary squash_instance_assigns_with_environments

Since it was just there to make sure instance assigns were overriden
when rending more than once with the same template instance.  It is
no longer necessary because the template no longer stores instance_assigns
which need to be overriden.
This commit is contained in:
Dylan Thacker-Smith
2020-08-18 10:04:42 -04:00
parent 219168e89f
commit 895e63e40a
2 changed files with 0 additions and 15 deletions
-3
View File
@@ -52,10 +52,7 @@ class TemplateTest < Minitest::Test
t = Template.new
assert_equal('from custom assigns', t.parse("{{ foo }}").render!('foo' => 'from custom assigns'))
assert_equal('', t.parse("{{ foo }}").render!)
end
def test_custom_assigns_squash_instance_assigns
t = Template.new
assert_equal('from instance assigns', t.parse("{% assign foo = 'from instance assigns' %}{{ foo }}").render!)
assert_equal('from custom assigns', t.parse("{{ foo }}").render!('foo' => 'from custom assigns'))
end