Fix tests
This commit is contained in:
parent
f4c9a96c70
commit
c178986235
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user