Sha256: 387df426a1f9d523b0807d432dee93fe44fe52acfa453f566d42f3357964298e
Contents?: true
Size: 1.12 KB
Versions: 10
Compression:
Stored size: 1.12 KB
Contents
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 desc 'Generate documentation for Alchemy CMS.' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'Alchemy CMS' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README.md') rdoc.rdoc_files.include('config/alchemy/*.yml') rdoc.rdoc_files.include('lib/**/*.rb') rdoc.rdoc_files.include('app/**/*.rb') end APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__) load 'rails/tasks/engine.rake' require 'rspec/core' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task default: ['alchemy:spec:prepare', :spec] Bundler::GemHelper.install_tasks namespace :alchemy do namespace :spec do desc "Prepares database for testing Alchemy" task :prepare do system <<-BASH cd spec/dummy export RAILS_ENV=test bin/rake db:environment:set bin/rake db:migrate:reset cd - BASH end end end
Version data entries
10 entries across 10 versions & 1 rubygems