This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'rspec/core/rake_task' | |
namespace :project_name do | |
namespace :api do | |
desc 'Generate API request documentation from API specs' | |
RSpec::Core::RakeTask.new('generate_docs') do |t| | |
t.pattern = 'spec/controllers/api/**/*_spec.rb' | |
t.rspec_opts = ["-Ilib/tasks/api_docs", "-rinstrument_specs", "-rapi_formatter", "--format APIFormatter"] | |
end |