forked from dark-panda/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmedia_type.feature
More file actions
76 lines (65 loc) · 2.38 KB
/
media_type.feature
File metadata and controls
76 lines (65 loc) · 2.38 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Feature: Media Type
Background:
Given I have "Github::Client::Issues" instance
Scenario: Default media
Given I want to get resource with the following params:
| user | repo | issue_id |
| peter-murach | github | 108 |
When I make request within a cassette named "media/get_default"
Then the response status should be 200
And the request header Accept should be
"""
application/vnd.github.v3+json,application/vnd.github.beta+json;q=0.5,application/json;q=0.1
"""
Scenario: Raw media
Given I want to get resource with the following params:
| user | repo | issue_id |
| peter-murach | github | 108 |
And I pass the following request options:
| media |
| raw |
When I make request within a cassette named "media/get_raw_json"
Then the response status should be 200
And the request header Accept should be
"""
application/vnd.github.v3.raw+json
"""
Scenario: Text media
Given I want to get resource with the following params:
| user | repo | issue_id |
| peter-murach | github | 108 |
And I pass the following request options:
| media |
| text |
When I make request within a cassette named "media/get_text_json"
Then the response status should be 200
And the request header Accept should be
"""
application/vnd.github.v3.text+json
"""
Scenario: Html media
Given I want to get resource with the following params:
| user | repo | issue_id |
| peter-murach | github | 108 |
And I pass the following request options:
| media |
| html |
When I make request within a cassette named "media/get_html_json"
Then the response status should be 200
And the request header Accept should be
"""
application/vnd.github.v3.html+json
"""
Scenario: Full media
Given I want to get resource with the following params:
| user | repo | issue_id |
| peter-murach | github | 108 |
And I pass the following request options:
| media |
| beta.full |
When I make request within a cassette named "media/get_full_json"
Then the response status should be 200
And the request header Accept should be
"""
application/vnd.github.beta.full+json
"""