1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
Commit graph

4 commits

Author SHA1 Message Date
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
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