summaryrefslogtreecommitdiff
path: root/users/test/unit/email_aliases_test.rb
AgeCommit message (Collapse)Author
2012-12-20fixed tests, testing corner cases, fixed theseAzul
2012-12-18refactored email_alias creation and validationAzul
using CouchRests user.email_aliases.build so the casted_by method is set in the alias Used this to move the validations into the alias itself. This is where they belong and allows us to render the errors inline along the email field they belong to.
2012-12-13refactor: changed add_email to add_email_aliasAzul
that's what it does. Changed all tests to use it instead of the attributes method
2012-12-13refactor: allow adding email aliases directlyAzul
2012-12-13ensure users do not have duplicate email aliasesAzul
nor aliases that are the same as the original email for that matter
2012-12-12find users by email and aliasesAzul
2012-12-10created generic Email class and use it with EmailAliasesAzul