1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot_rails.git synced 2022-11-09 11:49:18 -05:00
thoughtbot--factory_bot_rails/Rakefile
Joshua Clayton 402e6ed84c Use Appraisal
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
2012-11-02 16:35:09 -04:00

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