From 8d542100a871dbd9b9f9841b3378165157206bb5 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Wed, 10 Sep 2025 21:44:16 -0600 Subject: [PATCH] Revert test --- Library/Homebrew/test/download_strategies/curl_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/test/download_strategies/curl_spec.rb b/Library/Homebrew/test/download_strategies/curl_spec.rb index 20d0e328bd..c3da1134c9 100644 --- a/Library/Homebrew/test/download_strategies/curl_spec.rb +++ b/Library/Homebrew/test/download_strategies/curl_spec.rb @@ -67,13 +67,16 @@ RSpec.describe CurlDownloadStrategy do context "with a generalized fake user agent" do alias_matcher :a_string_matching, :match - let(:specs) { { user_agent: "fake" } } + let(:specs) { { user_agent: :fake } } it "adds the appropriate curl args" do expect(strategy).to receive(:system_command) .with( /curl/, - hash_including(args: array_including_cons("--user-agent", "fake")), + hash_including(args: array_including_cons( + "--user-agent", + a_string_matching(/Mozilla.*Mac OS X 10_15_7.*AppleWebKit/), + )), ) .at_least(:once) .and_return(instance_double(SystemCommand::Result, success?: true, stdout: "", assert_success!: nil))