Просмотр исходного кода

Update remote bio test from 160 to 500 (#10799)

master^2
trwnh 5 лет назад
committed by Eugen Rochko
Родитель
Сommit
e3b39ea4a4
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      spec/models/account_spec.rb

+ 2
- 2
spec/models/account_spec.rb Просмотреть файл

@@ -647,8 +647,8 @@ RSpec.describe Account, type: :model do
expect(account).not_to model_have_error_on_field(:display_name)
end

it 'is valid even if the note is longer than 160 characters' do
account = Fabricate.build(:account, domain: 'domain', note: Faker::Lorem.characters(161))
it 'is valid even if the note is longer than 500 characters' do
account = Fabricate.build(:account, domain: 'domain', note: Faker::Lorem.characters(501))
account.valid?
expect(account).not_to model_have_error_on_field(:note)
end


Загрузка…
Отмена
Сохранить