forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfollowers.feature
More file actions
63 lines (49 loc) · 2.01 KB
/
followers.feature
File metadata and controls
63 lines (49 loc) · 2.01 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
Feature: User Followers API
Background:
Given I have "Github::Client::Users::Followers" instance
Scenario: List a user's followers
Given I want to list resources with the following params:
| username |
| peter-murach |
When I make request within a cassette named "users/followers/list"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: List who a user is following
Given I want to following resources with the following params:
| username |
| peter-murach |
When I make request within a cassette named "users/followers/following"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: Follow a user
Given I want to follow resource
And I pass the following request options:
| username |
| wycats |
When I make request within a cassette named "users/followers/follow"
Then the response status should be 204
And the response should be empty
Scenario: Check if you are following a user
Given I want to following? resource
And I pass the following request options:
| username |
| wycats |
When I make request within a cassette named "users/followers/following?"
Then the response should be true
Scenario: Check if one user follows another
Given I want to following? resource
And I pass the following request options:
| username | target_user |
| wycats | rsutphin |
When I make request within a cassette named "users/followers/following?another"
Then the response should be true
Scenario: Unfollow a user
Given I want to unfollow resource
And I pass the following request options:
| username |
| wycats |
When I make request within a cassette named "users/followers/unfollow"
Then the response status should be 204
And the response should be empty