Add helpers to set the current tenant when running tests.
Devise for user authentication.
Add Devise initialisers.
Implement users, with multiple email addresses. Devise's authentication would need to be modified to suit the new one-user-many-emails paradigm.
Implement test cases for various edge cases.
Implement the InstanceUser model, which represents users in instances.
Implement multi-email user login.
Declare the inverse relationship for these associations.
Test whether users can log in with their secondary email addresses.
Fix Hound lint warnings.
Emails are case insensitive.
Set up the database before running any tests.
InstanceUser objects should be tenanted.
WIP: Support tenants in tests.