Sha256: 2d7d63daaaba922dd94c61fff7c75744939674b7c6af99a322089b05a2fdfd6e
Contents?: true
Size: 478 Bytes
Versions: 2
Compression:
Stored size: 478 Bytes
Contents
require 'helper' VALID = ["foo.gov", "http://foo.mil", "foo@bar.gc.ca", "foo.gov.au", "http://www.foo.gouv.fr"] INVALID = ["foo.bar.com", "bar@foo.biz", "http://www.foo.biz", "foo.uk", "gov"] class TestGman < Test::Unit::TestCase should "recognize government email addresses and domains" do VALID.each do |test| assert_equal Gman::is_government?(test), true end INVALID.each do |test| assert_equal Gman::is_government?(test), false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gman-0.0.2 | test/test_gman.rb |
gman-0.0.1 | test/test_gman.rb |