mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-17 12:24:31 +00:00
Fix grammar (#20106)
This commit is contained in:
parent
782b6835f7
commit
36b0ff57b7
|
@ -755,7 +755,7 @@ RSpec.describe Account, type: :model do
|
||||||
expect(account).to model_have_error_on_field(:username)
|
expect(account).to model_have_error_on_field(:username)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'is invalid if the username is longer then 30 characters' do
|
it 'is invalid if the username is longer than 30 characters' do
|
||||||
account = Fabricate.build(:account, username: Faker::Lorem.characters(number: 31))
|
account = Fabricate.build(:account, username: Faker::Lorem.characters(number: 31))
|
||||||
account.valid?
|
account.valid?
|
||||||
expect(account).to model_have_error_on_field(:username)
|
expect(account).to model_have_error_on_field(:username)
|
||||||
|
@ -801,7 +801,7 @@ RSpec.describe Account, type: :model do
|
||||||
expect(account).to model_have_error_on_field(:username)
|
expect(account).to model_have_error_on_field(:username)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'is valid even if the username is longer then 30 characters' do
|
it 'is valid even if the username is longer than 30 characters' do
|
||||||
account = Fabricate.build(:account, domain: 'domain', username: Faker::Lorem.characters(number: 31))
|
account = Fabricate.build(:account, domain: 'domain', username: Faker::Lorem.characters(number: 31))
|
||||||
account.valid?
|
account.valid?
|
||||||
expect(account).not_to model_have_error_on_field(:username)
|
expect(account).not_to model_have_error_on_field(:username)
|
||||||
|
|
Loading…
Reference in a new issue