File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -347,9 +347,9 @@ def start_coverage_measurement
347
347
end
348
348
349
349
def start_coverage_with_criteria
350
- start_arguments = coverage_criteria . to_h do |criterion |
350
+ start_arguments = coverage_criteria . map do |criterion |
351
351
[ lookup_corresponding_ruby_coverage_name ( criterion ) , true ]
352
- end
352
+ end . to_h
353
353
354
354
start_arguments [ :eval ] = true if coverage_for_eval_enabled?
355
355
Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ def minimum_coverage_by_file(coverage = nil)
344
344
def refuse_coverage_drop ( *criteria )
345
345
criteria = coverage_criteria if criteria . empty?
346
346
347
- maximum_coverage_drop ( criteria . to_h { |c | [ c , 0 ] } )
347
+ maximum_coverage_drop ( criteria . map { |c | [ c , 0 ] } . to_h )
348
348
end
349
349
350
350
#
You can’t perform that action at this time.
0 commit comments