thoughtbot / shoulda-matchers

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

remove invalid validate_comparison_of from README #1576

Closed MorganBat closed 11 months ago

MorganBat commented 11 months ago

The README on GitHub lists a validates_comparison_of shoulda matcher. However, in my testing I get an error that it doesn't exist - this is reflected in the official documentation (https://matchers.shoulda.io/docs/v5.3.0/#activemodel-matchers) Which does NOT have the validates_comparison_of matcher listed.

matsales28 commented 11 months ago

Hi @MorganBat,

Unfortunately, this matcher is only available on the main branch of the gem, and we have not yet published it to a new version. I hope we can do that soon. Meanwhile, I created a new branch that contains this new matcher, you can use it on your project while we do not publish our new version. Hope that helps.

gem 'shoulda-matchers', github: 'thoughtbot/shoulda-matchers', branch: 'with-comparison-matcher'

I'll close this PR but I wanted to thank you regardless.