Sha256: b1a7620a6404fc4fb0ee45753f4ec2e19c898b5542125f72612b705f78e56df0

Contents?: true

Size: 344 Bytes

Versions: 24

Compression:

Stored size: 344 Bytes

Contents

require File.join(File.dirname(__FILE__), 'helper')

class TestGmanLocality < Minitest::Test
  should "parse the alpha2" do
    assert_equal "us", Gman.new("whitehouse.gov").alpha2
    assert_equal "us", Gman.new("army.mil").alpha2
    assert_equal "gb", Gman.new("foo.gov.uk").alpha2
    assert_equal "ca", Gman.new("gov.ca").alpha2
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
gman-4.4.3 test/test_gman_locality.rb
gman-4.4.2 test/test_gman_locality.rb
gman-4.4.1 test/test_gman_locality.rb
gman-4.4.0 test/test_gman_locality.rb