chore(rubocop): giganto rubocop commit.
muahahahah
This commit is contained in:
@@ -1,22 +1,23 @@
|
||||
require 'spec_helper'
|
||||
# frozen_string_literal: true
|
||||
require "spec_helper"
|
||||
|
||||
feature 'password complexity' do
|
||||
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'
|
||||
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'
|
||||
click_on "Submit"
|
||||
pending if verifying_fixed?
|
||||
expect(current_path).to eq('/dashboard/home')
|
||||
expect(current_path).to eq("/dashboard/home")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user