emoji tests: make sure to unset install badge env vars

Otherwise the user's specified emoji will be used and the test will
fail.
This commit is contained in:
Misty De Meo 2017-02-26 13:51:47 +11:00
parent cf85f75773
commit 2dc5bbf535

View File

@ -4,6 +4,11 @@ describe Emoji do
describe "#install_badge" do
subject { described_class.install_badge }
before(:each) do
ENV.delete("HOMEBREW_NO_EMOJI")
ENV.delete("HOMEBREW_INSTALL_BADGE")
end
it "returns 🍺 by default" do
expect(subject).to eq "🍺"
end