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
|