mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use new mock DSL
This commit is contained in:
parent
678f85eac1
commit
2bb9fe8dcd
10 changed files with 19 additions and 19 deletions
|
@ -25,9 +25,9 @@ module GitLabIssue51
|
|||
end
|
||||
|
||||
Spectator.describe GitLabIssue51::Bar do
|
||||
mock GitLabIssue51::Foo, call: "", alt1_call: "", alt2_call: ""
|
||||
mock TestMock < GitLabIssue51::Foo, call: "", alt1_call: "", alt2_call: ""
|
||||
|
||||
let(:foo) { mock(GitLabIssue51::Foo) }
|
||||
let(:foo) { TestMock.new }
|
||||
subject(:call) { described_class.new.call(foo) }
|
||||
|
||||
describe "#call" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue