Use new mock DSL

This commit is contained in:
Michael Miller 2024-05-16 21:02:14 -06:00
parent 678f85eac1
commit 2bb9fe8dcd
No known key found for this signature in database
GPG key ID: AC78B32D30CE34A2
10 changed files with 19 additions and 19 deletions

View file

@ -25,11 +25,11 @@ class Sdk < SdkInterface
end
Spectator.describe Example do
mock Sdk
mock MockSdk < Sdk
describe "#configure" do
it "registers a block on configure" do
sdk = mock(Sdk)
sdk = MockSdk.new
example_class = Example.new(sdk)
allow(sdk).to receive(register_hook())