Fix tests

This commit is contained in:
Douglas Eichelberger 2023-03-14 08:50:56 -07:00
parent f4c9a96c70
commit c178986235

View File

@ -20,10 +20,9 @@ describe "globally-scoped helper methods" do
describe "#odie" do
it "exits with 1" do
expect(self).to receive(:exit).and_return(1)
expect do
odie "foo"
end.to output("Error: foo\n").to_stderr
end.to output("Error: foo\n").to_stderr.and raise_error SystemExit
end
end