-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,27 +32,25 @@ | |
expect(page).to have_content('I told you kids to get out of here!') | ||
end | ||
|
||
# it 'should redirect the user to their finish page after sign up' do | ||
# visit new_user_registration_path | ||
# fill_in :user_display_name, with: 'Rick' | ||
# fill_in :user_password, with: 'password123' | ||
# fill_in :user_email, with: '[email protected]' | ||
# check :user_agree | ||
# click_button 'Create account' | ||
# expect(page).to have_content("Welcome Rick") | ||
# end | ||
|
||
# it 'should redirect the user to the page they were viewing after sign up' do | ||
# visit "/guides/new" | ||
# see ("You need to sign in or sign up before continuing.") | ||
# click_link "Sign up" | ||
# fill_in :user_display_name, with: 'Rick' | ||
# fill_in :user_password, with: 'password123' | ||
# fill_in :user_email, with: '[email protected]' | ||
# check :user_agree | ||
# click_button 'Create account' | ||
# expect(page).to have_content(I18n::t('guides.new.new_guide_steps.create_a_growing_guide')) | ||
# end | ||
it 'should redirect the user to their finish page after sign up' do | ||
visit new_user_registration_path | ||
fill_in :user_display_name, with: 'Rick' | ||
fill_in :user_password, with: 'password123' | ||
fill_in :user_email, with: '[email protected]' | ||
click_button 'Join OpenFarm' | ||
expect(page).to have_content('Thanks for joining!') | ||
end | ||
|
||
it 'should redirect the user to the page they were viewing after sign up' do | ||
visit "/guides/new" | ||
see ("You need to sign in or sign up before continuing.") | ||
page.first(:link, 'Become a Member').click | ||
fill_in :user_display_name, with: 'Rick' | ||
fill_in :user_password, with: 'password123' | ||
fill_in :user_email, with: '[email protected]' | ||
click_button 'Join OpenFarm' | ||
expect(page).to have_content(I18n::t('guides.new.new_guide_steps.create_a_growing_guide')) | ||
end | ||
|
||
it 'should create a new garden for a newly registered user' do | ||
usr = sign_up_procedure | ||
|