tag length to 25 chars

This commit is contained in:
Kyle Drake 2014-07-21 15:29:26 -05:00
parent ba840423a6
commit 7499c29f6c
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
class Tag < Sequel::Model
NAME_LENGTH_MAX = 20
NAME_LENGTH_MAX = 25
NAME_WORDS_MAX = 1
many_to_many :sites

View file

@ -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