diff options
| author | Markus Reiter | 2017-02-25 03:26:51 +0100 |
|---|---|---|
| committer | GitHub | 2017-02-25 03:26:51 +0100 |
| commit | 2afe338f42afef433a2cea3638fc5668c2245e8c (patch) | |
| tree | b967fff6c453fa1f9fb704ad91f5c1c20a412432 /Library | |
| parent | 73d75ef07c28fed413ef2bbe0bfd339ba6a11b05 (diff) | |
| parent | 91601ae3d9454d300db43a4f483bfc1a14ff3cfb (diff) | |
| download | brew-2afe338f42afef433a2cea3638fc5668c2245e8c.tar.bz2 | |
Merge pull request #2130 from reitermarkus/spec-fetch
Convert `brew fetch` test to spec.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/cmd/fetch_spec.rb | 13 | ||||
| -rw-r--r-- | Library/Homebrew/test/fetch_test.rb | 11 |
2 files changed, 13 insertions, 11 deletions
diff --git a/Library/Homebrew/test/cmd/fetch_spec.rb b/Library/Homebrew/test/cmd/fetch_spec.rb new file mode 100644 index 000000000..111d9f85c --- /dev/null +++ b/Library/Homebrew/test/cmd/fetch_spec.rb @@ -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 diff --git a/Library/Homebrew/test/fetch_test.rb b/Library/Homebrew/test/fetch_test.rb deleted file mode 100644 index e08e545e3..000000000 --- a/Library/Homebrew/test/fetch_test.rb +++ /dev/null @@ -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 |
