Skip to content

Commit

Permalink
Merge pull request #114 from marshally/rake_task_to_create_ordered_do…
Browse files Browse the repository at this point in the history
…cumentation

add a rake task for generating docs in the same order specified in specs
  • Loading branch information
oestrich committed Feb 6, 2014
2 parents fc27d98 + b22ebfe commit eb6ce63
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/tasks/docs.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eb6ce63

Please sign in to comment.