Skip to content

Commit

Permalink
Fix authorizations_controller_spec.rb for Doorkeeper v5.6.7
Browse files Browse the repository at this point in the history
doorkeeper-gem/doorkeeper#1676 updated
the `render_error` to return a 400 Bad Request upon an error
instead of a 200. Adjust the spec accordingly.
  • Loading branch information
stanhu committed Nov 22, 2024
1 parent 7804a63 commit d4ebc77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/controllers/doorkeeper/authorizations_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ def expect_successful_callback!
it 'render error when client_id is missing' do
authorize!(client_id: nil)

expect(response).to be_successful
expect(response).to have_http_status(:bad_request)
expect(response).to render_template('doorkeeper/authorizations/error')
end

it 'render error when response_type is missing' do
authorize!(response_type: nil)

expect(response).to be_successful
expect(response).to have_http_status(:bad_request)
expect(response).to render_template('doorkeeper/authorizations/error')
end
end
Expand Down

0 comments on commit d4ebc77

Please sign in to comment.