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

View file

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