summaryrefslogtreecommitdiffstats
path: root/rinku-1.7.3-minitest.patch
diff options
context:
space:
mode:
Diffstat (limited to 'rinku-1.7.3-minitest.patch')
-rw-r--r--rinku-1.7.3-minitest.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/rinku-1.7.3-minitest.patch b/rinku-1.7.3-minitest.patch
new file mode 100644
index 0000000..7aaaa50
--- /dev/null
+++ b/rinku-1.7.3-minitest.patch
@@ -0,0 +1,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
+