test(nonprofit): change expectation to bad request, from malformed token

This commit is contained in:
Luis Castro 2019-08-12 13:50:10 +02:00
parent ffe98d1d6a
commit 6ab13ce5bf
No known key found for this signature in database
GPG key ID: 0A8F33D4C4E27639

View file

@ -54,7 +54,7 @@ describe Houdini::V1::Nonprofit, type: :request do
it 'rejects csrf' do it 'rejects csrf' do
post '/api/v1/nonprofit', params: {}, xhr: true post '/api/v1/nonprofit', params: {}, xhr: true
expect(response.code).to eq '401' expect(response.code).to eq '400'
end end
end end