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_example_name(\{{what}}),
|
||||
::Spectator::Source.new(\{{block.filename}}, \{{block.line_number}}),
|
||||
\{{@type.name}}.new.as(::Spectator::Context),
|
||||
\{{@type.name}}.\%tags
|
||||
new.as(::Spectator::Context),
|
||||
\%tags
|
||||
) do |example|
|
||||
example.with_context(\{{@type.name}}) do
|
||||
\{% if block.args.empty? %}
|
||||
|
|
|
@ -17,7 +17,7 @@ module Spectator::DSL
|
|||
|
||||
::Spectator::DSL::Builder.{{type.id}}(
|
||||
::Spectator::Source.new(\{{block.filename}}, \{{block.line_number}})
|
||||
) { \{{@type.name}}.\%hook }
|
||||
) { \%hook }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue