mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
check more than two word tag checking
This commit is contained in:
parent
e0efe996b0
commit
f3c2a81e0c
1 changed files with 7 additions and 0 deletions
|
@ -106,6 +106,13 @@ describe 'signup' do
|
|||
page.must_have_content /Tag.+cannot have more than one space/
|
||||
end
|
||||
|
||||
it 'fails for tag with too many words' do
|
||||
fill_in_valid
|
||||
fill_in 'tags', with: 'police officer club'
|
||||
click_button 'Create Home Page'
|
||||
page.must_have_content /Tag.+cannot be more than two words/
|
||||
end
|
||||
|
||||
it 'succeeds with no tags' do
|
||||
fill_in_valid
|
||||
fill_in 'tags', with: ''
|
||||
|
|
Loading…
Add table
Reference in a new issue