mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
bcd8173383
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
33 lines
727 B
Ruby
33 lines
727 B
Ruby
if RUBY_VERSION < '2.0'
|
|
appraise '3.0' do
|
|
gem 'rails', '~> 3.0.17'
|
|
gem 'strong_parameters'
|
|
end
|
|
|
|
appraise '3.1' do
|
|
gem 'rails', '~> 3.1.8'
|
|
gem 'bcrypt-ruby', '~> 3.0.0'
|
|
gem 'jquery-rails'
|
|
gem 'sass-rails'
|
|
gem 'strong_parameters'
|
|
end
|
|
end
|
|
|
|
appraise '3.2' do
|
|
gem 'rails', '~> 3.2.13'
|
|
gem 'bcrypt-ruby', '~> 3.0.0'
|
|
gem 'jquery-rails'
|
|
gem 'sass-rails'
|
|
gem 'strong_parameters'
|
|
end
|
|
|
|
appraise '4.0' do
|
|
gem 'rails', '4.0.0'
|
|
gem 'bcrypt-ruby', '~> 3.0.0' #FIXME: This should be ~> 3.1.0 for Rails 4.0
|
|
gem 'jquery-rails'
|
|
gem 'sass-rails', '~> 4.0.0'
|
|
gem 'activeresource', require: 'active_resource'
|
|
|
|
# Test suite makes heavy use of attr_accessible
|
|
gem 'protected_attributes'
|
|
end
|