We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a3ff0b commit d37665fCopy full SHA for d37665f
lib/rspec_api_documentation/dsl.rb
@@ -208,7 +208,7 @@ def self.resource(*args, &block)
208
options = if args.last.is_a?(Hash) then args.pop else {} end
209
options[:api_docs_dsl] = true
210
options[:resource_name] = args.first
211
- options[:document] = :all
+ options[:document] ||= :all
212
args.push(options)
213
describe(*args, &block)
214
end
spec/dsl_spec.rb
@@ -458,3 +458,9 @@
458
example.metadata[:parameters].length.should == 1
459
460
461
+
462
+resource "passing in document to resource", :document => :not_all do
463
+ it "should have the correct tag" do
464
+ example.metadata[:document].should == :not_all
465
+ end
466
+end
0 commit comments