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
Avielle Wolfe c5d11518d7 Rename all girl -> bot
* Rename files and code
* Change factory_girl dependency to factory_bot

This change will bring _rails name in line with factory_bot
c716ce01b4
2017-10-20 18:21:52 -04:00

24 lines
513 B
Ruby

require 'bundler/setup'
require 'cucumber/rake/task'
Bundler::GemHelper.install_tasks name: 'factory_bot_rails'
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