Sha256: 431b466f2f3f4ef6573a99c0455b230763f612e2cb91f9dc338d000047d4b05e

Contents?: true

Size: 344 Bytes

Versions: 4

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

4 entries across 4 versions & 1 rubygems

Version Path
gman-7.0.1 test/test_gman_locality.rb
gman-7.0.0 test/test_gman_locality.rb
gman-6.0.1 test/test_gman_locality.rb
gman-6.0.0 test/test_gman_locality.rb