thoughtbot / shoulda-matchers

Simple one-liner tests for common Rails functionality
https://matchers.shoulda.io
MIT License
3.51k stars 912 forks source link

fix: with_high_message expects a custom validation message too #1623

Open freesteph opened 6 months ago

freesteph commented 6 months ago

The only impact being in the generated documentation (via description_clauses_for_qualifiers):

before:

is expected to validate that Y lies inside the range R

after

is expected to validate that X lies inside the range R producing a custom validation error on failure

As with_low_message already does.