We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61150ea commit 76a108bCopy full SHA for 76a108b
lib/xspec/notifiers.rb
@@ -199,13 +199,13 @@ def run_finish
199
200
private
201
202
+ LIB_DIR = File.expand_path('../..', __FILE__)
203
+
204
# A standard backtrace contains many entries for XSpec itself which are
205
# not useful for debugging your tests, so they are stripped out.
206
def clean_backtrace(backtrace)
- lib_dir = File.dirname(File.expand_path('..', __FILE__))
-
207
backtrace.reject {|x|
208
- File.dirname(x).start_with?(lib_dir)
+ File.dirname(x).start_with?(LIB_DIR)
209
}
210
end
211
0 commit comments