Fix tests
This commit is contained in:
parent
f84265f9a2
commit
b1215800d4
@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user