forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitignore.feature
More file actions
37 lines (30 loc) · 1.21 KB
/
gitignore.feature
File metadata and controls
37 lines (30 loc) · 1.21 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
Feature: Markdown API
Background:
Given I have "Github::Client::Gitignore" instance
Scenario: List available templates
Given I want to list resources
When I make request within a cassette named "gitignore/list"
Then the response status should be 200
And the response type should be JSON
And the response should have 102 items
And the response should contain Ruby
And the response should contain Rails
Scenario: Get a single template
Given I want to get resource with the following params:
| template_name |
| Ruby |
When I make request within a cassette named "gitignore/get"
Then the response status should be 200
And the response type should be JSON
And the response should have 2 items
Scenario: Get a raw contents
Given I want to get resource with the following params:
| template_name |
| Ruby |
And I pass the following request options:
| accept |
| application/vnd.github.raw |
When I make request within a cassette named "gitignore/get_raw"
Then the response status should be 200
And the response type should be RAW
And the response should contain InstalledFiles