Formatting

This commit is contained in:
Michael Miller 2019-11-16 09:03:24 -07:00
parent ca85acefaf
commit 23d8f4b5a6

View file

@ -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