forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorgs.feature
More file actions
32 lines (25 loc) · 972 Bytes
/
orgs.feature
File metadata and controls
32 lines (25 loc) · 972 Bytes
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
Feature: Organizations API
Background:
Given I have "Github::Orgs" instance
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