From 99926c775e62d3a0a3a53c165347d9860af4fa9d Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 6 Apr 2019 15:21:37 -0600 Subject: [PATCH] Fix symbolic not working for short-hand it syntax --- src/spectator/dsl/structure_dsl.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectator/dsl/structure_dsl.cr b/src/spectator/dsl/structure_dsl.cr index 7522aaf..ad031ac 100644 --- a/src/spectator/dsl/structure_dsl.cr +++ b/src/spectator/dsl/structure_dsl.cr @@ -1592,7 +1592,7 @@ module Spectator::DSL # Indicates whether the example references a method. def symbolic? - {{what.starts_with?('#') ? true : false}} + {{what.is_a?(StringLiteral) && what.starts_with?('#') ? true : false}} end # Add the block's content.