Sha256: 2f8975e0e3cbecc386e101da17a2c4bdae0599798f9269589a254998e8b7ef0d

Contents?: true

Size: 688 Bytes

Versions: 1

Compression:

Stored size: 688 Bytes

Contents

require_relative '../spec_helper'

describe name_from_filename do
    include_examples 'plugin'

    before ( :all ) do
        options.do_not_crawl
        options.url = url
        options.audit :links
        framework.modules.load :xss
    end

    it 'logs safe and vuln URLs accordingly' do
        afr = spec_path + '/fixtures/rescan.afr.tpl'
        updated = spec_path + '/fixtures/rescan.afr'

        yaml_load( IO.read( afr ) ).save( updated )
        options.plugins[name_from_filename] = { 'afr' => updated }

        run
        framework.modules.issues.should be_any
        framework.modules.issues.first.var.should == 'input'

        File.delete( updated )
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
arachni-0.4.2 spec/plugins/rescan_spec.rb