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