This commit is contained in:
erwanlr
2021-04-26 17:48:25 +02:00
parent d0ce7cb5c5
commit 2b46ecb3c9
6 changed files with 11 additions and 36 deletions

View File

@@ -21,9 +21,7 @@ describe WPScan::Controller::Aliases do
describe 'parsed_options' do
context 'when no --stealthy supplied' do
it 'contains the correct options' do
expect(WPScan::ParsedCli.options).to include(
detection_mode: :mixed, plugins_version_detection: :mixed
)
expect(WPScan::ParsedCli.options).to include(detection_mode: :mixed)
end
end
@@ -31,9 +29,7 @@ describe WPScan::Controller::Aliases do
let(:cli_args) { "#{super()} --stealthy" }
it 'contains the correct options' do
expect(WPScan::ParsedCli.options).to include(
random_user_agent: true, detection_mode: :passive, plugins_version_detection: :passive
)
expect(WPScan::ParsedCli.options).to include(random_user_agent: true, detection_mode: :passive)
end
end
end