mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Formatting
This commit is contained in:
parent
ca85acefaf
commit
23d8f4b5a6
1 changed files with 8 additions and 8 deletions
|
@ -28,10 +28,10 @@ module Spectator::Expectations
|
|||
Mocks::Allow.new(@actual.value).to(stub)
|
||||
value = TestValue.new(stub.name, stub.to_s)
|
||||
matcher = if (arguments = stub.arguments?)
|
||||
Matchers::ReceiveArgumentsMatcher.new(value, arguments)
|
||||
else
|
||||
Matchers::ReceiveMatcher.new(value)
|
||||
end
|
||||
Matchers::ReceiveArgumentsMatcher.new(value, arguments)
|
||||
else
|
||||
Matchers::ReceiveMatcher.new(value)
|
||||
end
|
||||
to_eventually(matcher)
|
||||
end
|
||||
|
||||
|
@ -45,10 +45,10 @@ module Spectator::Expectations
|
|||
def to_not(stub : Mocks::MethodStub) : Nil
|
||||
value = TestValue.new(stub.name, stub.to_s)
|
||||
matcher = if (arguments = stub.arguments?)
|
||||
Matchers::ReceiveArgumentsMatcher.new(value, arguments)
|
||||
else
|
||||
Matchers::ReceiveMatcher.new(value)
|
||||
end
|
||||
Matchers::ReceiveArgumentsMatcher.new(value, arguments)
|
||||
else
|
||||
Matchers::ReceiveMatcher.new(value)
|
||||
end
|
||||
to_never(matcher)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue