mirror of
https://github.com/gosticks/brew.git
synced 2026-08-16 22:50:18 +00:00
Restrict HOMEBREW_JSON_CORE use in tests
This commit is contained in:
@@ -4,10 +4,6 @@
|
||||
require "api"
|
||||
|
||||
describe Homebrew::API::Bottle do
|
||||
before do
|
||||
ENV["HOMEBREW_JSON_CORE"] = "1"
|
||||
end
|
||||
|
||||
let(:bottle_json) {
|
||||
<<~EOS
|
||||
{
|
||||
@@ -68,6 +64,7 @@ describe Homebrew::API::Bottle do
|
||||
|
||||
describe "::fetch_bottles" do
|
||||
before do
|
||||
ENV["HOMEBREW_JSON_CORE"] = "1"
|
||||
allow(described_class).to receive(:fetch).and_return bottle_hash
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user