From 4afc756ccdc506e0d16885aad2aacec2fd37a23c Mon Sep 17 00:00:00 2001 From: lp1 Date: Mon, 29 Oct 2018 11:02:46 +0100 Subject: [PATCH] Added spec for the new regex --- spec/shared_examples/target/platform/wordpress.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/shared_examples/target/platform/wordpress.rb b/spec/shared_examples/target/platform/wordpress.rb index 2ada2fea..6f2ca601 100644 --- a/spec/shared_examples/target/platform/wordpress.rb +++ b/spec/shared_examples/target/platform/wordpress.rb @@ -37,5 +37,11 @@ shared_examples WPScan::Target::Platform::WordPress do its(:wordpress_hosted?) { should be true } end + + context 'when the target host doesn\'t matches' do + let(:url) { 'http://ex-wordpress.com' } + + its(:wordpress_hosted?) { should be false } + end end end