From 7f6f015636d5b068ce5d9d757201b622dd964ac4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 28 Nov 2023 18:35:11 +0000 Subject: [PATCH] Update expected response for doorkeeper errors --- test/controllers/oauth2_authorizations_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/controllers/oauth2_authorizations_controller_test.rb b/test/controllers/oauth2_authorizations_controller_test.rb index 19bc79808..43fbe4df4 100644 --- a/test/controllers/oauth2_authorizations_controller_test.rb +++ b/test/controllers/oauth2_authorizations_controller_test.rb @@ -77,7 +77,7 @@ class Oauth2AuthorizationsControllerTest < ActionDispatch::IntegrationTest :redirect_uri => "https://bad.example.com/", :response_type => "code", :scope => "write_api") - assert_response :success + assert_response :bad_request assert_template "oauth2_authorizations/error" assert_select "p", "The requested redirect uri is malformed or doesn't match client redirect URI." end @@ -91,7 +91,7 @@ class Oauth2AuthorizationsControllerTest < ActionDispatch::IntegrationTest :redirect_uri => application.redirect_uri, :response_type => "code", :scope => "bad_scope") - assert_response :success + assert_response :bad_request assert_template "oauth2_authorizations/error" assert_select "p", "The requested scope is invalid, unknown, or malformed." @@ -99,7 +99,7 @@ class Oauth2AuthorizationsControllerTest < ActionDispatch::IntegrationTest :redirect_uri => application.redirect_uri, :response_type => "code", :scope => "write_prefs") - assert_response :success + assert_response :bad_request assert_template "oauth2_authorizations/error" assert_select "p", "The requested scope is invalid, unknown, or malformed." end -- 2.39.5