I have a custom validator (located in app/validators/uri_validator.rb) which is used in:
validates :link, uri: true
How do I specify this in my
Another option is to use the allow_value matcher, although not ideal it can work in some circumstances.
allow_value
it { should allow_value(value_which_is_valid).for(:link) } it { should_not allow_value(value_which_is_invalid).for(:link) }