From b22ebfe6b0d76e9a852e36cd875dbf484be88f00 Mon Sep 17 00:00:00 2001 From: Marshall Yount Date: Thu, 6 Feb 2014 14:24:50 -0600 Subject: [PATCH] add a rake task for generating docs in the same order specified in spec files --- lib/tasks/docs.rake | 6 ++++++ 1 file changed, 6 insertions(+) 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