forked from dark-panda/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprojects.feature
More file actions
36 lines (29 loc) · 1.17 KB
/
projects.feature
File metadata and controls
36 lines (29 loc) · 1.17 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
36
Feature: Projects API
Background:
Given I have "Github::Client::Projects" instance
Scenario: Get
Given I want to get resource with the following params:
| id |
| 524103 |
When I make request within a cassette named "projects/get"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: Edit
Given I want to edit resource with the following params:
| id |
| 524103 |
And I pass the following request options:
| name | body |
| Outcomes Tracker | The board to track work for the Outcomes application. |
When I make request within a cassette named "projects/edit"
Then the response status should be 200
And the response type should be JSON
And the response should not be empty
Scenario: Delete a Project
Given I want delete resource with the following params:
| id |
| 524103 |
When I make request within a cassette named "projects/delete"
Then the response status should be 204
And the response should be empty