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

Merge pull request #2130 from reitermarkus/spec-fetch

Convert `brew fetch` test to spec.
parents 73d75ef0 91601ae3
No related branches found
No related tags found
No related merge requests found
describe "brew fetch", :integration_test do
it "downloads the Formula's URL" do
setup_test_formula "testball"
expect(HOMEBREW_CACHE/"testball-0.1.tbz").not_to exist
shutup do
expect { brew "fetch", "testball" }.to be_a_success
end
expect(HOMEBREW_CACHE/"testball-0.1.tbz").to exist
end
end
require "testing_env"
class IntegrationCommandTestFetch < IntegrationCommandTestCase
def test_fetch
setup_test_formula "testball"
cmd("fetch", "testball")
assert((HOMEBREW_CACHE/"testball-0.1.tbz").exist?,
"The tarball should have been cached")
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