Rename OpenMock to Allow

This commit is contained in:
Michael Miller 2019-11-09 09:05:17 -07:00
parent 0698ed655d
commit 8262bb0316
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ module Spectator::DSL
end
def allow(double : ::Spectator::Mocks::Double)
Mocks::OpenMock.new(double)
Mocks::Allow.new(double)
end
macro receive(method_name, _source_file = __FILE__, _source_line = __LINE__)

View file

@ -1,5 +1,5 @@
module Spectator::Mocks
struct OpenMock
struct Allow
def initialize(@mock : Double)
end