Skip to content

Commit 48e1dd7

Browse files
committed
Add feature tests for pages api.
1 parent b36e52b commit 48e1dd7

4 files changed

Lines changed: 220 additions & 0 deletions

File tree

features/cassettes/repos/pages/get.yml

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

features/cassettes/repos/pages/list_builds.yml

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

features/cassettes/repos/pages/list_latest_builds.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/repos/pages.feature

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Feature: Pages API
2+
3+
Background:
4+
Given I have "Github::Repos::Pages" instance
5+
6+
Scenario: List builds
7+
8+
Given I want to list resources with the following params:
9+
| owner | repo |
10+
| murek | github_api_test |
11+
When I make request within a cassette named "repos/pages/list_builds"
12+
Then the response status should be 200
13+
And the response type should be JSON
14+
And the response should be empty
15+
16+
Scenario: Get
17+
18+
Given I want to get resource with the following params:
19+
| owner | repo |
20+
| murek | github_api_test |
21+
When I make request within a cassette named "repos/pages/get"
22+
Then the response status should be 200
23+
And the response type should be JSON
24+
And the response should not be empty

0 commit comments

Comments
 (0)