Normalize current_username on account migration (#38183)
This commit is contained in:
1 parent
377952703c
commit
6416724f75
3 files changed
+42
-9
No files matched your search
@@ -7,6 +7,10 @@ RSpec.describe AccountMigration do
|
||||
describe 'acct' do
|
||||
it { is_expected.to normalize(:acct).from(' @username@domain ').to('username@domain') }
|
||||
end
|
||||
|
||||
describe 'current_username' do
|
||||
it { is_expected.to normalize(:current_username).from(' @username ').to('username') }
|
||||
end
|
||||
end
|
||||
|
||||
describe 'Validations' do
|
||||
|
||||
Reference in new issue
Block a user