Rakefile 671 B

12345678910111213141516171819202122232425262728
  1. begin
  2. require 'bundler/setup'
  3. rescue LoadError
  4. puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
  5. end
  6. require 'rdoc/task'
  7. RDoc::Task.new(:rdoc) do |rdoc|
  8. rdoc.rdoc_dir = 'rdoc'
  9. rdoc.title = 'ChinaCity'
  10. rdoc.options << '--line-numbers'
  11. rdoc.rdoc_files.include('README.rdoc')
  12. rdoc.rdoc_files.include('lib/**/*.rb')
  13. end
  14. APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
  15. load 'rails/tasks/engine.rake'
  16. Bundler::GemHelper.install_tasks
  17. require 'rspec/core'
  18. require 'rspec/core/rake_task'
  19. desc "Run all specs in spec directory (excluding plugin specs)"
  20. RSpec::Core::RakeTask.new(:spec)
  21. task :default => :spec