test/test_gman.rb in gman-2.0.0 vs test/test_gman.rb in gman-2.1.0
- old
+ new
@@ -59,10 +59,10 @@
assert_equal nil, Gman.domain_parts("foo@act.gov.au")
end
should "return public suffix domain" do
assert_equal PublicSuffix::Domain, Gman.domain_parts("whitehouse.gov").class
- assert_equal NilClass, Gman.domain_parts("foo.bar").class
+ assert_equal NilClass, Gman.domain_parts("foo.invalid").class
end
should "parse domain parts" do
assert_equal "gov", Gman.domain_parts("foo@bar.gov").tld
assert_equal "bar", Gman.domain_parts("foo.bar.gov").sld