Sha256: 04701d2d13b81446063042084a7d29e9d8e01f5e28e58cbaa09f405c54302c49
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
require "bundler/gem_tasks" require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) task :default => :spec pwd = File.expand_path('../', __FILE__) gemfiles = %w(activerecord-40 activerecord-41 activerecord-42 activerecord-50) namespace :spec do gemfiles.each do |gemfile| desc "Run Tests by #{gemfile}.gemfile" task gemfile do Bundler.with_clean_env do sh "BUNDLE_GEMFILE='#{pwd}/gemfiles/#{gemfile}.gemfile' bundle install --path #{pwd}/.bundle" sh "BUNDLE_GEMFILE='#{pwd}/gemfiles/#{gemfile}.gemfile' bundle exec rake -t spec" end end end desc "Run All Tests" task :all do gemfiles.each do |gemfile| Rake::Task["spec:#{gemfile}"].invoke end end end namespace :bundle_update do gemfiles.each do |gemfile| desc "Run Tests by #{gemfile}.gemfile" task gemfile do Bundler.with_clean_env do sh "BUNDLE_GEMFILE='#{pwd}/gemfiles/#{gemfile}.gemfile' bundle update" end end end desc "Run All Tests" task :all do gemfiles.each do |gemfile| Rake::Task["bundle_update:#{gemfile}"].invoke end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-cause-0.4.0 | Rakefile |
activerecord-cause-0.4.0.beta | Rakefile |