|
|
@@ -618,10 +618,10 @@ RSpec.describe Account, type: :model do |
|
|
|
expect(account).not_to model_have_error_on_field(:username) |
|
|
|
end |
|
|
|
|
|
|
|
it 'is valid even if the username doesn\'t only contains letters, numbers and underscores' do |
|
|
|
it 'is invalid if the username doesn\'t only contains letters, numbers and underscores' do |
|
|
|
account = Fabricate.build(:account, domain: 'domain', username: 'the-doctor') |
|
|
|
account.valid? |
|
|
|
expect(account).not_to model_have_error_on_field(:username) |
|
|
|
expect(account).to model_have_error_on_field(:username) |
|
|
|
end |
|
|
|
|
|
|
|
it 'is valid even if the username is longer then 30 characters' do |
|
|
|