This commit is contained in:
erwanlr
2018-12-13 22:11:37 +00:00
parent 46a00cc864
commit dec73c21b6
2 changed files with 14 additions and 2 deletions

View File

@@ -91,11 +91,23 @@ describe WPScan::WpVersion do
subject(:version) { described_class.new('3.8.1') }
its(:release_date) { should eql '2014-01-23' }
context 'when the version is not in the DB' do
subject(:version) { described_class.new('3.8.2') }
its(:release_date) { should eql 'Unknown' }
end
end
describe '#status' do
subject(:version) { described_class.new('3.8.1') }
its(:status) { should eql 'outdated' }
context 'when the version is not in the DB' do
subject(:version) { described_class.new('3.8.2') }
its(:release_date) { should eql 'Unknown' }
end
end
end