2020-10-10 14:16:11 +02:00
|
|
|
# typed: false
|
2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-03-27 11:49:56 +00:00
|
|
|
require "cmd/shared_examples/args_parse"
|
|
|
|
|
|
|
|
describe "Homebrew.linkage_args" do
|
|
|
|
it_behaves_like "parseable arguments"
|
|
|
|
end
|
|
|
|
|
2018-05-23 13:00:05 -04:00
|
|
|
describe "brew linkage", :integration_test do
|
|
|
|
before do
|
|
|
|
setup_test_formula "testball"
|
|
|
|
(HOMEBREW_CELLAR/"testball/0.0.1/foo").mkpath
|
|
|
|
end
|
|
|
|
|
2018-06-29 19:57:39 +01:00
|
|
|
it "works when no arguments are provided" do
|
|
|
|
expect { brew "linkage" }
|
|
|
|
.to be_a_success
|
|
|
|
.and not_to_output.to_stdout
|
|
|
|
.and not_to_output.to_stderr
|
2018-05-23 13:00:05 -04:00
|
|
|
end
|
|
|
|
end
|