Commit Graph

7 Commits

Author SHA1 Message Date
Jason Draper f217014b1e Bump to version 2.4.0 2013-09-20 16:11:59 -04:00
Carsten Zimmermann bcd8173383 Fix regression with context-dependent validations in ActiveResource
As reported in #348, model#valid? is called with one argument while
ActiveResource::Validations only defines #valid? without an optional
argument.

The interface of ActiveResouce::Validations#valid? is the same for
A'resource in Rails 3.2 and the one extracted into a gem.

Rails 3.2 version:
https://github.com/rails/rails/blob/3-2-stable/activeresource/lib/active_resource/validations.rb#L123

Gem version:
https://github.com/rails/activeresource/blob/master/lib/active_resource/validations.rb#L160
2013-09-11 14:26:40 -06:00
Matt Daubert 5815d38fa0 Add have_secure_password matcher 2013-09-05 19:51:04 -06:00
Elliot Winkler 1021fcac89 Bump to version 2.4.0.rc1 2013-08-16 16:52:27 -06:00
Derek Prior d9db850082 Fix route_matcher specs in Rails 4
The rails assertion that underlies the `route_matcher` matcher has
changed in Rails 4 to depend on the `message` method from MiniTest.
RSpec is smart enough to make that method available, but only for
controller and routing specs (and only in 2.13.1+).

I marked the `route_matcher` specs as controller specs and updated the
rspec-rails gem development dependency to 2.13.1 or later (but less than 3).
2013-08-16 16:17:26 -06:00
Elliot Winkler 630dc2212d Bump shoulda-context to ~>1.1.2 for Rails 4 compat 2013-08-16 15:32:08 -06:00
Derek Prior 2e4e76ccfb Add Rails 4 Appraisal
Rails 4 includes strong parameters and removed attr_accessible
(protected attributes). I removed the strong_parameters development
dependency and added it to all non-4.0 appraisals. I also added the
'protected_attributes' gem to the 4.0 appraisal because the test suite
examples make heavy use of attr_accessible.
2013-08-16 15:32:06 -06:00