Package: cucumber / 2.4.0-4

0007_exclude_vendor_ruby_json.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Consider /usr/lib/ruby/vendor_ruby/cucumber as internal files
 This is needed to exclude these files from backtrace, and to make tests to
 pass with autopkgtest
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2017-10-12
Forwarded: not-needed

--- a/lib/cucumber/formatter/json.rb
+++ b/lib/cucumber/formatter/json.rb
@@ -103,6 +103,7 @@
       end
 
       def internal_hook?(test_step)
+        test_step.source.last.location.file.include?('/usr/lib/ruby/vendor_ruby/cucumber/') || \
         test_step.source.last.location.file.include?('lib/cucumber/')
       end