Fix resource spec after allowing GET requests earlier

pull/6346/head
Oliver Günther 6 years ago
parent 3667905137
commit 379d061a6b
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 6
      spec/requests/api/v3/root_resource_spec.rb

@ -74,9 +74,9 @@ describe 'API v3 Root resource' do
end
context 'without the X-requested-with header', skip_xhr_header: true do
it 'returns unauthorized regardless of the session validity' do
expect(response.status).to eq(401)
expect(response.body).to eq('unauthorized')
it 'returns OK because GET requests are allowed' do
expect(response.status).to eq(200)
expect(subject).to have_json_path('instanceName')
end
end
end

Loading…
Cancel
Save