We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rather than add a bunch of boilerplate tests for contract breaches, I was wondering if there was something similar to the shoulda-matchers. https://github.com/thoughtbot/shoulda-matchers/tree/main
shoulda-matchers
So for
class MyInteractor include Interactor include Interactor::Contracts expects do required(:argument1).filled required(:argument2).filled end def call #does stuff end end
We could have a spec
describe MyInteractor do describe 'validations' do it { should validate_presence_of(:argument1) } it { should validate_presence_of(:argument2) } end end
The text was updated successfully, but these errors were encountered:
I'm open to the idea! Happy to accept a PR.
Sorry, something went wrong.
No branches or pull requests
Rather than add a bunch of boilerplate tests for contract breaches, I was wondering if there was something similar to the
shoulda-matchers
. https://github.com/thoughtbot/shoulda-matchers/tree/mainSo for
We could have a spec
The text was updated successfully, but these errors were encountered: