Browse Source

Fix grammar (#20106)

closed-social-glitch-2
Roni Laukkarinen 2 years ago
committed by GitHub
parent
commit
36b0ff57b7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      spec/models/account_spec.rb

+ 2
- 2
spec/models/account_spec.rb View File

@ -755,7 +755,7 @@ RSpec.describe Account, type: :model do
expect(account).to model_have_error_on_field(:username)
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.valid?
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)
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.valid?
expect(account).not_to model_have_error_on_field(:username)

Loading…
Cancel
Save