Fix tests

This commit is contained in:
Rylan Polster 2021-08-06 11:42:55 -04:00
parent f84265f9a2
commit b1215800d4
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64
2 changed files with 6 additions and 3 deletions

View File

@ -11,6 +11,7 @@ require "utils/inreplace"
require "erb" require "erb"
require "archive" require "archive"
require "zlib" require "zlib"
require "api"
BOTTLE_ERB = <<-EOS BOTTLE_ERB = <<-EOS
bottle do bottle do
@ -333,8 +334,6 @@ module Homebrew
root_url = args.root_url root_url = args.root_url
formulae_brew_sh_path = Utils::Analytics.formula_path
relocatable = T.let(false, T::Boolean) relocatable = T.let(false, T::Boolean)
skip_relocation = T.let(false, T::Boolean) skip_relocation = T.let(false, T::Boolean)
@ -561,7 +560,7 @@ module Homebrew
"filename" => filename.url_encode, "filename" => filename.url_encode,
"local_filename" => filename.to_s, "local_filename" => filename.to_s,
"sha256" => sha256, "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, "tab" => tab.to_bottle_hash,
}, },
}, },

View File

@ -4,6 +4,10 @@
require "api" require "api"
describe Homebrew::API::Bottle do describe Homebrew::API::Bottle do
before do
ENV["HOMEBREW_JSON_CORE"] = "1"
end
let(:bottle_json) { let(:bottle_json) {
<<~EOS <<~EOS
{ {