From b073cde3218bcb03ad9af804dafe8730101f743d Mon Sep 17 00:00:00 2001 From: Ken Dreyer 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