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-5.0.9 test/test_gman_locality.rb
gman-5.0.8 test/test_gman_locality.rb
gman-5.0.7 test/test_gman_locality.rb
gman-5.0.6 test/test_gman_locality.rb
gman-5.0.5 test/test_gman_locality.rb
gman-5.0.4 test/test_gman_locality.rb
gman-5.0.3 test/test_gman_locality.rb
gman-5.0.2 test/test_gman_locality.rb
gman-5.0.1 test/test_gman_locality.rb
gman-5.0.0 test/test_gman_locality.rb
gman-4.7.1 test/test_gman_locality.rb
gman-4.7.0 test/test_gman_locality.rb
gman-4.6.5 test/test_gman_locality.rb
gman-4.6.4 test/test_gman_locality.rb
gman-4.6.3 test/test_gman_locality.rb
gman-4.6.2 test/test_gman_locality.rb
gman-4.6.1 test/test_gman_locality.rb
gman-4.6.0 test/test_gman_locality.rb
gman-4.5.1 test/test_gman_locality.rb
gman-4.5.0 test/test_gman_locality.rb