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

Version Path
gman-4.6.5 test/test_gman_country_codes.rb
gman-4.6.4 test/test_gman_country_codes.rb
gman-4.6.3 test/test_gman_country_codes.rb
gman-4.6.2 test/test_gman_country_codes.rb
gman-4.6.1 test/test_gman_country_codes.rb
gman-4.6.0 test/test_gman_country_codes.rb
gman-4.5.1 test/test_gman_country_codes.rb
gman-4.5.0 test/test_gman_country_codes.rb
gman-4.4.3 test/test_gman_country_codes.rb
gman-4.4.2 test/test_gman_country_codes.rb
gman-4.4.1 test/test_gman_country_codes.rb
gman-4.4.0 test/test_gman_country_codes.rb