From 379d061a6b8a03fc086812d731e20ce5ffa929a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Thu, 14 Jun 2018 07:47:08 +0200 Subject: [PATCH] Fix resource spec after allowing GET requests earlier --- spec/requests/api/v3/root_resource_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/requests/api/v3/root_resource_spec.rb b/spec/requests/api/v3/root_resource_spec.rb index 49efc445e7..749533ae57 100644 --- a/spec/requests/api/v3/root_resource_spec.rb +++ b/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