Rakefile in paperclip_database-1.0.2 vs Rakefile in paperclip_database-1.0.3
- old
+ new
@@ -1,18 +1,23 @@
require 'bundler/gem_tasks'
require 'appraisal'
require 'rake/testtask'
require 'cucumber/rake/task'
-desc 'Default: run unit tests.'
-task :default => [:clean, 'appraisal:install', :all]
+desc 'Default: clean, appraisal:install, all.'
+task :default => [:clean, :all]
desc 'Test the paperclip_database plugin under all supported Rails versions.'
task :all do |t|
- exec('rake appraisal test cucumber')
+ 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.'
+desc 'Test the paperclip_database plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib' << 'profile'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end