pull_spec: fix test

This commit is contained in:
Michka Popoff 2019-04-02 08:01:23 +02:00
parent 3c25ddc6ed
commit fb643a28f0

View File

@ -8,15 +8,13 @@ end
describe "brew pull", :integration_test do describe "brew pull", :integration_test do
it "fetches a patch from a GitHub commit or pull request and applies it", :needs_network do it "fetches a patch from a GitHub commit or pull request and applies it", :needs_network do
CoreTap.instance.path.cd do HOMEBREW_REPOSITORY.cd do
system "git", "init" system "git", "init"
system "git", "checkout", "-b", "new-branch" system "git", "remote", "add", "origin", "https://github.com/Homebrew/brew"
system "git", "remote", "add", "origin", "https://github.com/Homebrew/homebrew-core"
end end
expect { brew "pull", "https://github.com/Homebrew/brew/pull/1249" } expect { brew "pull", "https://github.com/Homebrew/brew/pull/1249" }
.to output(/Fetching patch/).to_stdout .to output(/Fetching patch/).to_stdout
.and output(/Patch failed to apply/).to_stderr
.and be_a_failure .and be_a_failure
end end
end end