mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix acceptance tests
This commit is contained in:
parent
66e6a3d38c
commit
138725d00b
1 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ describe 'signup' do
|
||||||
it 'succeeds with valid data' do
|
it 'succeeds with valid data' do
|
||||||
fill_in_valid
|
fill_in_valid
|
||||||
click_button 'Create Home Page'
|
click_button 'Create Home Page'
|
||||||
page.must_have_content 'Your Website'
|
page.must_have_content 'My Website'
|
||||||
assert_equal(
|
assert_equal(
|
||||||
true,
|
true,
|
||||||
File.exist?(File.join(Site::SITE_FILES_ROOT, @site[:username], 'index.html'))
|
File.exist?(File.join(Site::SITE_FILES_ROOT, @site[:username], 'index.html'))
|
||||||
|
@ -48,7 +48,7 @@ describe 'signup' do
|
||||||
it 'fails to create for existing site' do
|
it 'fails to create for existing site' do
|
||||||
fill_in_valid
|
fill_in_valid
|
||||||
click_button 'Create Home Page'
|
click_button 'Create Home Page'
|
||||||
page.must_have_content 'Your Website'
|
page.must_have_content 'My Website'
|
||||||
Capybara.reset_sessions!
|
Capybara.reset_sessions!
|
||||||
visit_signup
|
visit_signup
|
||||||
fill_in 'username', with: @site[:username]
|
fill_in 'username', with: @site[:username]
|
||||||
|
@ -138,6 +138,6 @@ describe 'signin' do
|
||||||
fill_in 'username', with: site[:username]
|
fill_in 'username', with: site[:username]
|
||||||
fill_in 'password', with: site[:password]
|
fill_in 'password', with: site[:password]
|
||||||
click_button 'Sign in'
|
click_button 'Sign in'
|
||||||
page.must_have_content 'Your Website'
|
page.must_have_content 'My Website'
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Add table
Reference in a new issue