forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomments.feature
More file actions
72 lines (58 loc) · 2.61 KB
/
comments.feature
File metadata and controls
72 lines (58 loc) · 2.61 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Feature: Issues Comments API
Background:
Given I have "Github::Client::Issues::Comments" instance
Scenario: List in a repository
Given I want to list resources with the following params:
| owner | repo |
| peter-murach | github |
When I make request within a cassette named "issues/comments/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 on an issue
Given I want to list resources with the following params:
| owner | repo |
| peter-murach | github |
And I pass the following request options:
| number |
| 61 |
When I make request within a cassette named "issues/comments/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 a single comment
Given I want to get resource with the following params:
| owner | repo | id |
| peter-murach | github | 10321836 |
When I make request within a cassette named "issues/comments/get"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: Create
Given I want to create resource with the following params:
| owner | repo | number |
| murek | github_api_test | 1 |
And I pass the following request options:
| body |
| No worries this should be fixed now. |
When I make request within a cassette named "issues/comments/create" and match on method
Then the response status should be 201
And the response type should be JSON
And the response should not be empty
Scenario: Edit
Given I want to edit resource with the following params:
| owner | repo | id |
| murek | github_api_test | 40952592 |
And I pass the following request options:
| body |
| No worries this should be fixed now. |
When I make request within a cassette named "issues/comments/edit" and match on method
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: Delete
Given I want to delete resource with the following params:
| owner | repo | id |
| murek | github_api_test | 40952592 |
When I make request within a cassette named "issues/comments/delete" and match on method
Then the response status should be 204