diff options
| author | Markus Reiter | 2017-02-23 06:05:33 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-02-23 21:10:04 +0100 |
| commit | 91601ae3d9454d300db43a4f483bfc1a14ff3cfb (patch) | |
| tree | 7eee1985347af78788eee1137e33ffbf28604149 /Library/Homebrew/test/cmd | |
| parent | c7121f6be50e44784e3e29114617c29715bd9c0f (diff) | |
| download | brew-91601ae3d9454d300db43a4f483bfc1a14ff3cfb.tar.bz2 | |
Convert `brew fetch` test to spec.
Diffstat (limited to 'Library/Homebrew/test/cmd')
| -rw-r--r-- | Library/Homebrew/test/cmd/fetch_spec.rb | 13 |
1 files changed, 13 insertions, 0 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 |
