23 lines
657 B
Ruby
23 lines
657 B
Ruby
# frozen_string_literal: true
|
|
|
|
describe WPScan::Finders::Themes::UrlsInHomepage do
|
|
subject(:finder) { described_class.new(target) }
|
|
let(:target) { WPScan::Target.new(url) }
|
|
let(:url) { 'http://wp.lab/' }
|
|
let(:fixtures) { FINDERS_FIXTURES.join('themes', 'urls_in_homepage') }
|
|
|
|
# before { target.scope << 'sub.lab' }
|
|
|
|
it_behaves_like 'App::Finders::WpItems::URLsInHomepage' do
|
|
let(:type) { 'themes' }
|
|
let(:uniq_links) { true }
|
|
let(:uniq_codes) { true }
|
|
let(:expected_from_links) { %w[dl-1] }
|
|
let(:expected_from_codes) { %w[dc-1] }
|
|
end
|
|
|
|
describe '#passive' do
|
|
xit
|
|
end
|
|
end
|