Convert brew fetch test to spec.
This commit is contained in:
parent
c7121f6be5
commit
91601ae3d9
13
Library/Homebrew/test/cmd/fetch_spec.rb
Normal file
13
Library/Homebrew/test/cmd/fetch_spec.rb
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
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
|
||||||
@ -1,11 +0,0 @@
|
|||||||
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
|
|
||||||
Loading…
x
Reference in New Issue
Block a user