Skip to content

Instantly share code, notes, and snippets.

@ismail1432
Created July 30, 2020 00:29
Show Gist options
  • Save ismail1432/14032d27008890c2c6d7a89342e2a256 to your computer and use it in GitHub Desktop.
Save ismail1432/14032d27008890c2c6d7a89342e2a256 to your computer and use it in GitHub Desktop.
Feature:
In order to fetch a User from Github
As a developer
I want to have a repository that fetch a User from a username
Scenario: Fetch a User from Github by a username
Given The response have the following body:
| id | 42 |
| login | ismail1432 |
When I fetch a user with username ismail1432
Then I should have an instance of User with id 42 and login ismail1432
@vincentlemire
Copy link

Hey, a little typo on line 7 :
Given The response has the following body
Thanks for the resource and the good job :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment