forked from dark-panda/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwatching.feature
More file actions
74 lines (56 loc) · 2.38 KB
/
watching.feature
File metadata and controls
74 lines (56 loc) · 2.38 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
72
73
Feature: Watching API
Background:
Given I have "Github::Client::Activity::Watching" 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/watching/list"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: Watched
Given I want to watched resources
And I pass the following request options:
| user |
| wycats |
When I make request within a cassette named "activity/watching/watched"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: Watching?
Given I want to watching? resource with the following params:
| user | repo |
| peter-murach | github |
When I make request within a cassette named "activity/watching/watching"
Then the response should be false
Scenario: Watch
Given I want to watch resource with the following params:
| user | repo |
| peter-murach | github |
When I make request within a cassette named "activity/watching/watch"
Then the response status should be 204
Scenario: Unwatch
Given I want to unwatch resource with the following params:
| user | repo |
| peter-murach | github |
When I make request within a cassette named "activity/watching/unwatch"
Then the response status should be 204
Scenario: Subscribed?
Given I want to subscribed? resource with the following params:
| user | repo |
| murek | github_api_test |
When I make request within a cassette named "activity/watching/subscribed"
Then the response should be true
Scenario: Create
Given I want to create resource with the following params:
| user | repo |
| peter-murach | finite_machine |
When I make request within a cassette named "activity/watching/create"
Then the response status should be 200
Scenario: Delete
Given I want to delete resource with the following params:
| user | repo |
| peter-murach | finite_machine |
When I make request within a cassette named "activity/watching/delete"
Then the response status should be 204