Rspec 3.0 support
This commit is contained in:
@@ -7,7 +7,7 @@ shared_examples 'WpTarget::Malwares' do
|
||||
|
||||
describe '#malwares_file' do
|
||||
it "returns the correct file path" do
|
||||
WpTarget::Malwares.malwares_file(malwares_file).should === malwares_file
|
||||
expect(WpTarget::Malwares.malwares_file(malwares_file)).to be === malwares_file
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,8 +19,8 @@ shared_examples 'WpTarget::Malwares' do
|
||||
|
||||
malwares = wp_target.malwares(@malwares_file_path)
|
||||
|
||||
malwares.sort.should === @expected.sort
|
||||
wp_target.has_malwares?.should === (@expected.empty? ? false : true)
|
||||
expect(malwares.sort).to be === @expected.sort
|
||||
expect(wp_target.has_malwares?).to be === (@expected.empty? ? false : true)
|
||||
end
|
||||
|
||||
it 'returns an empty array on a 404' do
|
||||
|
||||
Reference in New Issue
Block a user