File: fix-circular-dependencies.patch

package info (click to toggle)
ruby-mime-types 3.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 336 kB
  • sloc: ruby: 2,006; makefile: 6
file content (21 lines) | stat: -rw-r--r-- 757 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
Description: Fix circular require during tests from minitest loading order
 Require minitest/autorun early in minitest_helper.rb to fully load minitest.rb
 and minitest/test.rb before minitest-focus (and possibly hooks) try to require
 minitest/test.rb again. This prevents the "circular require considered harmful"
 warning seen in builds using the standalone minitest gem.
Author: Simon Quigley <tsimonq2@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2026-02-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/test/minitest_helper.rb
+++ b/test/minitest_helper.rb
@@ -1,6 +1,7 @@
 # frozen_string_literal: true
 
 gem "minitest"
+require "minitest/autorun"
 require "minitest/focus"
 require "minitest/hooks"