Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (26 sloc) 813 Bytes
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << "test"
t.pattern = 'test/**/*_test.rb'
t.warning = true
t.verbose = true
end
task :default => 'test:all'
namespace :test do
%w(rails_41 rails_42 rails_edge).each do |gemfile|
desc "Run Tests against #{gemfile}"
task gemfile do
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake -t test"
end
end
desc 'Run Tests against all Rails versions'
task :all do
%w(rails_41 rails_42 rails_edge).each do |gemfile|
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake -t test"
end
end
end
Something went wrong with that request. Please try again.