-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract: Leave a hint in place of the removed bottles block
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,5 +63,15 @@ | |
expect(path).to exist | ||
expect(Formulary.factory(path).version).to eq "0.2" | ||
end | ||
|
||
it "notes the url where bottles might be found", :integration_test do | ||
path = target[:path]/"Formula/[email protected]" | ||
expect { brew "extract", "testball", target[:name] } | ||
.to output(/^#{path}$/).to_stdout | ||
.and not_to_output.to_stderr | ||
.and be_a_success | ||
expect(path).to exist | ||
expect(File.read(path)).to match(%r{docker://ghcr.io/homebrew/core/testball:0.2}) | ||
end | ||
end | ||
end |