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

Merge pull request #247 from thoughtbot/mj-rakefile-appraisal

Allow the suite to run sequentially via Appraisal
This commit is contained in:
Matt Jankowski 2013-03-05 10:26:25 -08:00
commit 85d19da45c

View file

@ -15,10 +15,14 @@ Cucumber::Rake::Task.new do |t|
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end
desc 'Test the plugin under all supported Rails versions.'
task :all => ["appraisal:cleanup", "appraisal:install"] do
exec('rake appraisal spec cucumber')
task :default do |t|
if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
exec 'rake spec cucumber'
else
Rake::Task['appraise'].execute
end
end
desc 'Default: run specs and cucumber features'
task :default => [:all]
task :appraise => ['appraisal:install'] do |t|
exec 'rake appraisal'
end