Permalink
Browse files

Prevent `rake` from recursing if already appraising.

  • Loading branch information...
1 parent a00a3a2 commit 498548b845567768447a711cd43bf927234b149e @jasoncodes jasoncodes committed Mar 21, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 Rakefile
View
@@ -7,5 +7,9 @@ require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task :default do
- exec 'rake appraisal spec'
+ if ENV['BUNDLE_GEMFILE'] == File.expand_path('Gemfile')
+ exec 'rake appraisal:all'
+ else
+ Rake::Task['spec'].invoke
+ end
end

0 comments on commit 498548b

Please sign in to comment.