fix test
This commit is contained in:
parent
5e9fcafbd8
commit
9e35b4de21
@ -997,14 +997,15 @@ describe Formula do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "returns false when set with a symbol" do
|
it "returns false when set with a symbol" do
|
||||||
|
# Ensure that prefix does not match the default
|
||||||
|
stub_const "Homebrew::DEFAULT_PREFIX", "foo"
|
||||||
|
|
||||||
f = formula "foo" do
|
f = formula "foo" do
|
||||||
url "foo-1.0"
|
url "foo-1.0"
|
||||||
|
|
||||||
pour_bottle? :default_prefix_required
|
pour_bottle? :default_prefix_required
|
||||||
end
|
end
|
||||||
|
|
||||||
# Homebrew::DEFAULT_PREFIX is still /usr/local or /opt/homebrew
|
|
||||||
# and HOMEBREW_PREFIX is a temporary test directory
|
|
||||||
expect(f).not_to pour_bottle
|
expect(f).not_to pour_bottle
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user