summaryrefslogtreecommitdiffstats
path: root/rinku-1.7.3-minitest.patch
blob: 7aaaa50509073eb5ecee7a9b9d2ba8b143545142 (plain)
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
39
40
41
42
43
44
45
From b073cde3218bcb03ad9af804dafe8730101f743d Mon Sep 17 00:00:00 2001
From: Ken Dreyer <ktdreyer@ktdreyer.com>
Date: Sat, 28 Mar 2015 09:33:12 -0600
Subject: [PATCH] fedora: tests: switch to minitest 5

Ruby 1.9+ uses Minitest as the backend for Test::Unit, so we might as
well update to the Minitest 5 API.

This is a Fedora-only patch; the patch for upstream alters the gemspec
as well: https://github.com/vmg/rinku/pull/48
---
 test/autolink_test.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/autolink_test.rb b/test/autolink_test.rb
index 27c9a52..7eca6d0 100644
--- a/test/autolink_test.rb
+++ b/test/autolink_test.rb
@@ -2,12 +2,12 @@
 rootdir = File.dirname(File.dirname(__FILE__))
 $LOAD_PATH.unshift "#{rootdir}/lib"
 
-require 'test/unit'
+require 'minitest/autorun'
 require 'cgi'
 require 'uri'
 require 'rinku'
 
-class RedcarpetAutolinkTest < Test::Unit::TestCase
+class RedcarpetAutolinkTest < Minitest::Test
 
   SAFE_CHARS = "{}[]~'"
 
@@ -34,7 +34,7 @@ class RedcarpetAutolinkTest < Test::Unit::TestCase
     assert_equal Rinku.auto_link(url), url
 
     Rinku.skip_tags = nil
-    assert_not_equal Rinku.auto_link(url), url
+    refute_equal Rinku.auto_link(url), url
   end
 
   def test_auto_link_with_single_trailing_punctuation_and_space
-- 
1.9.3