aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd/unlink_spec.rb
blob: 5961651fee939ad29082eaab3f582552e06ef573 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
describe "brew unlink", :integration_test do
  it "unlinks a Formula" do
    setup_test_formula "testball"

    shutup do
      expect { brew "install", "testball" }.to be_a_success
    end

    expect { brew "unlink", "--dry-run", "testball" }
      .to output(/Would remove/).to_stdout
      .and not_to_output.to_stderr
      .and be_a_success
  end
end