Remove unecessary type name

This commit is contained in:
Michael Miller 2021-01-30 12:26:29 -07:00
parent a5fcb96378
commit de779fdf61
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD
2 changed files with 3 additions and 3 deletions

View file

@ -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? %}

View file

@ -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