2017-02-23 06:06:26 +01:00
|
|
|
describe "brew linkapps", :integration_test do
|
2017-02-28 14:50:46 +01:00
|
|
|
let(:home_dir) { mktmpdir }
|
2017-02-23 06:06:26 +01:00
|
|
|
let(:apps_dir) { home_dir/"Applications" }
|
|
|
|
|
|
|
|
it "symlinks applications" do
|
|
|
|
apps_dir.mkpath
|
|
|
|
|
|
|
|
setup_test_formula "testball"
|
|
|
|
|
|
|
|
source_app = HOMEBREW_CELLAR/"testball/0.1/TestBall.app"
|
|
|
|
source_app.mkpath
|
|
|
|
|
2018-01-20 12:04:09 +00:00
|
|
|
ENV.delete "HOMEBREW_DEVELOPER"
|
|
|
|
|
2017-02-23 06:06:26 +01:00
|
|
|
expect { brew "linkapps", "--local", "HOME" => home_dir }
|
|
|
|
.to output(/Linking: #{Regexp.escape(source_app)}/).to_stdout
|
2018-01-20 12:04:09 +00:00
|
|
|
.and output(/'brew linkapps' is deprecated/).to_stderr
|
2017-02-23 06:06:26 +01:00
|
|
|
.and be_a_success
|
|
|
|
|
|
|
|
expect(apps_dir/"TestBall.app").to be_a_symlink
|
|
|
|
end
|
|
|
|
end
|