Fix tests
This commit is contained in:
parent
f84265f9a2
commit
b1215800d4
@ -11,6 +11,7 @@ require "utils/inreplace"
|
||||
require "erb"
|
||||
require "archive"
|
||||
require "zlib"
|
||||
require "api"
|
||||
|
||||
BOTTLE_ERB = <<-EOS
|
||||
bottle do
|
||||
@ -333,8 +334,6 @@ module Homebrew
|
||||
|
||||
root_url = args.root_url
|
||||
|
||||
formulae_brew_sh_path = Utils::Analytics.formula_path
|
||||
|
||||
relocatable = T.let(false, T::Boolean)
|
||||
skip_relocation = T.let(false, T::Boolean)
|
||||
|
||||
@ -561,7 +560,7 @@ module Homebrew
|
||||
"filename" => filename.url_encode,
|
||||
"local_filename" => filename.to_s,
|
||||
"sha256" => sha256,
|
||||
"formulae_brew_sh_path" => formulae_brew_sh_path,
|
||||
"formulae_brew_sh_path" => Homebrew::API::Formula.formula_api_path,
|
||||
"tab" => tab.to_bottle_hash,
|
||||
},
|
||||
},
|
||||
|
||||
@ -4,6 +4,10 @@
|
||||
require "api"
|
||||
|
||||
describe Homebrew::API::Bottle do
|
||||
before do
|
||||
ENV["HOMEBREW_JSON_CORE"] = "1"
|
||||
end
|
||||
|
||||
let(:bottle_json) {
|
||||
<<~EOS
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user