Rakefile in formtastic-3.0.0.rc vs Rakefile in formtastic-3.0.0.rc2
- old
+ new
@@ -5,14 +5,13 @@
require 'rspec/core/rake_task'
Bundler::GemHelper.install_tasks
desc 'Default: run unit specs.'
-task :default => :all
-
-desc 'Test formtastic with all supported Rails versions.'
-task :all => ["appraisal:install"] do
- exec('rake appraisal spec')
+if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
+ task :default => :appraisal
+else
+ task :default => :spec
end
desc 'Generate documentation for the formtastic plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'