chore(rubocop): giganto rubocop commit.

muahahahah
This commit is contained in:
Joseph Mastey
2017-12-05 18:46:21 -06:00
parent 284cd8811c
commit 9902345291
120 changed files with 743 additions and 635 deletions
+17 -16
View File
@@ -1,34 +1,35 @@
require 'spec_helper'
# frozen_string_literal: true
require "spec_helper"
feature 'broken_auth' do
feature "broken_auth" do
before do
UserFixture.reset_all_users
@normal_user = UserFixture.normal_user
end
scenario "one\nTutorial: https://github.com/OWASP/railsgoat/wiki/A2-Credential-Enumeration" do
visit '/'
within('.signup') do
fill_in 'email', :with => @normal_user.email + 'not'
fill_in 'password', :with => @normal_user.clear_password
visit "/"
within(".signup") do
fill_in "email", with: @normal_user.email + "not"
fill_in "password", with: @normal_user.clear_password
end
within('.actions') do
click_on 'Login'
within(".actions") do
click_on "Login"
end
pending if verifying_fixed?
expect(find('div#flash_notice').text).to eq("#{@normal_user.email}not doesn't exist!")
expect(find("div#flash_notice").text).to eq("#{@normal_user.email}not doesn't exist!")
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'
within(".actions") do
click_on "Login"
end
pending if verifying_fixed?
expect(find('div#flash_notice').text).to eq('Incorrect Password!')
expect(find("div#flash_notice").text).to eq("Incorrect Password!")
end
end