From e4fefc94ebf7e3f3e289fbee9d2efabb7115dcd7 Mon Sep 17 00:00:00 2001 From: Daiki Mizukami Date: Wed, 12 Jun 2024 19:30:04 +0900 Subject: [PATCH] Utils::Copy: Fix tests for generic OS --- Library/Homebrew/test/utils/copy_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/test/utils/copy_spec.rb b/Library/Homebrew/test/utils/copy_spec.rb index f95758efc0..9d9ee33c1f 100644 --- a/Library/Homebrew/test/utils/copy_spec.rb +++ b/Library/Homebrew/test/utils/copy_spec.rb @@ -75,7 +75,7 @@ RSpec.describe Utils::Copy do end context "when running on Linux or macOS Ventura or earlier" do - include_context "with macOS version", "13" + include_context "with macOS version", "13" if OS.mac? include_examples "copies files", method_name @@ -139,7 +139,7 @@ RSpec.describe Utils::Copy do end context "when running on Linux or macOS Ventura or earlier" do - include_context "with macOS version", "13" + include_context "with macOS version", "13" if OS.mac? include_examples "copies directory" end end