Sha256: 0beb9c9c2f515a3c14e3b89cafdc38c464e3cd9ad5d41e6e61a57b611c3fd406
Contents?: true
Size: 739 Bytes
Versions: 5
Compression:
Stored size: 739 Bytes
Contents
require 'spec_helper' describe CMSScanner::Target do subject(:target) { described_class.new(url) } let(:url) { 'http://e.org' } describe '#interesting_files' do before do expect(CMSScanner::Finders::InterestingFiles).to receive(:find).and_return(stubbed) end context 'when no findings' do let(:stubbed) { [] } its(:interesting_files) { should eq stubbed } end context 'when findings' do let(:stubbed) { ['yolo'] } it 'allows findings to be added with <<' do expect(target.interesting_files).to eq stubbed target.interesting_files << 'other-finding' expect(target.interesting_files).to eq(stubbed << 'other-finding') end end end end
Version data entries
5 entries across 5 versions & 1 rubygems