Use expect
in remaining controller locations (#33748)
This commit is contained in:
parent
ea743d68f3
commit
93f3c724ae
9 changed files with 72 additions and 5 deletions
|
@ -33,5 +33,14 @@ RSpec.describe 'Auth Challenges' do
|
|||
.to be_nil
|
||||
end
|
||||
end
|
||||
|
||||
context 'with invalid params' do
|
||||
it 'gracefully handles invalid nested params' do
|
||||
post auth_challenge_path(form_challenge: 'invalid')
|
||||
|
||||
expect(response)
|
||||
.to have_http_status(400)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue