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
Alex 77d707d2c7 Address todos generated by rubocop for files in Rakefile and Appraisals. (#298)
This partially addresses #293. Since rubocop generated quite a few todos, the commits addressing them are split up into a few different PRs that cover different files.
2018-09-28 14:10:19 -04:00

27 lines
580 B
Ruby

require "bundler/setup"
require "cucumber/rake/task"
require "rspec/core/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
RSpec::Core::RakeTask.new(:spec)
require "appraisal"
desc "Run the test suite"
task :default do
if ENV["BUNDLE_GEMFILE"] =~ /gemfiles/
exec "rake spec && rake cucumber"
else
Rake::Task["appraise"].execute
end
end
task appraise: ["appraisal:install"] do
exec "rake appraisal"
end