File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
templates/rspec_api_documentation Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ Feature: Generate HTML documentation from test examples
26
26
resource "Greetings" do
27
27
get "/greetings" do
28
28
parameter :target, "The thing you want to greet"
29
+ parameter :scoped, "This is a scoped variable", :scope => :scope
29
30
30
31
example "Greeting your favorite gem" do
31
32
do_request :target => "rspec_api_documentation"
@@ -60,8 +61,9 @@ Feature: Generate HTML documentation from test examples
60
61
When I open the index
61
62
And I navigate to "Greeting your favorite gem"
62
63
Then I should see the following parameters:
63
- | name | description |
64
- | target | The thing you want to greet |
64
+ | name | description |
65
+ | target | The thing you want to greet |
66
+ | scope [scoped ] | This is a scoped variable |
65
67
66
68
Scenario : Example HTML documentation includes the request information
67
69
When I open the index
Original file line number Diff line number Diff line change 53
53
{ {# parameters } }
54
54
<tr >
55
55
<td { { # required } } class =" required" { { / required } } >
56
- <span class =" name" >{ { name } }</span >
56
+ { {# scope } }
57
+ <span class =" name" >{ { scope } }[{ { name } }]</span >
58
+ { {/ scope } }
59
+ { {^ scope } }
60
+ <span class =" name" >{ { name } }</span >
61
+ { {/ scope } }
57
62
</td >
58
63
<td >
59
64
<span class =" description" >{ { description } }</span >
You can’t perform that action at this time.
0 commit comments