Sha256: be62a1807d764a963fd1bde68588634a6019a8e3b79913e2bf3bdd5e1d368e28
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
require File.dirname(__FILE__) + '/../test_helper' class ProxyLinkTest < Test::Unit::TestCase fixtures :addresses, :domains, :proxy_links, :mailinglists def test_verify_fixtures assert_equal @loaded_fixtures["proxy_links"].length, ProxyLink.count end def test_proxy_address pl=ProxyLink.find(:first) assert_equal "testuser-42@test.domain", pl.proxy_address end def test_real_address_valid assert_equal "addressmessage1@foo.test", ProxyLink.real_address("testuser-42@test.domain") end def test_real_address_random_address assert_nil ProxyLink.real_address("test@test.test") end def test_real_address_random_address_with_proxy_looking_syntax assert_nil ProxyLink.real_address("test-42@test.test") end def test_real_address_random_address_with_real_domain assert_nil ProxyLink.real_address("randomtest-42@test.domain") end def test_real_address_real_mailinglist_list_bad_proxy_id assert_nil ProxyLink.real_address("testuser-64738@test.domain") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sugoi-mail-0.1.5 | test/unit/proxy_link_test.rb |
sugoi-mail-0.3.0 | test/unit/proxy_link_test.rb |
sugoi-mail-0.3.2 | test/unit/proxy_link_test.rb |