You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My team is looking into adding shoulda-matchers to our Minitest test suite. Is it possible to use shoulda-matchers without shoulda-context gem ? If so what is the recommended way ?
Documentation suggests it in "Getting Started" section below but all examples assume the usage of should method.
@mcmire you just made my day. Thanks a lot for your answer ! Should we modify the documentation to include a reference ? I can open a PR if needed.
For reference for others who might need it. I'm using Minitest::Spec::DSL
# in a helper filedefassert_must(matcher,subject,msg=nil)assertmatcher.matches?(subject),msgend# in a model filedescribe("validations")let(:user){User.new}it{assert_mustvalidates_presence_of:name,user}end
Hello 👋
My team is looking into adding
shoulda-matchers
to our Minitest test suite. Is it possible to useshoulda-matchers
withoutshoulda-context
gem ? If so what is the recommended way ?Documentation suggests it in "Getting Started" section below but all examples assume the usage of
should
method.https://matchers.shoulda.io/docs/v5.3.0/#minitest
Thanks for any help that you would be willing to give us and for this very useful gem 🙏
The text was updated successfully, but these errors were encountered: