From af9d843d646cf500306de0ad20896c05ecaccd78 Mon Sep 17 00:00:00 2001 From: jessib Date: Thu, 26 Sep 2013 12:06:25 -0700 Subject: Since local part of email is case sensitive, want to allow remote email addresses with uppercase letters in local part. --- users/test/unit/identity_test.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'users/test/unit/identity_test.rb') 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 -- cgit v1.2.3