Skip to content

Commit

Permalink
Don't test Rails 4.0 if RUBY_VERSION < 1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kuroda committed Mar 30, 2013
1 parent b5d91bd commit dcaf7a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Appraisals
Expand Up @@ -15,6 +15,8 @@ appraise 'rails-3.2' do
gem 'rails', '~> 3.2.0.rc1'
end

appraise 'rails-4.0' do
gem 'rails', '~> 4.0.0.beta1'
if RUBY_VERSION >= '1.9.3'
appraise 'rails-4.0' do
gem 'rails', '~> 4.0.0.beta1'
end
end
9 changes: 8 additions & 1 deletion Rakefile
Expand Up @@ -13,5 +13,12 @@ task :default => [:all]

desc 'Test the plugin under all supported Rails versions.'
task :all => ["appraisal:install"] do |t|
exec('rake appraisal test')
if RUBY_VERSION < '1.9.3'
exec('rake appraisal:rails-2.3 test')
exec('rake appraisal:rails-3.0 test')
exec('rake appraisal:rails-3.1 test')
exec('rake appraisal:rails-3.2 test')
else
exec('rake appraisal test')
end
end

0 comments on commit dcaf7a7

Please sign in to comment.