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?
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users