forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmarkdown.feature
More file actions
25 lines (20 loc) · 882 Bytes
/
markdown.feature
File metadata and controls
25 lines (20 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Feature: Markdown API
Background:
Given I have "Github::Markdown" instance
Scenario: Render arbitrary document
Given I want to render resource
And I pass the following request options:
| text | mode | context |
| Hello world | gfm | murek/github_api_test |
When I make request within a cassette named "markdown/render"
Then the response status should be 200
And the response type should be HTML
And the response should not be empty
Scenario: Render raw document text/plain
Given I want to render_raw resource with the following params:
| text |
| Hello cool world |
When I make request within a cassette named "markdown/render_raw"
Then the response status should be 200
And the response type should be HTML
And the response should not be empty