aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testing_env.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/testing_env.rb')
-rw-r--r--Library/Homebrew/test/testing_env.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index 5f98ace15..b6612535a 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -119,7 +119,8 @@ module Homebrew
def stub_formula_loader(formula, ref = formula.full_name)
loader = mock
loader.stubs(:get_formula).returns(formula)
- Formulary.stubs(:loader_for).with(ref).returns(loader)
+ Formulary.stubs(:loader_for).with(ref, from: :keg).returns(loader)
+ Formulary.stubs(:loader_for).with(ref, from: nil).returns(loader)
end
end
end