From a8c03c1cc6571e2551da489ee097eb5c3ca50488 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Fri, 6 Aug 2021 11:52:21 -0400 Subject: [PATCH] Restrict `HOMEBREW_JSON_CORE` use in tests --- Library/Homebrew/test/api/bottle_spec.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Library/Homebrew/test/api/bottle_spec.rb b/Library/Homebrew/test/api/bottle_spec.rb index e6bc6e1fa..17f9b1a06 100644 --- a/Library/Homebrew/test/api/bottle_spec.rb +++ b/Library/Homebrew/test/api/bottle_spec.rb @@ -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