Fix symbolic not working for short-hand it syntax

This commit is contained in:
Michael Miller 2019-04-06 15:21:37 -06:00
parent 365bd1ec2f
commit 99926c775e

View file

@ -1592,7 +1592,7 @@ module Spectator::DSL
# Indicates whether the example references a method. # Indicates whether the example references a method.
def symbolic? def symbolic?
{{what.starts_with?('#') ? true : false}} {{what.is_a?(StringLiteral) && what.starts_with?('#') ? true : false}}
end end
# Add the block's content. # Add the block's content.