diff options
author | Azul <azul@riseup.net> | 2017-09-22 15:30:40 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2017-09-22 15:30:47 +0200 |
commit | 3f777b4cbc7eaa4d127ec31e1d625bba65a40c0d (patch) | |
tree | c352dbcf7c493afad8fad1ee343734563f311301 /test/unit/email_address_test.rb | |
parent | bc48ac30c232f1e3fa5f5ad455f14d5fec17abeb (diff) |
wkd: implement basic lookup of keys through wkd
wkd is the web key directory. See the Readme.md in
/lib/nickserver/wkd
Diffstat (limited to 'test/unit/email_address_test.rb')
-rw-r--r-- | test/unit/email_address_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/email_address_test.rb b/test/unit/email_address_test.rb index 6aecef7..2fea65d 100644 --- a/test/unit/email_address_test.rb +++ b/test/unit/email_address_test.rb @@ -10,6 +10,11 @@ class EmailAddressTest < Minitest::Test assert !nick.domain?('est.me') end + def test_local_part + nick = Nickserver::EmailAddress.new 'nick@test.me' + assert_equal 'nick', nick.local_part + end + def test_valid nick = Nickserver::EmailAddress.new 'nick@remote.domain' assert nick.valid? |