HELLO v3!!!
This commit is contained in:
32
spec/app/finders/users/login_error_messages_spec.rb
Normal file
32
spec/app/finders/users/login_error_messages_spec.rb
Normal file
@@ -0,0 +1,32 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe WPScan::Finders::Users::LoginErrorMessages do
|
||||
subject(:finder) { described_class.new(target) }
|
||||
let(:target) { WPScan::Target.new(url) }
|
||||
let(:url) { 'http://wp.lab/' }
|
||||
let(:fixtures) { File.join(FINDERS_FIXTURES, 'users', 'login_error_messages') }
|
||||
|
||||
describe '#aggressive' do
|
||||
xit
|
||||
end
|
||||
|
||||
describe '#usernames' do
|
||||
let(:opts) { { found: [] } }
|
||||
|
||||
after { expect(subject.usernames(opts)).to eql @expected }
|
||||
|
||||
context 'when no :list provided' do
|
||||
it 'returns an empty list' do
|
||||
@expected = []
|
||||
end
|
||||
end
|
||||
|
||||
context 'when :list provided' do
|
||||
let(:opts) { super().merge(list: %w[u1 u2]) }
|
||||
|
||||
it 'returns the expected array' do
|
||||
@expected = opts[:list]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user