Get brew style to pass
This commit is contained in:
parent
c745738c55
commit
c7831a457d
@ -183,8 +183,8 @@ describe Homebrew::CLI::Parser do
|
|||||||
allow(ENV).to receive(:[]).with("HOMEBREW_SWITCH_B").and_return("0")
|
allow(ENV).to receive(:[]).with("HOMEBREW_SWITCH_B").and_return("0")
|
||||||
allow(ENV).to receive(:[])
|
allow(ENV).to receive(:[])
|
||||||
parser.parse(["--switch-b"])
|
parser.parse(["--switch-b"])
|
||||||
expect(Homebrew.args.switch_a?).to be_falsy
|
expect(Homebrew.args.switch_a).to be_falsy
|
||||||
expect(Homebrew.args.switch_b?).to be true
|
expect(Homebrew.args).to be_switch_b
|
||||||
end
|
end
|
||||||
|
|
||||||
it "raises an exception on constraint violation when both are env vars" do
|
it "raises an exception on constraint violation when both are env vars" do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user