Skip to content

Commit

Permalink
Merge pull request #351 from lockstate/master
Browse files Browse the repository at this point in the history
Allow skipping documentation for a whole spec
  • Loading branch information
oestrich authored Jul 7, 2017
2 parents 36a0c41 + fb3511e commit 3ad1ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec_api_documentation/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def resource(*args, &block)
options = args.last.is_a?(Hash) ? args.pop : {}
options[:api_doc_dsl] = :resource
options[:resource_name] = args.first.to_s
options[:document] ||= :all
options[:document] = :all unless options.key?(:document)
args.push(options)
describe(*args, &block)
end
Expand Down

0 comments on commit 3ad1ab7

Please sign in to comment.