Skip to content

Commit

Permalink
Fix warnings (#124)
Browse files Browse the repository at this point in the history
This commit will fix these warnings:

`MiniTest::Unit::TestCase is now Minitest::Test.`
  • Loading branch information
yui-knk authored and weppos committed Nov 21, 2016
1 parent 70cecd1 commit 172cee9
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion test/acceptance_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "test_helper"

class AcceptanceTest < Minitest::Unit::TestCase
class AcceptanceTest < Minitest::Test

VALID_CASES = [
["example.com", "example.com", [nil, "example", "com"]],
Expand Down
2 changes: 1 addition & 1 deletion test/psl_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# This test runs against the current PSL file and ensures
# the definitions satisfies the test suite.
class PslTest < Minitest::Unit::TestCase
class PslTest < Minitest::Test

ROOT = File.expand_path("../../", __FILE__)

Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "public_suffix"

Minitest::Unit::TestCase.class_eval do
Minitest::Test.class_eval do
unless method_exists?(:assert_not_equal)
def assert_not_equal(exp, act, msg = nil)
assert_operator(exp, :!=, act, msg)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/domain_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "test_helper"

class PublicSuffix::DomainTest < Minitest::Unit::TestCase
class PublicSuffix::DomainTest < Minitest::Test

def setup
@klass = PublicSuffix::Domain
Expand Down
2 changes: 1 addition & 1 deletion test/unit/errors_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "test_helper"

class ErrorsTest < Minitest::Unit::TestCase
class ErrorsTest < Minitest::Test

# Inherits from StandardError
def test_error_inheritance
Expand Down
2 changes: 1 addition & 1 deletion test/unit/list_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "test_helper"

class PublicSuffix::ListTest < Minitest::Unit::TestCase
class PublicSuffix::ListTest < Minitest::Test

def setup
@list = PublicSuffix::List.new
Expand Down
2 changes: 1 addition & 1 deletion test/unit/public_suffix_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "test_helper"

class PublicSuffixTest < Minitest::Unit::TestCase
class PublicSuffixTest < Minitest::Test

def test_private_domains_enabled_by_default
domain = PublicSuffix.parse("www.example.blogspot.com")
Expand Down
10 changes: 5 additions & 5 deletions test/unit/rule_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "test_helper"

class PublicSuffix::RuleTest < Minitest::Unit::TestCase
class PublicSuffix::RuleTest < Minitest::Test

def test_factory_should_return_rule_normal
rule = PublicSuffix::Rule.factory("com")
Expand Down Expand Up @@ -34,7 +34,7 @@ def test_default_returns_default_wildcard
end


class PublicSuffix::RuleBaseTest < Minitest::Unit::TestCase
class PublicSuffix::RuleBaseTest < Minitest::Test

class ::PublicSuffix::Rule::Test < ::PublicSuffix::Rule::Base
end
Expand Down Expand Up @@ -120,7 +120,7 @@ def test_decompose
end


class PublicSuffix::RuleNormalTest < Minitest::Unit::TestCase
class PublicSuffix::RuleNormalTest < Minitest::Test

def setup
@klass = PublicSuffix::Rule::Normal
Expand Down Expand Up @@ -156,7 +156,7 @@ def test_decompose
end


class PublicSuffix::RuleExceptionTest < Minitest::Unit::TestCase
class PublicSuffix::RuleExceptionTest < Minitest::Test

def setup
@klass = PublicSuffix::Rule::Exception
Expand Down Expand Up @@ -190,7 +190,7 @@ def test_decompose
end


class PublicSuffix::RuleWildcardTest < Minitest::Unit::TestCase
class PublicSuffix::RuleWildcardTest < Minitest::Test

def setup
@klass = PublicSuffix::Rule::Wildcard
Expand Down

0 comments on commit 172cee9

Please sign in to comment.