Sha256: 3ddf5963576c952d0536130765708043d23b7729dec291097c58e9d64d20d395
Contents?: true
Size: 1012 Bytes
Versions: 10
Compression:
Stored size: 1012 Bytes
Contents
#!/usr/bin/env rake begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end begin require 'rdoc/task' rescue LoadError require 'rdoc/rdoc' require 'rake/rdoctask' RDoc::Task = Rake::RDocTask end RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'WitchDoctor' rdoc.options << '--line-numbers' rdoc.rdoc_files.include('README.rdoc') rdoc.rdoc_files.include('lib/**/*.rb') end APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) load 'rails/tasks/engine.rake' require 'rspec/core' require 'rspec/core/rake_task' desc "Run all specs in spec directory (excluding plugin specs)" RSpec::Core::RakeTask.new(:spec => 'app:prepare_test_db') namespace :app do task :prepare_test_db do Rails.env = "test" ENV['RAILS_ENV'] = 'test' Rake::Task["app:db:create"].invoke Rake::Task["app:db:migrate"].invoke end end task :default => :spec Bundler::GemHelper.install_tasks
Version data entries
10 entries across 10 versions & 1 rubygems