mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
WIP replace mocks with Mocks shard
This commit is contained in:
parent
0e3f626932
commit
d74a772f43
40 changed files with 110 additions and 2348 deletions
|
@ -1,14 +1,14 @@
|
|||
require "../spec_helper"
|
||||
|
||||
Spectator.describe Spectator::Matchers::ReceiveMatcher do
|
||||
let(stub) { Spectator::NullStub.new(:test_method) }
|
||||
let(stub) { Mocks::NilStub.new(:test_method) }
|
||||
subject(matcher) { described_class.new(stub) }
|
||||
|
||||
let(args) { Spectator::Arguments.capture(1, "test", Symbol, foo: /bar/) }
|
||||
let(args_stub) { Spectator::NullStub.new(:test_method, args) }
|
||||
let(args) { Mocks::ArgumentsPattern.build(1, "test", Symbol, foo: /bar/) }
|
||||
let(args_stub) { Mocks::NilStub.new(:test_method, args) }
|
||||
let(args_matcher) { described_class.new(args_stub) }
|
||||
|
||||
let(no_args_stub) { Spectator::NullStub.new(:test_method, Spectator::Arguments.none) }
|
||||
let(no_args_stub) { Mocks::NilStub.new(:test_method, Mocks::ArgumentsPattern.none) }
|
||||
let(no_args_matcher) { described_class.new(no_args_stub) }
|
||||
|
||||
double(:dbl, test_method: nil, irrelevant: nil)
|
||||
|
@ -296,7 +296,7 @@ Spectator.describe Spectator::Matchers::ReceiveMatcher do
|
|||
end
|
||||
|
||||
it "has the expected call listed" do
|
||||
is_expected.to contain({:expected, "Not #{stub.message}"})
|
||||
is_expected.to contain({:expected, "Not #{stub}"})
|
||||
end
|
||||
|
||||
it "has the list of called methods" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue