|
|
|
@ -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 |
|
|
|
|