Sha256: 0142535c8609879f4e4daa8b27ba50bbb74650bbcd768a4a135b6e2b2c1aeef3
Contents?: true
Size: 1.17 KB
Versions: 9
Compression:
Stored size: 1.17 KB
Contents
begin require 'bundler/setup' rescue LoadError puts 'You must `gem install bundler` and `bundle install` to run rake tasks' end require 'rdoc/task' RDoc::Task.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' rdoc.title = 'ClWiki' 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' Bundler::GemHelper.install_tasks require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.libs << 'test' t.pattern = 'test/**/*_test.rb' t.verbose = false end # Customized additions to the Rails Engine Rakefile below, # since the current frankenstein setup has the core clWiki # with Test::Unit tests and the new Rails Engine bits with RSpec. RSpec::Core::RakeTask.new(:spec) task :tests do errors = %w(test spec).collect do |task| begin Rake::Task[task].invoke nil rescue => e { task: task, exception: e } end end.compact if errors.any? puts errors.map { |e| "Errors running #{e[:task]}! #{e[:exception].inspect}" }.join("\n") abort end end task default: :tests
Version data entries
9 entries across 9 versions & 1 rubygems