From 706774bf611d936a20c71d2567cc7eed79c39a6a Mon Sep 17 00:00:00 2001 From: FireFart Date: Tue, 22 Oct 2013 22:39:23 +0200 Subject: [PATCH] Add detection for all-in-one-seo-pack Closes issue #332 --- .../collections/wp_plugins/detectable.rb | 4 +++ .../collections/wp_plugins/detectable_spec.rb | 36 ++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/lib/common/collections/wp_plugins/detectable.rb b/lib/common/collections/wp_plugins/detectable.rb index 1c8a5df2..5a3e0ef9 100644 --- a/lib/common/collections/wp_plugins/detectable.rb +++ b/lib/common/collections/wp_plugins/detectable.rb @@ -64,6 +64,10 @@ class WpPlugins < WpItems wp_plugins.add('wp-super-cache') if body =~ /wp-super-cache/i wp_plugins.add('w3-total-cache') if body =~ /w3 total cache/i + if body =~ /' + expected.add('all-in-one-seo-pack', version: '2.0.3.1') + end + end + end end describe '::passive_detection' do