summaryrefslogtreecommitdiff
path: root/users/test/unit
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2013-09-27 00:00:31 -0700
committerazul <azul@riseup.net>2013-09-27 00:00:31 -0700
commit6b35a71db66e61c04747bf82feded014687cc528 (patch)
treefab1426f3ba181d7697443e058656774c16ff15a /users/test/unit
parentdba941539011f5e0634585e6c11a1c7f58110876 (diff)
parentaf9d843d646cf500306de0ad20896c05ecaccd78 (diff)
Merge pull request #91 from jessib/feature/rollback_identity_destination_limits
Since local part of email is case sensitive, want to allow remote email ...
Diffstat (limited to 'users/test/unit')
-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