diff --git a/test/integration/tags/include_tag_test.rb b/test/integration/tags/include_tag_test.rb index 49267f3..66b5931 100644 --- a/test/integration/tags/include_tag_test.rb +++ b/test/integration/tags/include_tag_test.rb @@ -27,6 +27,9 @@ class TestFileSystem when "pick_a_source" "from TestFileSystem" + when 'assignments' + "{% assign foo = 'bar' %}" + else template_path end @@ -108,6 +111,10 @@ class IncludeTagTest < Minitest::Test 'echo1' => 'test123', 'more_echos' => { "echo2" => 'test321'} end + def test_included_templates_assigns_variables + assert_template_result "bar", "{% include 'assignments' %}{{ foo }}" + end + def test_nested_include_tag assert_template_result "body body_detail", "{% include 'body' %}"