[rspec-users] what has RSpec got against stack traces?

Phlip phlip2005 at gmail.com
Sat Mar 7 04:08:32 EST 2009


>> Nope. Try 1/0 inside a sub-method - you won't get a stack trace to it, 
>> right?

> Usually it does:
> 
>  >> def foo
>  >>   1/0
>  >>   end
> => nil
>  >> def bar
>  >>   foo
>  >>   end
> => nil
>  >> bar
> ZeroDivisionError: divided by 0
>    from (irb):43:in `/'
>    from (irb):43:in `foo'
>    from (irb):46:in `bar'
>    from (irb):48

I don't see any RSpec above that in the call stack.




More information about the rspec-users mailing list