Rakefile in formtastic-2.0.2 vs Rakefile in formtastic-2.1.0.beta1

- old
+ new

@@ -1,16 +1,20 @@ # encoding: utf-8 -require 'rubygems' -require 'rake' -require 'rake/rdoctask' +require 'bundler/setup' +require 'appraisal' +require 'rdoc/task' require 'rspec/core/rake_task' require 'tasks/verify_rcov' -require 'bundler' Bundler::GemHelper.install_tasks desc 'Default: run unit specs.' -task :default => :spec_and_verify_coverage +task :default => :all + +desc 'Test formtastic with all supported Rails versions.' +task :all => ["appraisal:install"] do + exec('rake appraisal spec') +end desc 'Generate documentation for the formtastic plugin.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'Formtastic'