Add some welcome entities on tenant signup (#266)

This commit is contained in:
Riccardo Graziosi
2024-01-24 18:37:54 +01:00
committed by GitHub
parent d80f63f27f
commit 30b7b0f5f4
13 changed files with 90 additions and 77 deletions

View File

@@ -15,11 +15,11 @@ RSpec.describe Post, type: :model do
expect(empty_post).to be_invalid
end
it 'has a title between 4 and 64 characters' do
it 'has a title between 4 and 128 characters' do
too_short_post = FactoryBot.build(:post, title: 'a' * 3)
short_post = FactoryBot.build(:post, title: 'a' * 4)
long_post = FactoryBot.build(:post, title: 'a' * 64)
too_long_post = FactoryBot.build(:post, title: 'a' * 65)
long_post = FactoryBot.build(:post, title: 'a' * 128)
too_long_post = FactoryBot.build(:post, title: 'a' * 129)
expect(too_short_post).to be_invalid
expect(short_post).to be_valid