Skip to content

Commit

Permalink
cleanup Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
dejan committed May 5, 2012
1 parent bf63f85 commit 8ede109
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions Rakefile
Expand Up @@ -8,24 +8,9 @@ Rake::TestTask.new(:test) do |t|
t.pattern = 'test/**/*_test.rb'
end

desc 'Test with recent versions of Rails'
task :test_wit_all_rails_versions do
versions = ['2.1.2',
'2.2.3',
# '2.3.14',
'3.0.11',
'3.1.3',
'3.2.1']
versions.each do |v|
puts "\n###### TESTING WITH RAILS #{v}"
ENV['RAILS_VERSION'] = v
Rake::Task['test'].execute
end
end

desc 'Test with versions of Rails available on the system'
task :test_with_installed do
versions = `gem list rails | grep rails`.gsub("rails (", "").chop.split(', ')
versions = `gem list rails | grep rails`.gsub("rails (", "").chop.chop.split(', ')
exclude = []
(versions-exclude).each do |v|
puts "\n###### TESTING WITH RAILS #{v}"
Expand Down

0 comments on commit 8ede109

Please sign in to comment.