please robot overlords, plus verbiage change

This commit is contained in:
Joseph Mastey
2017-12-13 08:37:23 -06:00
parent 89ce39ae53
commit 33d2c46df5
4 changed files with 19 additions and 19 deletions
+10 -10
View File
@@ -13,28 +13,28 @@ feature "broken_auth" do
scenario "one\nTutorial: https://github.com/OWASP/railsgoat/wiki/A2-Credential-Enumeration" do
wrong_email = normal_user.email + "not"
visit '/'
within('.signup') do
fill_in 'email', with: wrong_email
fill_in 'password', with: normal_user.clear_password
visit "/"
within(".signup") do
fill_in "email", with: wrong_email
fill_in "password", with: normal_user.clear_password
end
within(".actions") do
click_on "Login"
end
expect(find('div#flash_notice').text).not_to include(wrong_email)
expect(find("div#flash_notice").text).not_to include(wrong_email)
end
scenario "two\nTutorial: https://github.com/OWASP/railsgoat/wiki/A2-Credential-Enumeration" do
visit '/'
within('.signup') do
fill_in 'email', with: normal_user.email
fill_in 'password', with: normal_user.clear_password + 'not'
visit "/"
within(".signup") do
fill_in "email", with: normal_user.email
fill_in "password", with: normal_user.clear_password + "not"
end
within(".actions") do
click_on "Login"
end
expect(find('div#flash_notice').text).not_to include('Incorrect Password!')
expect(find("div#flash_notice").text).not_to include("Incorrect Password!")
end
end