diff --git a/lib/tasks/docs.rake b/lib/tasks/docs.rake index d1f4e00b..33e4a185 100644 --- a/lib/tasks/docs.rake +++ b/lib/tasks/docs.rake @@ -5,3 +5,9 @@ RSpec::Core::RakeTask.new('docs:generate') do |t| t.pattern = 'spec/acceptance/**/*_spec.rb' t.rspec_opts = ["--format RspecApiDocumentation::ApiFormatter"] end + +desc 'Generate API request documentation from API specs (ordered)' +RSpec::Core::RakeTask.new('docs:generate:ordered') do |t| + t.pattern = 'spec/acceptance/**/*_spec.rb' + t.rspec_opts = ["--format RspecApiDocumentation::ApiFormatter", "--order default"] +end