mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix double default stub with type
This commit is contained in:
parent
4c9bbbe07b
commit
a6aa00eb38
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ module Spectator::Mocks
|
|||
{% if body && !body.is_a?(Nop) %}
|
||||
{{body.body}}
|
||||
{% else %}
|
||||
%args = ::Spectator::Mocks::GenericArguments.create({{params.splat}})
|
||||
%args = ::Spectator::Mocks::GenericArguments.create({{args.splat}})
|
||||
%call = ::Spectator::Mocks::GenericMethodCall.new({{name.symbolize}}, %args)
|
||||
unless ::Spectator::Harness.current.mocks.expected?(self, %call)
|
||||
raise ::Spectator::Mocks::UnexpectedMessageError.new("#{self} received unexpected message {{name}}")
|
||||
|
|
|
@ -68,7 +68,7 @@ module Spectator::Mocks
|
|||
{% if body && !body.is_a?(Nop) %}
|
||||
{{body.body}}
|
||||
{% else %}
|
||||
%args = ::Spectator::Mocks::GenericArguments.create({{params.splat}})
|
||||
%args = ::Spectator::Mocks::GenericArguments.create({{args.splat}})
|
||||
%call = ::Spectator::Mocks::GenericMethodCall.new({{name.symbolize}}, %args)
|
||||
unless ::Spectator::Harness.current.mocks.expected?(self, %call)
|
||||
raise ::Spectator::Mocks::UnexpectedMessageError.new("#{self} received unexpected message {{name}}")
|
||||
|
|
Loading…
Reference in a new issue