Add a starter file for spec

This commit is contained in:
Caleb Xu 2018-08-20 09:21:00 -04:00
parent 713aedb6ed
commit 875885dda6

View File

@ -0,0 +1,13 @@
describe "brew extract", :integration_test do
it "extracts the most recent formula version without version argument" do
path = Tap::TAP_DIRECTORY/"homebrew/homebrew-foo"
(path/"Formula").mkpath
target = Tap.from_path(path)
formula_file = setup_test_formula "foo"
expect { brew "extract", "foo", target.name }
.to be_a_success
expect(path/"Formula/foo@1.0.rb").to exist
end
end