mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
tag length to 25 chars
This commit is contained in:
parent
ba840423a6
commit
7499c29f6c
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
class Tag < Sequel::Model
|
||||
NAME_LENGTH_MAX = 20
|
||||
NAME_LENGTH_MAX = 25
|
||||
NAME_WORDS_MAX = 1
|
||||
many_to_many :sites
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ describe 'signup' do
|
|||
|
||||
it "fails for tag longer than #{Tag::NAME_LENGTH_MAX} characters" do
|
||||
fill_in_valid
|
||||
fill_in 'tags', with: 'helloiamareallylongtagfornoreason lolthisisridiculous'
|
||||
fill_in 'tags', with: SecureRandom.hex(Tag::NAME_LENGTH_MAX)
|
||||
click_button 'Create Home Page'
|
||||
page.must_have_content /cannot be longer than #{Tag::NAME_LENGTH_MAX}/
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue