More rspec tests fixed
This commit is contained in:
@@ -30,10 +30,11 @@ SPEC_FIXTURES_WPSCAN_WP_VERSION_DIR = SPEC_FIXTURES_WPSCAN_DIR + '/wp_version'
|
||||
|
||||
class WpScanModuleSpec
|
||||
attr_reader :uri
|
||||
attr_accessor :error_404_hash
|
||||
attr_accessor :error_404_hash, :wp_content_dir
|
||||
|
||||
def initialize(target_url)
|
||||
def initialize(target_url, wp_content_dir = "wp-content")
|
||||
@uri = URI.parse(add_http_protocol(target_url))
|
||||
@wp_content_dir = wp_content_dir
|
||||
Browser.instance(
|
||||
:config_file => SPEC_FIXTURES_CONF_DIR + '/browser/browser.conf.json',
|
||||
:cache_timeout => 0
|
||||
|
||||
Reference in New Issue
Block a user