forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevents.feature
More file actions
38 lines (30 loc) · 1.25 KB
/
events.feature
File metadata and controls
38 lines (30 loc) · 1.25 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: Events API
Background:
Given I have "Github::Client::Issues::Events" instance
Scenario: List for a repository
Given I want to list resources with the following params:
| user | repo |
| peter-murach | github |
When I make request within a cassette named "issues/events/list_repo"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: List for an issue
Given I want to list resources with the following params:
| user | repo |
| peter-murach | github |
And I pass the following request options:
| issue_number |
| 61 |
When I make request within a cassette named "issues/events/list_issue"
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 | id |
| peter-murach | github | 29376722 |
When I make request within a cassette named "issues/events/get"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty