forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathusers.feature
More file actions
31 lines (24 loc) · 960 Bytes
/
users.feature
File metadata and controls
31 lines (24 loc) · 960 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
Feature: Users API
Background:
Given I have "Github::Client::Users" instance
Scenario: List all users
Given I want to list resources
When I make request within a cassette named "users/all"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: Get authenticated user
Given I want to get resource
When I make request within a cassette named "users/get/oauth"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: Get unauthenticated user
Given I want to get resource
And I pass the following request options:
| user |
| peter-murach |
When I make request within a cassette named "users/get/user"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty