From fcfabfb3c6811103053de132e8826448adc07b65 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 25 Feb 2019 17:21:09 +0000 Subject: [PATCH] dev-cmd/pull_spec: require Homebrew/homebrew-core for subtest. --- Library/Homebrew/test/dev-cmd/pull_spec.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/test/dev-cmd/pull_spec.rb b/Library/Homebrew/test/dev-cmd/pull_spec.rb index d07bf57bb4..89c468486b 100644 --- a/Library/Homebrew/test/dev-cmd/pull_spec.rb +++ b/Library/Homebrew/test/dev-cmd/pull_spec.rb @@ -10,10 +10,13 @@ describe "brew pull", :integration_test do .and not_to_output.to_stdout .and be_a_failure - expect { brew "pull", "1" } - .to output(/Fetching patch/).to_stdout - .and output(/Current branch is new\-branch/).to_stderr - .and be_a_failure + # Needs Homebrew/homebrew-core + if OS.mac? + expect { brew "pull", "1" } + .to output(/Fetching patch/).to_stdout + .and output(/Current branch is new\-branch/).to_stderr + .and be_a_failure + end expect { brew "pull", "--bump", "https://api.github.com/repos/Homebrew/homebrew-core/pulls/122" } .to output(/Fetching patch/).to_stdout