Sha256: 55aae21820189e5b737e334b5ce4d6baf1a79841265e6b893011ae0b9a3f5155
Contents?: true
Size: 503 Bytes
Versions: 20
Compression:
Stored size: 503 Bytes
Contents
require_relative "helper" class TestGmanSanctions < Minitest::Test should "know when a country isn't sanctioned" do refute Gman.new("whitehouse.gov").sanctioned? end should "know when a country is sanctioned" do assert Gman.new("kim@pyongyang.gov.kp").sanctioned? end should "not err on invalid domains" do assert_equal nil, Gman.new("domain.invalid").sanctioned? end should "work with non-governemnt domains" do assert Gman.new("foo@bar.co.kp").sanctioned? end end
Version data entries
20 entries across 20 versions & 1 rubygems