fixes for tags

This commit is contained in:
Kyle Drake 2014-06-18 13:15:01 -07:00
parent c3da5cc262
commit 70a58176fa
4 changed files with 31 additions and 2 deletions

View file

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