Rakefile in couch_potato-0.5.7 vs Rakefile in couch_potato-0.6.0

- old
+ new

@@ -66,10 +66,20 @@ desc "Run unit specs with all validation frameworks" task :spec_unit => [:spec_unit_validatable, :spec_unit_active_model] do end desc "Run all specs" -task :spec => [:spec_unit, :spec_functional] do +task :spec do + ['3_0', '3_1'].each do |version| + Bundler.with_clean_env do + ENV['BUNDLE_GEMFILE'] = "active_support_#{version}" + sh "bundle install" + Rake::Task[:spec_unit_active_model].execute + Rake::Task[:spec_functional_active_model].execute + Rake::Task[:spec_unit_validatable].execute + Rake::Task[:spec_functional_validatable].execute + end + end end desc 'Generate documentation' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc'