mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix string descriptions having extra quotes
This commit is contained in:
parent
84ed9c41b2
commit
65e8ee3788
1 changed files with 6 additions and 2 deletions
|
@ -49,7 +49,7 @@ module Spectator
|
|||
include ::Spectator::DSL
|
||||
|
||||
PARENT_CONTEXT = {{context_module.id}}::CURRENT_CONTEXT
|
||||
CURRENT_CONTEXT = ::Spectator::Context.new({{what.stringify}}, PARENT_CONTEXT)
|
||||
CURRENT_CONTEXT = ::Spectator::Context.new({{what.is_a?(StringLiteral) ? what : what.stringify}}, PARENT_CONTEXT)
|
||||
|
||||
CONTEXT_MODULE = {{context_module.id}}::{{module_name.id}}
|
||||
GIVEN_VARIABLES = [
|
||||
|
@ -96,7 +96,11 @@ module Spectator
|
|||
end
|
||||
|
||||
def description
|
||||
{{description.stringify}}
|
||||
{% if description.is_a?(StringLiteral) %}
|
||||
{{description}}
|
||||
{% else %}
|
||||
{{description.stringify}}
|
||||
{% end %}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue