This repository has been archived by the owner. It is now read-only.
Permalink
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
View
@@ -5,10 +5,14 @@ require 'appraisal'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
-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
+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'
end

0 comments on commit a9f525d

Please sign in to comment.