DEV: Fix broken `discourse_ip_info_spec` (#27439)

This is a follow-up to 781a5f60ea
This commit is contained in:
Alan Guo Xiang Tan 2024-06-12 07:51:45 +08:00 committed by GitHub
parent cbc0076d74
commit 0b8e6e7d1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@
RSpec.describe DiscourseIpInfo do
describe ".mmdb_download" do
before { Discourse::Utils.stubs(:execute_command) }
it "should download the MaxMind databases from MaxMind's download permalinks when `maxmind_license_key` and `maxmind_account_id` global setting has been set" do
global_setting :maxmind_license_key, "license_key"
global_setting :maxmind_account_id, "account_id"