Fix failing tests caused by r24087 (#29664).

git-svn-id: https://svn.redmine.org/redmine/trunk@24088 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2025-10-30 10:04:15 +00:00
parent a33d02d12b
commit f245ddc280
3 changed files with 23 additions and 11 deletions

View File

@@ -401,9 +401,11 @@ class MyControllerTest < Redmine::ControllerTest
def test_my_account_should_toggle_webhook_link_with_setting
User.find(2).roles.first.add_permission!(:use_webhooks)
get :account
assert_response :success
assert_select 'a.icon-webhook', 1
with_settings webhooks_enabled: '1' do
get :account
assert_response :success
assert_select 'a.icon-webhook', 1
end
with_settings webhooks_enabled: '0' do
get :account