blob: 397a8ec5e23fbaedeb0b50f897802391b6a81f94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
describe "brew unlinkapps", :integration_test do
let(:home_dir) { mktmpdir }
let(:apps_dir) { home_dir/"Applications" }
it "unlinks symlinked applications" do
apps_dir.mkpath
setup_test_formula "testball"
source_app = HOMEBREW_CELLAR/"testball/0.1/TestBall.app"
source_app.mkpath
FileUtils.ln_s source_app, apps_dir/"TestBall.app"
ENV.delete "HOMEBREW_DEVELOPER"
expect { brew "unlinkapps", "--local", "HOME" => home_dir }
.to output(%r{Unlinking: #{Regexp.escape(apps_dir)}/TestBall.app}).to_stdout
.and output(/'brew unlinkapps' is deprecated/).to_stderr
.and be_a_success
end
end
|