mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

Integration tests are useful in detecting breakages but much slower so let's only use one per command and install formula outside the integration test framework (which is also slow).
14 lines
461 B
Ruby
14 lines
461 B
Ruby
describe "brew pull", :integration_test do
|
|
it "fetches a patch from a GitHub commit or pull request and applies it", :needs_network do
|
|
CoreTap.instance.path.cd do
|
|
system "git", "init"
|
|
system "git", "checkout", "-b", "new-branch"
|
|
end
|
|
|
|
expect { brew "pull", "https://github.com/Homebrew/brew/pull/1249" }
|
|
.to output(/Fetching patch/).to_stdout
|
|
.and output(/Patch failed to apply/).to_stderr
|
|
.and be_a_failure
|
|
end
|
|
end
|