mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix symbolic not working for short-hand it syntax
This commit is contained in:
parent
365bd1ec2f
commit
99926c775e
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue