Rakefile in paginate-2.0.0 vs Rakefile in paginate-3.0.0

- old
+ new

@@ -1,13 +1,14 @@ require "bundler" Bundler::GemHelper.install_tasks -require "rake/testtask" -Rake::TestTask.new do |t| - t.libs += %w[ test lib ] - t.test_files = FileList["test/**/*_test.rb"] - t.verbose = true - t.ruby_opts = %w[ -rubygems ] -end - require "rspec/core/rake_task" RSpec::Core::RakeTask.new + +desc "Run specs against all gemfiles" +task "spec:all" do + %w[Gemfile gemfiles/rails3.gemfile].each do |gemfile| + ENV["BUNDLE_GEMFILE"] = gemfile + Rake::Task["spec"].reenable + Rake::Task["spec"].invoke + end +end