forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgists.feature
More file actions
40 lines (33 loc) · 1.27 KB
/
gists.feature
File metadata and controls
40 lines (33 loc) · 1.27 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
Feature: Accessing Gists Main API
In order to interact with github gists
GithubAPI gem
Should return the expected results depending on passed parameters
Background:
Given I have "Github::Gists" instance
Scenario: Lists all user's gists
When I want to list resources with the following params:
| user |
| peter-murach |
And I make request within a cassette named "gists/gists/user_all"
Then the response should be "200"
And the response type should be "JSON"
Scenario: Lists all public gists
When I want to list resources with the following params:
| user |
| nil |
And I make request within a cassette named "gists/gists/public_all"
Then the response should be "200"
And the response type should be "JSON"
Scenario: Gets a single gist
When I want to get resource with the following params:
| gist_id |
| 1738161 |
And I make request within a cassette named "gists/gist"
Then the response should be "200"
And the response type should be "JSON"
Scenario: Check if gist is starred
When I want to starred? resource with the following params:
| gist_id |
| 1738161 |
And I make request within a cassette named "gists/starred"
Then the response should equal false