File: backtrace_regexp_match.patch

package info (click to toggle)
ruby-mocha 2.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,540 kB
  • sloc: ruby: 11,899; javascript: 477; makefile: 14
file content (19 lines) | stat: -rw-r--r-- 762 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: extend regexp matching Mocha's path
 to include vendorlib for autopkgtest
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2018-08-19

Index: ruby-mocha/test/unit/backtrace_filter_test.rb
===================================================================
--- ruby-mocha.orig/test/unit/backtrace_filter_test.rb
+++ ruby-mocha/test/unit/backtrace_filter_test.rb
@@ -12,7 +12,7 @@ class BacktraceFilterTest < Mocha::TestC
   end
 
   def test_should_determine_path_for_mocha_lib_directory
-    assert_match Regexp.new('/lib/$'), BacktraceFilter::LIB_DIRECTORY
+    assert_match Regexp.new("/lib/$|#{RbConfig::CONFIG['vendorlib']}"), BacktraceFilter::LIB_DIRECTORY
   end
 
   def test_should_handle_special_characters