Wrap stringified block with back-ticks

This commit is contained in:
Michael Miller 2019-03-21 21:21:05 -06:00
parent 4a887bb906
commit 244947a81d
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ module Spectator::DSL
{% else %}
# In this case, it looks like the short-hand method syntax wasn't used.
# Just drop in the proc as-is.
::Spectator::Expectations::BlockExpectationPartial.new(%proc, {{block.body.stringify}}, {{_source_file}}, {{_source_line}})
::Spectator::Expectations::BlockExpectationPartial.new(%proc, "`" + {{block.body.stringify}} + "`", {{_source_file}}, {{_source_line}})
{% end %}
end