Rakefile 691 B

1234567891011121314151617181920212223242526272829
  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. require 'appraisal'
  8. RDoc::Task.new(:rdoc) do |rdoc|
  9. rdoc.rdoc_dir = 'rdoc'
  10. rdoc.title = 'ChinaCity'
  11. rdoc.options << '--line-numbers'
  12. rdoc.rdoc_files.include('README.rdoc')
  13. rdoc.rdoc_files.include('lib/**/*.rb')
  14. end
  15. APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
  16. load 'rails/tasks/engine.rake'
  17. Bundler::GemHelper.install_tasks
  18. require 'rspec/core'
  19. require 'rspec/core/rake_task'
  20. desc "Run all specs in spec directory (excluding plugin specs)"
  21. RSpec::Core::RakeTask.new(:spec)
  22. task :default => :spec