dev-cmd/pull_spec: require Homebrew/homebrew-core for subtest.

This commit is contained in:
Mike McQuaid 2019-02-25 17:21:09 +00:00
parent 9b682da37b
commit fcfabfb3c6
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -10,10 +10,13 @@ describe "brew pull", :integration_test do
.and not_to_output.to_stdout .and not_to_output.to_stdout
.and be_a_failure .and be_a_failure
expect { brew "pull", "1" } # Needs Homebrew/homebrew-core
.to output(/Fetching patch/).to_stdout if OS.mac?
.and output(/Current branch is new\-branch/).to_stderr expect { brew "pull", "1" }
.and be_a_failure .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" } expect { brew "pull", "--bump", "https://api.github.com/repos/Homebrew/homebrew-core/pulls/122" }
.to output(/Fetching patch/).to_stdout .to output(/Fetching patch/).to_stdout