summaryrefslogtreecommitdiff
path: root/test/ipaddress/prefix_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ipaddress/prefix_test.rb')
-rw-r--r--test/ipaddress/prefix_test.rb14
1 files changed, 4 insertions, 10 deletions
diff --git a/test/ipaddress/prefix_test.rb b/test/ipaddress/prefix_test.rb
index bff812e..1a0e277 100644
--- a/test/ipaddress/prefix_test.rb
+++ b/test/ipaddress/prefix_test.rb
@@ -1,6 +1,6 @@
require 'test_helper'
-class Prefix32Test < Test::Unit::TestCase
+class Prefix32Test < Minitest::Test
def setup
@netmask0 = "0.0.0.0"
@@ -89,12 +89,9 @@ class Prefix32Test < Test::Unit::TestCase
end
def test_initialize
- assert_raise (ArgumentError) do
+ assert_raises (ArgumentError) do
@klass.new 33
end
- assert_nothing_raised do
- @klass.new 8
- end
assert_instance_of @klass, @klass.new(8)
end
@@ -122,7 +119,7 @@ class Prefix32Test < Test::Unit::TestCase
end # class Prefix32Test
-class Prefix128Test < Test::Unit::TestCase
+class Prefix128Test < Minitest::Test
def setup
@u128_hash = {
@@ -135,12 +132,9 @@ class Prefix128Test < Test::Unit::TestCase
end
def test_initialize
- assert_raise (ArgumentError) do
+ assert_raises (ArgumentError) do
@klass.new 129
end
- assert_nothing_raised do
- @klass.new 64
- end
assert_instance_of @klass, @klass.new(64)
end