Sha256: 9f5ba948b376068f20950f83a90c7461a0a8e9903ea9c04a30828c8082d400d6
Contents?: true
Size: 721 Bytes
Versions: 4
Compression:
Stored size: 721 Bytes
Contents
require "bundler/gem_tasks" require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) task :default => :spec pwd = File.expand_path('../', __FILE__) namespace :spec do %w(activerecord-32 activerecord-40 activerecord-41 activerecord-42).each do |gemfile| desc "Run Tests by #{gemfile}.gemfile" task gemfile 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 desc "Run All Tests" task :all do %w(activerecord-32 activerecord-40 activerecord-41 activerecord-42).each do |gemfile| Rake::Task["spec:#{gemfile}"].invoke end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
activerecord-cause-0.3.0 | Rakefile |
activerecord-cause-0.2.1 | Rakefile |
activerecord-cause-0.2.0 | Rakefile |
activerecord-cause-0.1.0 | Rakefile |