Use raw status code on have_http_status (#7214)
This commit is contained in:
parent
bfe26ef67b
commit
d10447c3a8
87 changed files with 176 additions and 176 deletions
|
@ -7,7 +7,7 @@ describe 'The webfinger route' do
|
|||
it 'returns a json response' do
|
||||
get webfinger_url(resource: alice.to_webfinger_s)
|
||||
|
||||
expect(response).to have_http_status(:success)
|
||||
expect(response).to have_http_status(200)
|
||||
expect(response.content_type).to eq 'application/jrd+json'
|
||||
end
|
||||
end
|
||||
|
@ -16,7 +16,7 @@ describe 'The webfinger route' do
|
|||
it 'returns an xml response for xml format' do
|
||||
get webfinger_url(resource: alice.to_webfinger_s, format: :xml)
|
||||
|
||||
expect(response).to have_http_status(:success)
|
||||
expect(response).to have_http_status(200)
|
||||
expect(response.content_type).to eq 'application/xrd+xml'
|
||||
end
|
||||
|
||||
|
@ -24,7 +24,7 @@ describe 'The webfinger route' do
|
|||
headers = { 'HTTP_ACCEPT' => 'application/xrd+xml' }
|
||||
get webfinger_url(resource: alice.to_webfinger_s), headers: headers
|
||||
|
||||
expect(response).to have_http_status(:success)
|
||||
expect(response).to have_http_status(200)
|
||||
expect(response.content_type).to eq 'application/xrd+xml'
|
||||
end
|
||||
end
|
||||
|
@ -33,7 +33,7 @@ describe 'The webfinger route' do
|
|||
it 'returns a json response for json format' do
|
||||
get webfinger_url(resource: alice.to_webfinger_s, format: :json)
|
||||
|
||||
expect(response).to have_http_status(:success)
|
||||
expect(response).to have_http_status(200)
|
||||
expect(response.content_type).to eq 'application/jrd+json'
|
||||
end
|
||||
|
||||
|
@ -41,7 +41,7 @@ describe 'The webfinger route' do
|
|||
headers = { 'HTTP_ACCEPT' => 'application/jrd+json' }
|
||||
get webfinger_url(resource: alice.to_webfinger_s), headers: headers
|
||||
|
||||
expect(response).to have_http_status(:success)
|
||||
expect(response).to have_http_status(200)
|
||||
expect(response.content_type).to eq 'application/jrd+json'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue