21 lines
588 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
describe "Homebrew.pull_args" do
it_behaves_like "parseable arguments"
end
2017-02-23 06:01:13 +01:00
describe "brew pull", :integration_test do
2018-09-14 16:56:23 +02:00
it "fetches a patch from a GitHub commit or pull request and applies it", :needs_network do
2019-04-02 08:01:23 +02:00
HOMEBREW_REPOSITORY.cd do
2017-07-29 19:55:05 +02:00
system "git", "init"
2019-04-02 08:01:23 +02:00
system "git", "remote", "add", "origin", "https://github.com/Homebrew/brew"
2017-02-23 06:01:13 +01:00
end
expect { brew "pull", "https://github.com/Homebrew/brew/pull/1249" }
2017-02-23 06:01:13 +01:00
.to output(/Fetching patch/).to_stdout
.and be_a_failure
end
end