forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpull_requests.feature
More file actions
27 lines (22 loc) · 881 Bytes
/
pull_requests.feature
File metadata and controls
27 lines (22 loc) · 881 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
26
27
Feature: Pull Requests API
Background:
Given I have "Github::PullRequests" instance
Scenario: List
Given I want to list resources with the following params:
| user | repo |
| peter-murach | github |
And I pass the following request options:
| state |
| closed |
When I make request within a cassette named "pull_requests/list"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: Get
Given I want to get resource with the following params:
| user | repo | number |
| peter-murach | github | 36 |
When I make request within a cassette named "pull_requests/get"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty