spec/authorizy/extension/authorizy_spec.rb in authorizy-0.2.0 vs spec/authorizy/extension/authorizy_spec.rb in authorizy-0.2.1

- old
+ new

@@ -49,10 +49,10 @@ context 'when is a xhr request' do it 'receives the default values and denied the access' do get :action, xhr: true, params: { key: 'value' } expect(response.body).to eq('{"message":"Action denied for dummy#action"}') - expect(response.status).to be(422) + expect(response.status).to be(401) end end context 'when is a html request' do it 'receives the default values and do not denied the access' do