summaryrefslogtreecommitdiff
path: root/test/ipaddress/ipv4_test.rb
diff options
context:
space:
mode:
authorFrancis Luong (Franco) <franco@definefunk.com>2017-08-30 07:47:42 -0400
committerGitHub <noreply@github.com>2017-08-30 07:47:42 -0400
commitc534ea04cb6b69d10878b3049d494f06f411fc6b (patch)
treee67494ac80b85ba94708d39426cd073bf8e5feff /test/ipaddress/ipv4_test.rb
parent9dedeaf13caddb1827a48091c353c8f953b517ac (diff)
parentc118c7174a6939cbdfd35f9aaaa39c93a30cd452 (diff)
downloadipaddress-c534ea04cb6b69d10878b3049d494f06f411fc6b.tar.gz
Merge pull request #64 from ghg/return_argument_error_for_nil
Raise ArgumentError if IP address is nil
Diffstat (limited to 'test/ipaddress/ipv4_test.rb')
-rw-r--r--test/ipaddress/ipv4_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ipaddress/ipv4_test.rb b/test/ipaddress/ipv4_test.rb
index 33b3a31..621f33c 100644
--- a/test/ipaddress/ipv4_test.rb
+++ b/test/ipaddress/ipv4_test.rb
@@ -92,6 +92,7 @@ class IPv4Test < Minitest::Test
@invalid_ipv4.each do |i|
assert_raises(ArgumentError) {@klass.new(i)}
end
+ assert_raises (ArgumentError) {@klass.new(nil)}
assert_raises (ArgumentError) {@klass.new("10.0.0.0/asd")}
end