diff --git a/lib/tasks/docs.rake b/lib/tasks/docs.rake index 28d0a07c..eafee534 100644 --- a/lib/tasks/docs.rake +++ b/lib/tasks/docs.rake @@ -11,3 +11,9 @@ RSpec::Core::RakeTask.new('docs:generate:ordered') do |t| t.pattern = 'spec/acceptance/**/*_spec.rb' t.rspec_opts = ["--format RspecApiDocumentation::ApiFormatter", "--order defined"] end + +desc "Generate API request documentation from API specs, and skip tests that don't generate any docs" +RSpec::Core::RakeTask.new('docs:generate:skip_undocumenting') do |t| + t.pattern = 'spec/acceptance/**/*_spec.rb' + t.rspec_opts = ["--format RspecApiDocumentation::ApiFormatter", "--tag ~@document:false"] +end