File: backtrace_regexp_match.patch

package info (click to toggle)
ruby-mocha 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,644 kB
  • sloc: ruby: 12,310; javascript: 499; makefile: 14
file content (23 lines) | stat: -rw-r--r-- 761 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil@debian.org>
Date: Sun, 21 Jul 2024 23:52:58 +0200
Subject: extend regexp matching Mocha's path

Forwarded: not-needed
Last-Update: 2018-08-19

to include vendorlib for autopkgtest
---
 test/unit/backtrace_filter_test.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/test/unit/backtrace_filter_test.rb
+++ b/test/unit/backtrace_filter_test.rb
@@ -14,7 +14,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