This commit is contained in:
Christian Mehlmauer
2016-10-06 20:35:29 +02:00
parent a007d283e5
commit 89e2088357
8 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/wpscan_helper')
require File.expand_path(File.join(__dir__, 'wpscan_helper'))
describe WpTarget do
subject(:wp_target) { WpTarget.new(target_url, options) }

View File

@@ -1,6 +1,6 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/wpscan_helper')
require File.expand_path(File.join(__dir__, 'wpscan_helper'))
describe 'WpscanOptions' do

View File

@@ -7,7 +7,7 @@ require 'simplecov' if RUBY_VERSION >= '1.9'
RSpec::Expectations.configuration.warn_about_potential_false_positives = false
require File.expand_path(File.dirname(__FILE__) + '/../lib/common/common_helper')
require File.expand_path(File.join(__dir__, '..', 'lib', 'common', 'common_helper'))
SPEC_DIR = ROOT_DIR + '/spec'
SPEC_LIB_DIR = SPEC_DIR + '/lib'