Rakefile in administrate-0.1.0 vs Rakefile in administrate-0.1.1

- old
+ new

@@ -4,34 +4,29 @@ puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end require 'rdoc/task' +require File.expand_path('../spec/example_app/config/application', __FILE__) + RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'Administrate' rdoc.options << '--line-numbers' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end -APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__) -load 'rails/tasks/engine.rake' - - -load 'rails/tasks/statistics.rake' - - - Bundler::GemHelper.install_tasks -require 'rake/testtask' +Rails.application.load_tasks +task(:default).clear +task default: [:spec] -Rake::TestTask.new(:test) do |t| - t.libs << 'lib' - t.libs << 'test' - t.pattern = 'test/**/*_test.rb' - t.verbose = false +if defined? RSpec + task(:spec).clear + RSpec::Core::RakeTask.new(:spec) do |t| + t.verbose = false + end end - -task default: :test +task default: "bundler:audit"