WpVersion::Findable specs

This commit is contained in:
erwanlr
2013-03-28 20:48:19 +01:00
parent a7bd5044c4
commit 565bfceb49
97 changed files with 456 additions and 18105 deletions

View File

@@ -86,9 +86,11 @@ class WpTarget < WebSite
WpTheme.find(@uri)
end
# return WpVersion
def version
WpVersion.find(@uri, wp_content_dir, wp_plugins_dir)
# @param [ String ] versions_xml
#
# @return [ WpVersion ]
def version(versions_xml)
WpVersion.find(@uri, wp_content_dir, wp_plugins_dir, versions_xml)
end
def has_plugin?(name, version = nil)