Fix tests
This commit is contained in:
parent
f4c9a96c70
commit
c178986235
@ -20,10 +20,9 @@ describe "globally-scoped helper methods" do
|
|||||||
|
|
||||||
describe "#odie" do
|
describe "#odie" do
|
||||||
it "exits with 1" do
|
it "exits with 1" do
|
||||||
expect(self).to receive(:exit).and_return(1)
|
|
||||||
expect do
|
expect do
|
||||||
odie "foo"
|
odie "foo"
|
||||||
end.to output("Error: foo\n").to_stderr
|
end.to output("Error: foo\n").to_stderr.and raise_error SystemExit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user