提交 d38f71b5 编写于 作者: M Mislav Marohnić

Fixes to `Accept` header expectations in tests

上级 0131592e
......@@ -11,7 +11,7 @@ Feature: hub checkout <PULLREQ-URL>
Given the GitHub API server:
"""
get('/repos/mojombo/jekyll/pulls/77') {
halt 406 unless request.env['HTTP_ACCEPT'] == 'application/vnd.github.v3+json;charset=utf-8'
halt 415 unless request.accept?('application/vnd.github.v3+json')
json :head => {
:ref => "fixes",
:repo => {
......@@ -200,7 +200,6 @@ Feature: hub checkout <PULLREQ-URL>
Given the GitHub API server:
"""
get('/repos/mojombo/jekyll/pulls/77') {
halt 406 unless request.env['HTTP_ACCEPT'] == 'application/vnd.github.v3+json;charset=utf-8'
json :head => {
:ref => "fixes",
:repo => {
......@@ -227,7 +226,6 @@ Feature: hub checkout <PULLREQ-URL>
Given the GitHub API server:
"""
get('/repos/mojombo/jekyll/pulls/77') {
halt 406 unless request.env['HTTP_ACCEPT'] == 'application/vnd.github.v3+json;charset=utf-8'
json :head => {
:ref => "fixes",
:repo => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册