Only works with Rails >= 4.2
carlosramireziii opened this issue · 1 comments
carlosramireziii commented
The ValidatorProxy
object calls validate
on the Active Record model, however this method was added to the Active Record API in Rails 4.2.
For Rails versions 4.1 or below, a NoMethodError: undefined method 'validate'
is raised.
Since validate
is an alias for valid?
perhaps a fix would be to use valid?
instead?
say8425 commented
gem 'rspec-validates_timeliness', github: 'say8425/rspec-validates_timeliness'
@carlosramireziii Use my forked gem.