Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 15 lines (13 sloc) 0.411 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14

namespace :spec do
  desc "run specs against multiple versions of rails"
  task :all do
    Dir["Gemfile-*"].sort.each do |gemfile|
      next if gemfile =~ /lock/
      puts "* running specs under #{gemfile} ..."
      FileUtils.rm_f "Gemfile"
      FileUtils.cp gemfile, "Gemfile"
      system("bundle install") || raise("could not bundle #{gemfile}")
      system("bundle exec spec spec")
    end
  end
end
Something went wrong with that request. Please try again.