about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbeatrix-bitrot <beatrix.bitrot@gmail.com>2017-06-26 20:55:44 +0000
committerbeatrix-bitrot <beatrix.bitrot@gmail.com>2017-06-26 20:55:44 +0000
commit49ba78d6f8d1512505864515f1a2337ff4a34e1b (patch)
tree8d4e978381836d05637b169c8431dc023add8ce0
parent7b53d4bbca613441ddb18a561211319223ce516f (diff)
fix account spec broken by change to 500char bios
-rw-r--r--spec/models/account_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb
index eeaebb779..17e2d8499 100644
--- a/spec/models/account_spec.rb
+++ b/spec/models/account_spec.rb
@@ -558,8 +558,8 @@ RSpec.describe Account, type: :model do
         expect(account).to model_have_error_on_field(:display_name)
       end
 
-      it 'is invalid if the note is longer than 160 characters' do
-        account = Fabricate.build(:account, note: Faker::Lorem.characters(161))
+      it 'is invalid if the note is longer than 500 characters' do
+        account = Fabricate.build(:account, note: Faker::Lorem.characters(501))
         account.valid?
         expect(account).to model_have_error_on_field(:note)
       end
@@ -598,8 +598,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