Fixes travis failure
This commit is contained in:
@@ -6,7 +6,7 @@ shared_examples 'WpTarget::Malwares' do
|
||||
let(:malwares_file) { fixtures_dir + '/malwares.txt' }
|
||||
|
||||
describe '#malwares_file' do
|
||||
it "returns the correct file path" do
|
||||
it 'returns the correct file path' do
|
||||
expect(WpTarget::Malwares.malwares_file(malwares_file)).to be === malwares_file
|
||||
end
|
||||
end
|
||||
@@ -14,10 +14,12 @@ shared_examples 'WpTarget::Malwares' do
|
||||
describe '#malwares & #has_malwares' do
|
||||
after :each do
|
||||
if @fixture
|
||||
stub_request_to_fixture(url: wp_target.url, fixture: File.new(fixtures_dir + @fixture))
|
||||
stub_request_to_fixture(
|
||||
url: wp_target.url, fixture: File.new(File.join(fixtures_dir, @fixture))
|
||||
)
|
||||
end
|
||||
|
||||
malwares = wp_target.malwares(@malwares_file_path)
|
||||
malwares = wp_target.malwares(malwares_file)
|
||||
|
||||
expect(malwares.sort).to be === @expected.sort
|
||||
expect(wp_target.has_malwares?).to be === (@expected.empty? ? false : true)
|
||||
|
||||
Reference in New Issue
Block a user