mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 07:16:03 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user