mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix test for signup
This commit is contained in:
parent
321f8c6e29
commit
833030cff8
1 changed files with 2 additions and 2 deletions
|
@ -45,12 +45,12 @@ describe 'signup' do
|
||||||
click_signup_button
|
click_signup_button
|
||||||
site_created?
|
site_created?
|
||||||
click_link 'Continue'
|
click_link 'Continue'
|
||||||
|
_(current_path).must_equal "/site/#{@site[:username]}/confirm_email"
|
||||||
_(page).must_have_content /almost ready!/
|
_(page).must_have_content /almost ready!/
|
||||||
fill_in 'token', with: Site[username: @site[:username]].email_confirmation_token
|
fill_in 'token', with: Site[username: @site[:username]].email_confirmation_token
|
||||||
click_button 'Confirm Email'
|
click_button 'Confirm Email'
|
||||||
_(current_path).must_equal '/tutorial'
|
|
||||||
_(page).must_have_content /Let's Get Started/
|
_(page).must_have_content /Let's Get Started/
|
||||||
|
_(current_path).must_equal '/tutorial'
|
||||||
index_file_path = File.join Site::SITE_FILES_ROOT, Site.sharding_dir(@site[:username]), @site[:username], 'index.html'
|
index_file_path = File.join Site::SITE_FILES_ROOT, Site.sharding_dir(@site[:username]), @site[:username], 'index.html'
|
||||||
_(File.exist?(index_file_path)).must_equal true
|
_(File.exist?(index_file_path)).must_equal true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue