Sha256: 695651289c7e2cd07b08d04e87dec8c31fca23c4bffb17ad46c7356034a1e81c
Contents?: true
Size: 425 Bytes
Versions: 12
Compression:
Stored size: 425 Bytes
Contents
require File.join(File.dirname(__FILE__), 'helper') class TestGmanCountryCodes < Minitest::Test should "determine a domain's country" do assert_equal "United States", Gman.new("whitehouse.gov").country.name assert_equal "United States", Gman.new("army.mil").country.name assert_equal "United Kingdom", Gman.new("foo.gov.uk").country.name assert_equal "Canada", Gman.new("foo.gc.ca").country.name end end
Version data entries
12 entries across 12 versions & 1 rubygems