mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Remove unneccessary test
This commit is contained in:
parent
8875d75a9f
commit
86df307d5f
1 changed files with 1 additions and 9 deletions
|
@ -24,7 +24,7 @@ describe 'signup' do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'fails for unwhitelisted tag' do
|
it 'fails for unwhitelisted tag' do
|
||||||
@site = Fabricate.attributes_for(:site)
|
@site = Fabricate.attributes_for :site
|
||||||
@class_tag = "mrteacher" # SecureRandom.uuid.gsub('-', '')[0..Tag::NAME_LENGTH_MAX-1]
|
@class_tag = "mrteacher" # SecureRandom.uuid.gsub('-', '')[0..Tag::NAME_LENGTH_MAX-1]
|
||||||
fill_in 'username', with: @site[:username]
|
fill_in 'username', with: @site[:username]
|
||||||
fill_in 'password', with: @site[:password]
|
fill_in 'password', with: @site[:password]
|
||||||
|
@ -51,14 +51,6 @@ describe 'signup' do
|
||||||
site.tags.first.name.must_equal @class_tag
|
site.tags.first.name.must_equal @class_tag
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'fails to create for existing site' do
|
|
||||||
@existing_site = Fabricate :site
|
|
||||||
fill_in_valid
|
|
||||||
fill_in :username, with: @existing_site.username
|
|
||||||
click_button 'Create My Site'
|
|
||||||
page.must_have_content 'already taken'
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'fails for multiple tags' do
|
it 'fails for multiple tags' do
|
||||||
fill_in_valid
|
fill_in_valid
|
||||||
fill_in :new_tags_string, with: 'derp, ie'
|
fill_in :new_tags_string, with: 'derp, ie'
|
||||||
|
|
Loading…
Add table
Reference in a new issue