Skip to content

Commit 3ad1ab7

Browse files
authored
Merge pull request #351 from lockstate/master
Allow skipping documentation for a whole spec
2 parents 36a0c41 + fb3511e commit 3ad1ab7

File tree

1 file changed

+1
-1
lines changed
  • lib/rspec_api_documentation

1 file changed

+1
-1
lines changed

lib/rspec_api_documentation/dsl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def resource(*args, &block)
2121
options = args.last.is_a?(Hash) ? args.pop : {}
2222
options[:api_doc_dsl] = :resource
2323
options[:resource_name] = args.first.to_s
24-
options[:document] ||= :all
24+
options[:document] = :all unless options.key?(:document)
2525
args.push(options)
2626
describe(*args, &block)
2727
end

0 commit comments

Comments
 (0)