forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstarring.feature
More file actions
50 lines (38 loc) · 1.55 KB
/
starring.feature
File metadata and controls
50 lines (38 loc) · 1.55 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
Feature: Starring API
Background:
Given I have "Github::Client::Activity::Starring" instance
Scenario: List
Given I want to list resources with the following params:
| user | repo |
| peter-murach | github |
When I make request within a cassette named "activity/starring/list"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: Starred
Given I want to starred resources
And I pass the following request options:
| user |
| wycats |
When I make request within a cassette named "activity/starring/starred"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: Starring
Given I want to starring? resource with the following params:
| user | repo |
| peter-murach | github |
When I make request within a cassette named "activity/starring/starring"
Then the response should be true
Scenario: Star
Given I want to star resource with the following params:
| user | repo |
| peter-murach | github |
When I make request within a cassette named "activity/starring/star"
Then the response status should be 204
Scenario: Unstar
Given I want to unstar resource with the following params:
| user | repo |
| peter-murach | github |
When I make request within a cassette named "activity/starring/unstar"
Then the response status should be 204