mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 17:18:02 +02:00
fixes for tags
This commit is contained in:
parent
c3da5cc262
commit
70a58176fa
4 changed files with 31 additions and 2 deletions
|
@ -127,6 +127,16 @@ describe 'signup' do
|
|||
page.must_have_content /Cannot have more than \d tags for your site/
|
||||
end
|
||||
|
||||
it 'does not duplicate tags' do
|
||||
fill_in_valid
|
||||
fill_in 'tags', with: 'one, one'
|
||||
click_button 'Create Home Page'
|
||||
|
||||
site = Site.last
|
||||
site.tags.length.must_equal 1
|
||||
site.tags.first.name.must_equal 'one'
|
||||
end
|
||||
|
||||
it 'succeeds with no tags' do
|
||||
fill_in_valid
|
||||
fill_in 'tags', with: ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue