mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Simpler conditional block inclusion
This commit is contained in:
parent
090c95b162
commit
8e83edcc35
3 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@ module Spectator::DSL
|
||||||
{{null_double_type_name}}.new(@stubs)
|
{{null_double_type_name}}.new(@stubs)
|
||||||
end
|
end
|
||||||
|
|
||||||
{% if block %}{{block.body}}{% end %}
|
{{block.body if block}}
|
||||||
end
|
end
|
||||||
|
|
||||||
{% begin %}
|
{% begin %}
|
||||||
|
|
|
@ -61,7 +61,7 @@ module Spectator
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% if block %}{{block.body}}{% end %}
|
{{block.body if block}}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,7 @@ module Spectator
|
||||||
macro finished
|
macro finished
|
||||||
stub_type {{mocked_type.id}}
|
stub_type {{mocked_type.id}}
|
||||||
|
|
||||||
{% if block %}{{block.body}}{% end %}
|
{{block.body if block}}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
@ -189,7 +189,7 @@ module Spectator
|
||||||
macro finished
|
macro finished
|
||||||
stub_type {{type_name.id}}
|
stub_type {{type_name.id}}
|
||||||
|
|
||||||
{% if block %}{{block.body}}{% end %}
|
{{block.body if block}}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
Loading…
Reference in a new issue