From 0b8e6e7d1ddaf5f89d94c1250b6cab7529b03c79 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 12 Jun 2024 07:51:45 +0800 Subject: [PATCH] DEV: Fix broken `discourse_ip_info_spec` (#27439) This is a follow-up to 781a5f60eae93eade4ee62bf63e537c94090a51e --- spec/lib/discourse_ip_info_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/lib/discourse_ip_info_spec.rb b/spec/lib/discourse_ip_info_spec.rb index 613a4dd07e9..dd65bb4b920 100644 --- a/spec/lib/discourse_ip_info_spec.rb +++ b/spec/lib/discourse_ip_info_spec.rb @@ -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"