Convert brew unlink test to spec.
This commit is contained in:
parent
c7121f6be5
commit
6db95a8f79
14
Library/Homebrew/test/cmd/unlink_spec.rb
Normal file
14
Library/Homebrew/test/cmd/unlink_spec.rb
Normal file
@ -0,0 +1,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
|
||||||
@ -1,10 +0,0 @@
|
|||||||
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
|
|
||||||
Loading…
x
Reference in New Issue
Block a user