File: minitest_autorun.patch

package info (click to toggle)
ruby-hmac 0.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 124 kB
  • ctags: 51
  • sloc: ruby: 201; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (4)
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
Author: Jonas Genannt <jonas.genannt@capi2name.de>
Description: Update unit test to work with newest MiniTest from Debian
             Patch is not forwarded, because upstream declared ruby-hmac as
             obsolete. See NEWS file.
Forwarded: not-needed

--- a/test/test_hmac.rb
+++ b/test/test_hmac.rb
@@ -4,15 +4,15 @@
 require "hmac-md5"
 require "hmac-sha1"
 begin
-  require "minitest/unit"
+  require "minitest/autorun"
 rescue LoadError
   require "rubygems"
-  require "minitest/unit"
+  require "minitest/autorun"
 end
 
-MiniTest::Unit.autorun
+Minitest.autorun
 
-class TestHmac < MiniTest::Unit::TestCase
+class TestHmac < Minitest::Test
 
   def test_s_digest
     key = "\x0b" * 16