]> cat aescling's git repositories - mastodon.git/commitdiff
Update remote bio test from 160 to 500 (#10799)
authortrwnh <a@trwnh.com>
Tue, 21 May 2019 11:29:06 +0000 (06:29 -0500)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 21 May 2019 11:29:06 +0000 (13:29 +0200)
spec/models/account_spec.rb

index 719e01de76df5fd2801896f03c225b7fd32a5fd2..379872316b257d090ad4c03d80147957ea9884ce 100644 (file)
@@ -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