Only works with Rails >= 4.2
carlosramireziii opened this issue · comments
Carlos Ramirez III 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?
Penguin commented
gem 'rspec-validates_timeliness', github: 'say8425/rspec-validates_timeliness'
@carlosramireziii Use my forked gem.