Sha256: db89f0beb7b7ec2f5bc4e36c8b82c358475875277937571e52b01d387d249958

Contents?: true

Size: 789 Bytes

Versions: 5

Compression:

Stored size: 789 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).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).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

5 entries across 5 versions & 1 rubygems

Version Path
action_args-1.3.0 Rakefile
action_args-1.2.1 Rakefile
action_args-1.2.0 Rakefile
action_args-1.1.1 Rakefile
action_args-1.1.0 Rakefile