Fix mocking example in README.md

This commit is contained in:
Stuart Frost 2023-05-19 19:39:22 +01:00
parent 9cbb5d2cf7
commit 04f151fddf
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ Spectator.describe Driver do
# Call the mock method.
subject.do_something(interface, dbl)
# Verify everything went okay.
expect(interface).to have_received(:invoke).with(thing)
expect(interface).to have_received(:invoke).with(dbl)
end
end
```