mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Rename OpenMock to Allow
This commit is contained in:
parent
0698ed655d
commit
8262bb0316
2 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ module Spectator::DSL
|
||||||
end
|
end
|
||||||
|
|
||||||
def allow(double : ::Spectator::Mocks::Double)
|
def allow(double : ::Spectator::Mocks::Double)
|
||||||
Mocks::OpenMock.new(double)
|
Mocks::Allow.new(double)
|
||||||
end
|
end
|
||||||
|
|
||||||
macro receive(method_name, _source_file = __FILE__, _source_line = __LINE__)
|
macro receive(method_name, _source_file = __FILE__, _source_line = __LINE__)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
module Spectator::Mocks
|
module Spectator::Mocks
|
||||||
struct OpenMock
|
struct Allow
|
||||||
def initialize(@mock : Double)
|
def initialize(@mock : Double)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue