mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Upcast context to reduce method instances generated by compiler
This commit is contained in:
parent
f433405ece
commit
b8dc83286c
1 changed files with 1 additions and 1 deletions
|
@ -19,8 +19,8 @@ module Spectator::DSL
|
|||
::Spectator::DSL::Builder.add_example(
|
||||
_spectator_example_name(\{{what}}),
|
||||
::Spectator::Source.new(\{{block.filename}}, \{{block.line_number}}),
|
||||
\{{@type.name}}.new
|
||||
) { |example, context| context.as(\{{@type.name}}).\%test }
|
||||
\{{@type.name}}.new.as(::Spectator::Context)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue