mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 07:23:43 +01:00
fix account spec broken by change to 500char bios
This commit is contained in:
parent
7b53d4bbca
commit
49ba78d6f8
1 changed files with 4 additions and 4 deletions
|
@ -558,8 +558,8 @@ RSpec.describe Account, type: :model do
|
||||||
expect(account).to model_have_error_on_field(:display_name)
|
expect(account).to model_have_error_on_field(:display_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'is invalid if the note is longer than 160 characters' do
|
it 'is invalid if the note is longer than 500 characters' do
|
||||||
account = Fabricate.build(:account, note: Faker::Lorem.characters(161))
|
account = Fabricate.build(:account, note: Faker::Lorem.characters(501))
|
||||||
account.valid?
|
account.valid?
|
||||||
expect(account).to model_have_error_on_field(:note)
|
expect(account).to model_have_error_on_field(:note)
|
||||||
end
|
end
|
||||||
|
@ -598,8 +598,8 @@ RSpec.describe Account, type: :model do
|
||||||
expect(account).not_to model_have_error_on_field(:display_name)
|
expect(account).not_to model_have_error_on_field(:display_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'is valid even if the note is longer than 160 characters' do
|
it 'is valid even if the note is longer than 500 characters' do
|
||||||
account = Fabricate.build(:account, domain: 'domain', note: Faker::Lorem.characters(161))
|
account = Fabricate.build(:account, domain: 'domain', note: Faker::Lorem.characters(501))
|
||||||
account.valid?
|
account.valid?
|
||||||
expect(account).not_to model_have_error_on_field(:note)
|
expect(account).not_to model_have_error_on_field(:note)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue