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
2626      resource "Greetings" do 
2727        get "/greetings" do 
2828          parameter :target, "The thing you want to greet" 
29+           parameter :scoped, "This is a scoped variable", :scope => :scope 
2930
3031          example "Greeting your favorite gem" do 
3132            do_request :target => "rspec_api_documentation" 
@@ -60,8 +61,9 @@ Feature: Generate HTML documentation from test examples
6061    When   I open the index
6162    And    I navigate to "Greeting your favorite gem" 
6263    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    | 
6567
6668  Scenario : Example HTML documentation includes the request information 
6769    When   I open the index
Original file line number Diff line number Diff line change 5353              { {# parameters }  }
5454              <tr >
5555                <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 }  }
5762                </td >
5863                <td >
5964                  <span  class =" description"  >{ { description }  }</span >
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments