summaryrefslogtreecommitdiff
path: root/spec/unit/parser/functions/inline_epp_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/parser/functions/inline_epp_spec.rb')
-rw-r--r--spec/unit/parser/functions/inline_epp_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/parser/functions/inline_epp_spec.rb b/spec/unit/parser/functions/inline_epp_spec.rb
index bbd7e8a33..44b24528b 100644
--- a/spec/unit/parser/functions/inline_epp_spec.rb
+++ b/spec/unit/parser/functions/inline_epp_spec.rb
@@ -56,6 +56,10 @@ describe "the inline_epp function" do
end
end
+ it "renders a block expression" do
+ eval_template_with_args("<%= {($x) $x + 1} %>", 'x' => 2).should == "3"
+ end
+
# although never a problem with epp
it "is not interfered with by having a variable named 'string' (#14093)" do
scope['string'] = "this output should not be seen"