summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lib/envutil.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/envutil.rb b/test/lib/envutil.rb
index 71d00b93806..8d4dc707c7c 100644
--- a/test/lib/envutil.rb
+++ b/test/lib/envutil.rb
@@ -344,8 +344,10 @@ module Test
begin
if exp.is_a?(Regexp)
assert_match(exp, act, message)
- else
+ elsif exp.all? {|e| String === e}
assert_equal(exp, act.lines.map {|l| l.chomp }, message)
+ else
+ assert_pattern_list(exp, act, message)
end
rescue MiniTest::Assertion => e
errs << e.message