More rubocop fixes

This commit is contained in:
erwanlr
2020-08-06 12:47:00 +02:00
parent 557dee2d8c
commit 3039d2e7eb
8 changed files with 9 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ describe WPScan::DB::DynamicFinders::Plugin do
context 'when aggressive argument is true' do
it 'returns only the configs with a path parameter' do
configs = subject.finder_configs(:Xpath, true)
configs = subject.finder_configs(:Xpath, aggressive: true)
expect(configs.keys).to include('revslider')
expect(configs.keys).to_not include('shareaholic')

View File

@@ -20,7 +20,7 @@ shared_examples 'App::Finders::WpItems::UrlsInPage' do
let(:fixture) { 'found.html' }
it 'returns the expected array' do
expect(finder.items_from_links(type, uniq_links)).to eql expected_from_links
expect(finder.items_from_links(type, uniq: uniq_links)).to eql expected_from_links
end
end
@@ -52,7 +52,7 @@ shared_examples 'App::Finders::WpItems::UrlsInPage' do
let(:fixture) { 'found.html' }
it 'returns the expected array' do
expect(finder.items_from_codes(type, uniq_codes)).to eql expected_from_codes
expect(finder.items_from_codes(type, uniq: uniq_codes)).to eql expected_from_codes
end
end
end