mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
Nuke all SiteSetting.stubs
from our codebase.
This commit is contained in:
@ -42,7 +42,7 @@ describe Admin::ScreenedIpAddressesController do
|
||||
Fabricate(:screened_ip_address, ip_address: "42.42.42.5", match_count: 1)
|
||||
|
||||
StaffActionLogger.any_instance.expects(:log_roll_up)
|
||||
SiteSetting.stubs(:min_ban_entries_for_roll_up).returns(3)
|
||||
SiteSetting.min_ban_entries_for_roll_up = 3
|
||||
|
||||
xhr :post, :roll_up
|
||||
expect(response).to be_success
|
||||
@ -62,7 +62,7 @@ describe Admin::ScreenedIpAddressesController do
|
||||
Fabricate(:screened_ip_address, ip_address: "1.2.42.0/24", match_count: 1)
|
||||
|
||||
StaffActionLogger.any_instance.expects(:log_roll_up)
|
||||
SiteSetting.stubs(:min_ban_entries_for_roll_up).returns(5)
|
||||
SiteSetting.min_ban_entries_for_roll_up = 5
|
||||
|
||||
xhr :post, :roll_up
|
||||
expect(response).to be_success
|
||||
|
Reference in New Issue
Block a user