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
25 lines (22 loc) · 943 Bytes
/
comments.feature
File metadata and controls
25 lines (22 loc) · 943 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: Accessing Gists Comments API
In order to interact with github gist comments
GithubAPI gem
Should return the expected results depending on passed parameters
Background:
Given I have "Github::Client::Gists::Comments" instance
Scenario: Lists comments on a gist
When I want to list resources with the following params:
| gist_id |
| 701407 |
And I make request within a cassette named "gists/comments/all"
Then the response status should be 200
And the response type should be JSON
And the response should have 30 items
Scenario: Gets a single gist's comment
When I want to get resource with the following params:
| gist_id | comment_id |
| 701407 | 66128 |
And I make request within a cassette named "gists/comments/first"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty