mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove unecessary type name
This commit is contained in:
parent
a5fcb96378
commit
de779fdf61
2 changed files with 3 additions and 3 deletions
|
@ -51,8 +51,8 @@ module Spectator::DSL
|
||||||
::Spectator::DSL::Builder.add_example(
|
::Spectator::DSL::Builder.add_example(
|
||||||
_spectator_example_name(\{{what}}),
|
_spectator_example_name(\{{what}}),
|
||||||
::Spectator::Source.new(\{{block.filename}}, \{{block.line_number}}),
|
::Spectator::Source.new(\{{block.filename}}, \{{block.line_number}}),
|
||||||
\{{@type.name}}.new.as(::Spectator::Context),
|
new.as(::Spectator::Context),
|
||||||
\{{@type.name}}.\%tags
|
\%tags
|
||||||
) do |example|
|
) do |example|
|
||||||
example.with_context(\{{@type.name}}) do
|
example.with_context(\{{@type.name}}) do
|
||||||
\{% if block.args.empty? %}
|
\{% if block.args.empty? %}
|
||||||
|
|
|
@ -17,7 +17,7 @@ module Spectator::DSL
|
||||||
|
|
||||||
::Spectator::DSL::Builder.{{type.id}}(
|
::Spectator::DSL::Builder.{{type.id}}(
|
||||||
::Spectator::Source.new(\{{block.filename}}, \{{block.line_number}})
|
::Spectator::Source.new(\{{block.filename}}, \{{block.line_number}})
|
||||||
) { \{{@type.name}}.\%hook }
|
) { \%hook }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue