Sha256: 496c44db6dd034aeb8cc3419d164f2d64568fcc0fe0c1615db0f72aba6e1ef94

Contents?: true

Size: 825 Bytes

Versions: 2

Compression:

Stored size: 825 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = FileList['spec/**/*_spec.rb']
end

task :default => 'spec:all'

namespace :spec do
  %w(rails_32 rails_40 rails_41 rails_42).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 spec"
    end
  end

  desc 'Run Tests against all Rails versions'
  task :all do
    %w(rails_32 rails_40 rails_41 rails_42).each do |gemfile|
      sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
      sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
action_args-1.5.4 Rakefile
action_args-1.5.3 Rakefile