Skip to content
Snippets Groups Projects
Commit e393fd5a authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #2125 from reitermarkus/spec-unlink

Convert `brew unlink` test to spec.
parents 1f9faa09 6db95a8f
No related branches found
No related tags found
No related merge requests found
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
require "testing_env"
class IntegrationCommandTestUnlink < IntegrationCommandTestCase
def test_unlink
setup_test_formula "testball"
cmd("install", "testball")
assert_match "Would remove", cmd("unlink", "--dry-run", "testball")
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment