aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib/test/unit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/test/unit.rb')
-rw-r--r--test/lib/test/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb
index c5dd29b0cf..d34e11afa7 100644
--- a/test/lib/test/unit.rb
+++ b/test/lib/test/unit.rb
@@ -110,7 +110,7 @@ module Test
end
unless negative.empty?
negative = Regexp.union(*negative.map! {|s| s[neg_pat, 1]})
- filter = /\A(?!.*#{negative})#{filter}/
+ filter = /\A(?=.*#{filter})(?!.*#{negative})/
end
if Regexp === filter
# bypass conversion in minitest