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

Phlip phlip2005 at gmail.com
Sat Mar 7 04:17:47 EST 2009


   def really_div_by_zero
     1/0
   end

   def div_by_zero
     really_div_by_zero
   end

   it 'should trace my stack' do
     div_by_zero
   end

And that hits the correct line:

ZeroDivisionError in 'Whatever should trace my stack'
divided by 0
spec/blog_mind_map_spec.rb:192:in `/'
spec/blog_mind_map_spec.rb:192:in `really_div_by_zero'
spec/blog_mind_map_spec.rb:196:in `div_by_zero'
spec/blog_mind_map_spec.rb:200:
spec/blog_mind_map_spec.rb:11:

So the question becomes: Why do we sometimes get the correct stack trace and 
sometimes we don't?



More information about the rspec-users mailing list