troupe
troupe copied to clipboard
Enforce contract in specs?
I have an interactor with:
expects :one
expects :two
Then in a spec that uses this interactor I might have something like:
expect(interactor).to receive(:call).with(one: 1) { result }
I forgot two
but the test passes. Any thoughts on enforcing the contract here?
@sporto I'll take a look at this today and get back to you. My guess is that it has to do with the way that the object is mocked.
@jonstokes Have you found anything on this topic? Thanks