Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 466 Bytes
require 'rubygems'
require 'rake'
require 'rspec/core'
require 'rspec/core/rake_task'
task :default => :spec
desc "Run specs"
RSpec::Core::RakeTask.new(:spec)
desc "Run tests against all other versions of Rails (!run task without 'bundle exec'!)"
task :all do
versions = %w[~>2 ~>3.0.0 ~>3.1.0]
versions.each do |version|
sh "export RAILS_VERSION='#{version}' && (bundle check || bundle update) && bundle exec rake"
end
sh "git co Gemfile.lock"
end
Something went wrong with that request. Please try again.