Rspec 3.0 support

This commit is contained in:
erwanlr
2014-06-02 22:06:49 +02:00
parent c12b1d0670
commit c8c126d444
55 changed files with 338 additions and 336 deletions

View File

@@ -3,7 +3,7 @@
shared_examples 'WpPlugin::Vulnerable' do
describe '#vulns_file' do
after { subject.vulns_file.should == @expected }
after { expect(subject.vulns_file).to eq @expected }
context 'when :vulns_file is no set' do
it 'returns the default one' do
@@ -20,7 +20,7 @@ shared_examples 'WpPlugin::Vulnerable' do
end
describe '#vulns_xpath' do
its(:vulns_xpath) { should == "//plugin[@name='plugin-name']/vulnerability" }
its(:vulns_xpath) { is_expected.to eq "//plugin[@name='plugin-name']/vulnerability" }
end
end