File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
lib/rspec_api_documentation/writers Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ Feature: Generate Slate documentation from test examples
57
57
end
58
58
59
59
resource 'Orders' do
60
+ explanation "An Order represents an amount of money to be paid"
60
61
get '/orders' do
61
62
response_field :page, "Current page"
62
63
@@ -216,6 +217,7 @@ Feature: Generate Slate documentation from test examples
216
217
217
218
## Creating an order
218
219
220
+ An Order represents an amount of money to be paid
219
221
220
222
### Request
221
223
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ def write
26
26
IndexHelper . sections ( index . examples , @configuration ) . each do |section |
27
27
28
28
file . write "# #{ section [ :resource_name ] } \n \n "
29
+ file . write "#{ section [ :resource_explanation ] } \n \n "
29
30
section [ :examples ] . sort_by! ( &:description ) unless configuration . keep_source_order
30
31
31
32
section [ :examples ] . each do |example |
You can’t perform that action at this time.
0 commit comments