forked from joshsoftware/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorgs.feature
More file actions
42 lines (33 loc) · 1.27 KB
/
orgs.feature
File metadata and controls
42 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
39
40
41
42
Feature: Organizations API
Background:
Given I have "Github::Client::Orgs" instance
Scenario: List all organizations
Given I want to list resources with the following params:
| every |
| every |
When I make request within a cassette named "orgs/list/all"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: List for the user
Given I want to list resources
And I pass the following request options:
| user |
| wycats |
When I make request within a cassette named "orgs/list/user"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: List for the authenticated user
Given I want to list resources
When I make request within a cassette named "orgs/list/oauth_user"
Then the response status should be 200
And the response type should be JSON
Scenario: Get
Given I want to get resource with the following params:
| org_name |
| github |
When I make request within a cassette named "orgs/get"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty