Sha256: 39e2db03357655a5f8b5a2d90afef542c16086a1b421a4119af9c0661bd5e1e5

Contents?: true

Size: 701 Bytes

Versions: 3

Compression:

Stored size: 701 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

namespace :spec do
  %w(activerecord-40 activerecord-41 activerecord-412 activerecord-42 activerecord-master).each do |gemfile|
    desc "Run Tests by #{gemfile}.gemfile"
    task gemfile do
      sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle install --path .bundle"
      sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake -t spec"
    end
  end

  desc "Run All Tests"
  task :all do
    %w(activerecord-40 activerecord-41 activerecord-412 activerecord-42 activerecord-master).each do |gemfile|
      Rake::Task["spec:#{gemfile}"].invoke
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activemodel-associations-0.1.2 Rakefile
activemodel-associations-0.1.1 Rakefile
activemodel-associations-0.1.0 Rakefile