mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
402e6ed84c
This allows us to test factory_girl_rails against each minor release of Rails 3. To run the full suite, run $ bundle exec rake To view all the rake tasks Appraisal provides, run $ bundle exec rake -T appraisal
23 lines
481 B
Ruby
23 lines
481 B
Ruby
require 'bundler/setup'
|
|
require 'bundler/gem_tasks'
|
|
require 'cucumber/rake/task'
|
|
|
|
Cucumber::Rake::Task.new(:cucumber) do |t|
|
|
t.fork = true
|
|
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
|
|
end
|
|
|
|
require 'appraisal'
|
|
|
|
desc 'Run the test suite'
|
|
task :default do |t|
|
|
if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
|
|
exec 'rake cucumber'
|
|
else
|
|
Rake::Task['appraise'].execute
|
|
end
|
|
end
|
|
|
|
task :appraise => ['appraisal:install'] do |t|
|
|
exec 'rake appraisal'
|
|
end
|