Updates rubocop dep

This commit is contained in:
erwanlr
2021-01-29 11:56:04 +01:00
parent f30255d6d8
commit fa3005f2b7
9 changed files with 11 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ describe WPScan::Controller::VulnApi do
before do
WPScan::ParsedCli.options = rspec_parsed_options(cli_args)
WPScan::DB::VulnApi.instance_variable_set(:'@default_request_params', nil)
WPScan::DB::VulnApi.instance_variable_set(:@default_request_params, nil)
end
describe '#cli_options' do

View File

@@ -172,7 +172,7 @@ describe WPScan::Model::Plugin do
after do
expect(plugin.vulnerabilities).to eq @expected
expect(plugin.vulnerable?).to eql @expected.empty? ? false : true
expect(plugin.vulnerable?).to eql !@expected.empty?
end
context 'when plugin not in the DB' do

View File

@@ -200,7 +200,7 @@ describe WPScan::Model::Theme do
after do
expect(theme.vulnerabilities).to eq @expected
expect(theme.vulnerable?).to eql @expected.empty? ? false : true
expect(theme.vulnerable?).to eql !@expected.empty?
end
context 'when theme not in the DB' do