francis

RSpec gotchas with exception handling

posted Tuesday, 27 November 2007

If your code throws exceptions then beware that RSpec uses exceptions to talk to itself, if you catch exceptions then beware that you could be masking the error RSpec is trying to report.

If you're staring at something that you know should be working, comment out the rescue section and see if it tells you more.

Have fun.

links: digg this    del.icio.us    technorati