Sha256: be700a6fff410179fef11c7e2d52e3916bfe6357e0a85722173f2b5343b59f24
Contents?: true
Size: 623 Bytes
Versions: 6
Compression:
Stored size: 623 Bytes
Contents
require 'spec_helper' describe CMSScanner::Vulnerability do subject(:vuln) { described_class.new(title) } let(:title) { 'Test Vuln' } describe '#new' do its(:title) { should eql title } its(:references) { should eql({}) } its(:type) { should eql nil } its(:fixed_in) { should eql nil } end describe '#==' do context 'when te same vuln' do it 'returns true' do expect(vuln).to eq vuln.dup end end context 'when not equal' do it 'returns false' do expect(vuln).to_not eq described_class.new('not eq') end end end end
Version data entries
6 entries across 6 versions & 1 rubygems