1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/Rakefile

30 lines
638 B
Text
Raw Normal View History

2011-11-18 18:13:04 -05:00
require 'bundler/setup'
2011-11-12 17:04:59 -05:00
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
require 'appraisal'
RSpec::Core::RakeTask.new do |t|
t.pattern = "spec/**/*_spec.rb"
2010-12-14 18:35:12 -05:00
t.rspec_opts = '--color --format progress'
t.verbose = false
end
2010-12-13 15:56:37 -05:00
Cucumber::Rake::Task.new do |t|
t.fork = false
2010-12-13 15:56:37 -05:00
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end
task :default do
if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
Rake::Task['spec'].invoke
Rake::Task['cucumber'].invoke
else
Rake::Task['appraise'].invoke
end
end
2012-04-10 00:06:09 -04:00
task :appraise do
exec 'appraisal install && appraisal rake'
end