23 lines
736 B
Ruby
23 lines
736 B
Ruby
require 'spec_helper'
|
|
|
|
feature 'password complexity' do
|
|
before do
|
|
UserFixture.reset_all_users
|
|
@normal_user = UserFixture.normal_user
|
|
end
|
|
|
|
scenario "one\nTutorial: https://github.com/OWASP/railsgoat/wiki/A2-Lack-of-Password-Complexity" do
|
|
visit '/signup'
|
|
within('.signup') do
|
|
fill_in 'user_email', :with => @normal_user.email + 'not'
|
|
fill_in 'user_first_name', :with => @normal_user.first_name
|
|
fill_in 'user_last_name', :with => @normal_user.last_name + 'not'
|
|
fill_in 'user_password', :with => 'password'
|
|
fill_in 'user_password_confirmation', :with => 'password'
|
|
end
|
|
click_on 'Submit'
|
|
pending if verifying_fixed?
|
|
expect(current_path).to eq('/dashboard/home')
|
|
end
|
|
end
|