
Untitled
By: a guest on
Aug 22nd, 2012 | syntax:
None | size: 0.46 KB | hits: 8 | expires: Never
describe HerpDerps do
# Fails with
# NameError:
# undefined local variable or method `terminate' for
# #<RSpec::Core::ExampleGroup::Nested_1::Nested_3::Nested_1:0x007ff96bac96f0>
it 'exits cleanly' do
# expecting call to `exit`
-> { described_class.run }.should terminate
end
it 'exits with non-zero status code' do
#expecting call to `abort` or `exit(false)`
-> { described_class.run }.should terminate.with_code(1)
end
end