diff options
author | Francis Luong (Franco) <franco@definefunk.com> | 2017-08-30 07:47:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-30 07:47:42 -0400 |
commit | c534ea04cb6b69d10878b3049d494f06f411fc6b (patch) | |
tree | e67494ac80b85ba94708d39426cd073bf8e5feff /test/ipaddress/ipv4_test.rb | |
parent | 9dedeaf13caddb1827a48091c353c8f953b517ac (diff) | |
parent | c118c7174a6939cbdfd35f9aaaa39c93a30cd452 (diff) | |
download | ipaddress-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.rb | 1 |
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 |