This is interesting. The README file was rewritten in November 2013 to include documentation for disallow_value
, but despite a DisallowValueMatcher
module devoted to implementing such a matcher, the spec for it doesn't include any use of the disallow_value
method. I submitted an issue against the shoulda-matchers gem
Pending more information on this, I'd recommend using should_not allow_value
as an alternative.
Update: This has been acknowledged as an error in the documentation by the shoulda gem maintainers.