File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
lib/rspec_api_documentation Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 7
7
module RspecApiDocumentation
8
8
module DSL
9
9
10
- # Custom describe block that sets metadata to enable the rest of RAD
11
- #
12
- # resource "Orders", :meta => :data do
13
- # # ...
14
- # end
15
- #
16
- # Params:
17
- # +args+:: Glob of RSpec's `describe` arguments
18
- # +block+:: Block to pass into describe
19
- #
20
- def resource ( *args , &block )
10
+ # Custom describe block that sets metadata to enable the rest of RAD
11
+ #
12
+ # resource "Orders", :meta => :data do
13
+ # # ...
14
+ # end
15
+ #
16
+ # Params:
17
+ # +args+:: Glob of RSpec's `describe` arguments
18
+ # +block+:: Block to pass into describe
19
+ #
20
+ def resource ( *args , &block )
21
21
options = if args . last . is_a? ( Hash ) then args . pop else { } end
22
22
options [ :api_doc_dsl ] = :resource
23
23
options [ :resource_name ] = args . first
You can’t perform that action at this time.
0 commit comments