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)
|
Mocks::Allow.new(@actual.value).to(stub)
|
||||||
value = TestValue.new(stub.name, stub.to_s)
|
value = TestValue.new(stub.name, stub.to_s)
|
||||||
matcher = if (arguments = stub.arguments?)
|
matcher = if (arguments = stub.arguments?)
|
||||||
Matchers::ReceiveArgumentsMatcher.new(value, arguments)
|
Matchers::ReceiveArgumentsMatcher.new(value, arguments)
|
||||||
else
|
else
|
||||||
Matchers::ReceiveMatcher.new(value)
|
Matchers::ReceiveMatcher.new(value)
|
||||||
end
|
end
|
||||||
to_eventually(matcher)
|
to_eventually(matcher)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -45,10 +45,10 @@ module Spectator::Expectations
|
||||||
def to_not(stub : Mocks::MethodStub) : Nil
|
def to_not(stub : Mocks::MethodStub) : Nil
|
||||||
value = TestValue.new(stub.name, stub.to_s)
|
value = TestValue.new(stub.name, stub.to_s)
|
||||||
matcher = if (arguments = stub.arguments?)
|
matcher = if (arguments = stub.arguments?)
|
||||||
Matchers::ReceiveArgumentsMatcher.new(value, arguments)
|
Matchers::ReceiveArgumentsMatcher.new(value, arguments)
|
||||||
else
|
else
|
||||||
Matchers::ReceiveMatcher.new(value)
|
Matchers::ReceiveMatcher.new(value)
|
||||||
end
|
end
|
||||||
to_never(matcher)
|
to_never(matcher)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue