Unset HOMEBREW_NO_EMOJI for all tests.
This commit is contained in:
parent
cb7f25ceb8
commit
04cb105e46
@ -40,6 +40,7 @@ module Homebrew
|
|||||||
ENV.delete("HOMEBREW_TEMP")
|
ENV.delete("HOMEBREW_TEMP")
|
||||||
ENV.delete("HOMEBREW_LINKAGE_CACHE")
|
ENV.delete("HOMEBREW_LINKAGE_CACHE")
|
||||||
ENV.delete("HOMEBREW_NO_GITHUB_API")
|
ENV.delete("HOMEBREW_NO_GITHUB_API")
|
||||||
|
ENV.delete("HOMEBREW_NO_EMOJI")
|
||||||
ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1"
|
ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1"
|
||||||
ENV["HOMEBREW_DEVELOPER"] = "1"
|
ENV["HOMEBREW_DEVELOPER"] = "1"
|
||||||
ENV["HOMEBREW_NO_COMPAT"] = "1" if args.no_compat?
|
ENV["HOMEBREW_NO_COMPAT"] = "1" if args.no_compat?
|
||||||
|
|||||||
@ -5,7 +5,6 @@ describe Emoji do
|
|||||||
subject { described_class.install_badge }
|
subject { described_class.install_badge }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
ENV.delete("HOMEBREW_NO_EMOJI")
|
|
||||||
ENV.delete("HOMEBREW_INSTALL_BADGE")
|
ENV.delete("HOMEBREW_INSTALL_BADGE")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -32,8 +32,6 @@ describe "globally-scoped helper methods" do
|
|||||||
before { allow($stdout).to receive(:tty?).and_return(true) }
|
before { allow($stdout).to receive(:tty?).and_return(true) }
|
||||||
|
|
||||||
context "with HOMEBREW_NO_EMOJI unset" do
|
context "with HOMEBREW_NO_EMOJI unset" do
|
||||||
before { ENV.delete("HOMEBREW_NO_EMOJI") }
|
|
||||||
|
|
||||||
it "returns a string with a colored checkmark" do
|
it "returns a string with a colored checkmark" do
|
||||||
expect(subject)
|
expect(subject)
|
||||||
.to match(/#{esc 1}foo #{esc 32}✔#{esc 0}/)
|
.to match(/#{esc 1}foo #{esc 32}✔#{esc 0}/)
|
||||||
@ -66,8 +64,6 @@ describe "globally-scoped helper methods" do
|
|||||||
before { allow($stdout).to receive(:tty?).and_return(true) }
|
before { allow($stdout).to receive(:tty?).and_return(true) }
|
||||||
|
|
||||||
context "with HOMEBREW_NO_EMOJI unset" do
|
context "with HOMEBREW_NO_EMOJI unset" do
|
||||||
before { ENV.delete("HOMEBREW_NO_EMOJI") }
|
|
||||||
|
|
||||||
it "returns a string with a colored checkmark" do
|
it "returns a string with a colored checkmark" do
|
||||||
expect(subject)
|
expect(subject)
|
||||||
.to match(/#{esc 1}foo #{esc 31}✘#{esc 0}/)
|
.to match(/#{esc 1}foo #{esc 31}✘#{esc 0}/)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user