Document "doc" task and use "sh" so it prints output

This commit is contained in:
Ben Hollis 2011-11-30 20:55:44 -08:00
parent 1b330e7a27
commit c730af108c

View file

@ -7,11 +7,11 @@ Cucumber::Rake::Task.new(:cucumber, 'Run features that should pass') do |t|
t.cucumber_opts = "--color --tags ~@wip --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}" t.cucumber_opts = "--color --tags ~@wip --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
end end
require 'rake/testtask'
require 'rake/clean' require 'rake/clean'
task :test => ["cucumber"] task :test => ["cucumber"]
desc "Build HTML documentation"
task :doc do task :doc do
`bundle exec yard` sh 'bundle exec yard'
end end