This repository has been archived by the owner. It is now read-only.
Browse files

change Rakefile to allow either a single run or a full appraisal run

  • Loading branch information...
mjankowski committed Apr 2, 2012
1 parent bac5348 commit a9f525d28041148b5a36a6641c3a0380b49ed666
Showing with 9 additions and 5 deletions.
  1. +9 −5 Rakefile
@@ -5,10 +5,14 @@ require 'appraisal'
require 'rspec/core/rake_task'
-desc "Default: run the unit tests."
-task :default => [:all]
+task :default do |t|
+ if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
+ exec 'rake spec'
+ else
+ Rake::Task['appraise'].execute
+ end
-desc 'Test the plugin under all supported Rails versions.'
-task :all => ["appraisal:install"] do |t|
- exec('rake appraisal spec')
+task :appraise => ['appraisal:install'] do |t|
+ exec 'rake appraisal'

0 comments on commit a9f525d

Please sign in to comment.