Skip to content

Commit

Permalink
Merge pull request #48 from ktdreyer/minitest
Browse files Browse the repository at this point in the history
tests: switch to minitest 5
  • Loading branch information
Vicent Marti committed Jan 11, 2016
2 parents 913366c + 50571c2 commit e1d1a52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions rinku.gemspec
Expand Up @@ -34,4 +34,5 @@ Gem::Specification.new do |s|
s.extensions = ["ext/rinku/extconf.rb"]
s.require_paths = ["lib"]
s.add_development_dependency("rake-compiler")
s.add_development_dependency("minitest")
end
6 changes: 3 additions & 3 deletions test/autolink_test.rb
Expand Up @@ -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 = "{}[]~'"

Expand All @@ -34,7 +34,7 @@ def test_global_skip_tags
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
Expand Down

0 comments on commit e1d1a52

Please sign in to comment.