We haven’t been taking pull requests on shoulda-matchers as much as we shoulda, but it’s back in the spotlight now. Shoulda’s been gone … but it’s back.
Here are the new features in shoulda-matchers 1.1.0:
only_integer option for validates_numericality_ofquery_the_database matcher, so that you can do it { should query_the_database(4.times).or_less }[], like so: it { should set_the_flash[:alert].to("Bad username") }validates_confirmation_of matcher: it { should validate_confirmation_of(:password) }serialize matcher: it { should serialize(:details).as(Hash).as_instance_of(Hash) }have_sent_email matcher can now check reply_to: it { should have_sent_email.reply_to([user, other]) }accept_nested_attributes matcherIf you filed a pull request and we didn’t take a look, please re-submit or ping me on Github. We’d love to hear from you.