yhirano55 / rspec-validates_timeliness

Simple RSpec matchers for validates_timeliness

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only works with Rails >= 4.2

carlosramireziii opened this issue · comments

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?

gem 'rspec-validates_timeliness', github: 'say8425/rspec-validates_timeliness'

@carlosramireziii Use my forked gem.