Skip to content

Commit 37741dc

Browse files
committed
Add feature tests for users api changes.
1 parent 8a0df25 commit 37741dc

File tree

3 files changed

+146
-0
lines changed

3 files changed

+146
-0
lines changed

features/cassettes/users/get/oauth.yml

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

features/cassettes/users/get/user.yml

Lines changed: 62 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

features/users.feature

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Feature: Users API
2+
3+
Background:
4+
Given I have "Github::Users" instance
5+
6+
Scenario: Get authenticated user
7+
8+
Given I want to get resource
9+
When I make request within a cassette named "users/get/oauth"
10+
Then the response status should be 200
11+
And the response type should be JSON
12+
And the response should not be empty
13+
14+
Scenario: Get unauthenticated user
15+
16+
Given I want to get resource
17+
And I pass the following request options:
18+
| user |
19+
| peter-murach |
20+
When I make request within a cassette named "users/get/user"
21+
Then the response status should be 200
22+
And the response type should be JSON
23+
And the response should not be empty

0 commit comments

Comments
 (0)