-
Notifications
You must be signed in to change notification settings - Fork 16
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
5 changed files
with
8 additions
and
48 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
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
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
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
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 |
---|---|---|
|
@@ -15,28 +15,6 @@ | |
visit after_signup_edit_profile_path | ||
end | ||
|
||
context "when first_name, email & password are given " do | ||
given!(:user) { FactoryGirl.create(:user, | ||
first_name: 'horst', | ||
email: '[email protected]', | ||
password: 'password', | ||
password_confirmation: 'password', | ||
confirmed_at: '10.10.1999', | ||
osm_id: 174 | ||
)} | ||
|
||
# additional test | ||
scenario "I want to finalize my signup and click on button without changing the email" do | ||
within("#user_email_input") do | ||
fill_in "user_email", with: "" | ||
end | ||
click_button 'Fertigstellen' | ||
pending("Bug: 'Du bekommst in wenigen Minuten eine E-Mail mit einem Link' instead of 'Email muss ausgefüllt werden'") | ||
fail | ||
expect { raise StandardError, 'Email muss ausgefüllt werden' }.to raise_error('Email muss ausgefüllt werden') | ||
end | ||
end | ||
|
||
context "when first_name & email are given" do | ||
given!(:user) { FactoryGirl.create(:user, | ||
first_name: 'horst2', | ||
|
@@ -47,14 +25,13 @@ | |
osm_id: 174 | ||
)} | ||
|
||
# Scenario: I set my password after signup | ||
scenario "I set my password" do | ||
# additional test | ||
scenario "I want to finalize my signup and click on button without changing the email" do | ||
within("#user_email_input") do | ||
fill_in "user_email", with: "" | ||
fill_in "user_email", with: "" | ||
end | ||
click_button 'Fertigstellen' | ||
skip("Bug: No password setting possible on after signup edit page. Needs correction!") | ||
fail | ||
expect(page.current_path).to eq(root_path) | ||
end | ||
|
||
# Scenario: I set my email after signup with existing password | ||
|
@@ -90,16 +67,4 @@ | |
end | ||
end | ||
end | ||
|
||
describe "is not logged in" do | ||
scenario "I set my email after signup without any prior password" do | ||
pending("BUG: This test case needs a revision since '/users/password/new' is not used anymore") | ||
expect(current_path).to eq(new_user_password_path) | ||
# When I am on the new user password page | ||
# When I fill in "E-Mail" with "[email protected]" | ||
# And I press "Passwort neu setzen" | ||
# And PENDING: make cached flash testable | ||
# And I should see "Du bekommst in wenigen Minuten eine E-Mail mit Informationen wie du dein Passwort neu setzen kannst." | ||
end | ||
end | ||
end |