Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid a long stacktrace in rspec

is it easy way to limit stack trace only to files in application? Long stacktrace is messy and most errors are directly in app.

like image 770
Sławosz Avatar asked Nov 10 '11 09:11

Sławosz


1 Answers

Normally the stacktrace is shortened automatically, unless you specify the option --backtrace in .rspec file.

Maybe this question is helpful for you. They try to achieve the opposite, but it shows the point where you can hook in and overrule it.

like image 123
nathanvda Avatar answered Nov 17 '22 08:11

nathanvda