From 244947a81dc4b6d358bbc361d6cd14e2d178b15d Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Thu, 21 Mar 2019 21:21:05 -0600 Subject: [PATCH] Wrap stringified block with back-ticks --- src/spectator/dsl/example_dsl.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectator/dsl/example_dsl.cr b/src/spectator/dsl/example_dsl.cr index 31b1b41..f518b53 100644 --- a/src/spectator/dsl/example_dsl.cr +++ b/src/spectator/dsl/example_dsl.cr @@ -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