Improves detection of WP Version, Plugins etc by checking 404

This commit is contained in:
erwanlr
2019-10-31 19:56:05 +00:00
parent 85aa9f61cd
commit 6b5e016770
44 changed files with 456 additions and 146 deletions

View File

@@ -1,8 +1,8 @@
# frozen_string_literal: true
shared_examples 'App::Finders::WpItems::URLsInHomepage' do
shared_examples 'App::Finders::WpItems::UrlsInPage' do
before do
stub_request(:get, finder.target.url).to_return(body: File.read(fixtures.join(file)))
stub_request(:get, page_url).to_return(body: File.read(fixtures.join(file)))
end
describe '#items_from_links' do