Sha256: 41027740476add9603192e71f964d37f8f5b9c4c78755b319405d21718974cbf
Contents?: true
Size: 1.86 KB
Versions: 2
Compression:
Stored size: 1.86 KB
Contents
Feature: html generation When testing your api ensure that CSRF protection is handled properly with `protect_from_forgery :null_session` @javascript Scenario: json schema gets generated into html preview using "users/create" Given an empty directory named "html" And a file named "lurker/api/v1/users-POST.json.yml" with: """yml --- prefix: users management description: user creation requestParameters: properties: user: description: '' type: object properties: name: description: '' type: string example: Bob required: [] required: [] responseCodes: - status: 200 successful: true description: '' responseParameters: properties: id: description: '' type: integer example: 1 name: description: '' type: string example: Bob required: [] extensions: method: POST path_info: "/api/v1/users" path_params: action: create controller: api/v1/users suffix: '' """ When I successfully run `bin/lurker convert` Then the output should contain these lines: """ Converting lurker to html using lurker create index.html create api/v1/users-POST.html """ When I go to "/lurker" Then I should see "users management" When I click on "users management" Then I should see "user creation" When I click on "user creation" And I fill in the submit form field "name" with "Jim" And I submit it Then I should see JSON response with "Jim" When I fill in the submit form field "name" with "" And I submit it Then I should see JSON response with "can't be blank"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lurker-0.5.1 | features/docs_generation/html_generation.feature |
lurker-0.5.0 | features/docs_generation/html_generation.feature |