forked from piotrmurach/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharguments_parsing.feature
More file actions
35 lines (28 loc) · 1.57 KB
/
arguments_parsing.feature
File metadata and controls
35 lines (28 loc) · 1.57 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
Feature: Github API arguments parsing
The gem permits flexible arguments parsing, which means, the arguments can
be passed in as values or named hash key parameters. Properties are dynamically
assigned when executing requests.
Scenario: Invoking multiple calls for organization information
Given I have "Github::Client::Orgs" instance
When I want to get resource with the following arguments:
| org |
| thoughtbot |
And I make request within a cassette named "arguments/orgs/get"
And I make request within a cassette named "arguments/orgs/get"
Then the response status should be 200
Scenario: Invoking multiple calls for repository commits
Given I have "Github::Client::Repos::Commits" instance
When I want to get resource with the following arguments:
| user | repo | sha |
| rubinius | rubinius | 7ac2bd74e8b6f16362fb3b7e6f3d139c48bb1c12 |
And I make request within a cassette named "arguments/repo_commits/get"
And I make request within a cassette named "arguments/repo_commits/get"
Then the response status should be 200
Scenario: Invoking multiple calls for fetching pull request
Given I have "Github::Client::PullRequests" instance
When I want to get resource with the following arguments:
| user | repo | number |
| rubinius | rubinius | 2193 |
And I make request within a cassette named "arguments/pulls/get"
And I make request within a cassette named "arguments/pulls/get"
Then the response status should be 200