mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add some welcome entities on tenant signup (#266)
This commit is contained in:
committed by
GitHub
parent
d80f63f27f
commit
30b7b0f5f4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user