mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Simplify macro eval by returning a lazy double
This commit is contained in:
parent
914def05e1
commit
c1195ef687
2 changed files with 6 additions and 1 deletions
|
@ -125,7 +125,7 @@ module Spectator::DSL
|
|||
# expect(dbl.foo).to eq(42)
|
||||
# ```
|
||||
macro double(**value_methods)
|
||||
new_double({{**value_methods}})
|
||||
::Spectator::LazyDouble.new({{**value_methods}})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue