[rspec-users] spec'ing a call to exit
aslak.hellesoy at gmail.com
Wed Apr 18 08:02:25 EDT 2007
On 4/18/07, Scott Taylor <mailing_lists at railsnewbie.com> wrote:
> How would I spec a call to exit? I can't seem to stub it - rspec
> throws an error.
I'm not sure what "speccing a call to exit" means because it's too
vague. Is the spec calling exit or is the code under test calling exit
(perhaps as the result of calling some other method from the spec)?
What behaviour are you expecting in what situation?
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users