File: 0003-Add-support-to-Minitest-5.22.patch

package info (click to toggle)
ruby-model-tokenizer 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 180 kB
  • sloc: ruby: 245; makefile: 2
file content (38 lines) | stat: -rw-r--r-- 1,030 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: Lucas Kanashiro <kanashiro@debian.org>
Date: Mon, 16 Dec 2024 19:08:33 -0300
Subject: Add support to Minitest 5.22

Forwarded: no
---
 test/helper.rb               | 4 ----
 test/token_generator_test.rb | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/test/helper.rb b/test/helper.rb
index 630c5bf..3635ff4 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -34,10 +34,6 @@ require 'model_tokenizer'
 
 module ModelTokenizer
   module Test
-    def self.included(base)
-      MiniTest::Unit.autorun
-    end
-
     def transaction
       ActiveRecord::Base.transaction { yield ; raise ActiveRecord::Rollback }
     end
diff --git a/test/token_generator_test.rb b/test/token_generator_test.rb
index c5dc3f0..d526bb7 100644
--- a/test/token_generator_test.rb
+++ b/test/token_generator_test.rb
@@ -10,7 +10,7 @@ class Truck < ActiveRecord::Base
   has_token :length => 16
 end
 
-class TokenGenerator < MiniTest::Test
+class TokenGenerator < Minitest::Test
   include ModelTokenizer::Test
 
   def setup