1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/Appraisals
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

29 lines
532 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 'jquery-rails'
gem 'sass-rails'
gem 'strong_parameters'
end
end
appraise '3.2' do
gem 'rails', '~> 3.2.13'
gem 'jquery-rails'
gem 'sass-rails'
gem 'strong_parameters'
end
appraise '4.0' do
gem 'rails', '4.0.0'
gem 'jquery-rails'
gem 'sass-rails', '~> 4.0.0'
# Test suite makes heavy use of attr_accessible
gem 'protected_attributes'
end