Restrict HOMEBREW_JSON_CORE use in tests
This commit is contained in:
parent
b1215800d4
commit
a8c03c1cc6
@ -4,10 +4,6 @@
|
|||||||
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
|
||||||
{
|
{
|
||||||
@ -68,6 +64,7 @@ describe Homebrew::API::Bottle do
|
|||||||
|
|
||||||
describe "::fetch_bottles" do
|
describe "::fetch_bottles" do
|
||||||
before do
|
before do
|
||||||
|
ENV["HOMEBREW_JSON_CORE"] = "1"
|
||||||
allow(described_class).to receive(:fetch).and_return bottle_hash
|
allow(described_class).to receive(:fetch).and_return bottle_hash
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user