diff options
| author | Shaun Jackman | 2017-09-25 11:37:07 -0700 |
|---|---|---|
| committer | Shaun Jackman | 2017-09-28 12:29:22 -0700 |
| commit | 3ebf282269b62722ceff61df0335b5ee305e9f3c (patch) | |
| tree | b50ccc096088c38e693f28d8aa72f7b434b758c4 /Library/Homebrew/test | |
| parent | 1e57445eca12e45896010aead6226f0f4c1df473 (diff) | |
| download | brew-3ebf282269b62722ceff61df0335b5ee305e9f3c.tar.bz2 | |
pour_bottle?: Fix when formula.bottle is nil
formula.bottle is nil when bottle.compatible_cellar? is false.
Use formula.bottle_specification.compatible_cellar? rather
than formula.bottle.compatible_cellar?.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/bottle_hooks_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/bottle_hooks_spec.rb b/Library/Homebrew/test/bottle_hooks_spec.rb index e70b558a1..eb6617380 100644 --- a/Library/Homebrew/test/bottle_hooks_spec.rb +++ b/Library/Homebrew/test/bottle_hooks_spec.rb @@ -8,7 +8,7 @@ describe Homebrew::Hooks::Bottles do let(:formula) do double( - bottle: nil, + bottled?: false, local_bottle_path: nil, bottle_disabled?: false, some_random_method: true, |
