Commit 63886520 by Prem Sichanugrist

Fix a bug when running `rake appraisal:[version]`

parent 9ea4a9be
......@@ -4,11 +4,16 @@ require 'rake/testtask'
require 'cucumber/rake/task'
desc 'Default: run unit tests.'
task :default => [:clean, 'appraisal:install', :all]
task :default => [:clean, :all]
desc 'Test the paperclip plugin under all supported Rails versions.'
task :all do |t|
if ENV['BUNDLE_GEMFILE']
exec('rake test cucumber')
else
Rake::Task["appraisal:install"].execute
exec('rake appraisal test cucumber')
end
end
desc 'Test the paperclip plugin.'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment