27 lines
555 B
Ruby
27 lines
555 B
Ruby
# encoding: UTF-8
|
|
|
|
shared_examples 'WpVersion::Vulnerable' do
|
|
|
|
describe '#vulns_file' do
|
|
after { expect(subject.vulns_file).to eq @expected }
|
|
|
|
context 'when :vulns_file is no set' do
|
|
it 'returns the default one' do
|
|
@expected = WP_VULNS_FILE
|
|
end
|
|
end
|
|
|
|
context 'when the :vulns_file is already set' do
|
|
it 'returns it' do
|
|
@expected = 'test.json'
|
|
subject.vulns_file = @expected
|
|
end
|
|
end
|
|
end
|
|
|
|
describe '#identifier' do
|
|
its(:identifier) { is_expected.to eq '1.2' }
|
|
end
|
|
|
|
end
|