mirror of
https://github.com/thoughtbot/factory_bot_rails.git
synced 2022-11-09 11:49:18 -05:00
17 lines
444 B
Text
17 lines
444 B
Text
|
require 'rake/gempackagetask'
|
||
|
require 'cucumber/rake/task'
|
||
|
|
||
|
eval("$specification = #{IO.read('factory_girl_rails.gemspec')}")
|
||
|
Rake::GemPackageTask.new($specification) do |package|
|
||
|
package.need_zip = true
|
||
|
package.need_tar = true
|
||
|
end
|
||
|
|
||
|
Cucumber::Rake::Task.new(:cucumber) do |t|
|
||
|
t.fork = true
|
||
|
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
|
||
|
end
|
||
|
|
||
|
desc "Default: run the cucumber scenarios"
|
||
|
task :default => :cucumber
|