summaryrefslogtreecommitdiff
path: root/users/test
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-09-26 12:06:25 -0700
committerjessib <jessib@riseup.net>2013-09-26 12:06:25 -0700
commitaf9d843d646cf500306de0ad20896c05ecaccd78 (patch)
treefab1426f3ba181d7697443e058656774c16ff15a /users/test
parentdba941539011f5e0634585e6c11a1c7f58110876 (diff)
Since local part of email is case sensitive, want to allow remote email addresses with uppercase letters in local part.
Diffstat (limited to 'users/test')
-rw-r--r--users/test/unit/identity_test.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/users/test/unit/identity_test.rb b/users/test/unit/identity_test.rb
index 02f14c0..0842a77 100644
--- a/users/test/unit/identity_test.rb
+++ b/users/test/unit/identity_test.rb
@@ -76,7 +76,7 @@ class IdentityTest < ActiveSupport::TestCase
assert_match /needs to end in/, id.errors[:address].first
end
- test "alias must meet some conditions as login" do
+ test "alias must meet same conditions as login" do
id = Identity.create_for @user, address: alias_name.capitalize
assert !id.valid?
#hacky way to do this, but okay for now:
@@ -90,12 +90,6 @@ class IdentityTest < ActiveSupport::TestCase
assert id.errors.messages[:destination].include? "needs to be a valid email address"
end
- test "only lowercase destination" do
- id = Identity.create_for @user, address: @user.email_address, destination: forward_address.capitalize
- assert !id.valid?
- assert id.errors.messages[:destination].include? "letters must be lowercase"
- end
-
def alias_name
@alias_name ||= Faker::Internet.user_name
end