Sha256: 9eee1869523fb2f026bf70821d634845f2da2c94defe3115978000fff8080543

Contents?: true

Size: 974 Bytes

Versions: 10

Compression:

Stored size: 974 Bytes

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'plugin'

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

    def results
        <<YAML
---
map:
- without_issues: __URL__
- without_issues: __URL__safe
- with_issues: __URL__vuln
total: 3
without_issues: 2
with_issues: 1
issue_percentage: 33
YAML
    end

    it 'logs URLs with and without issues accordingly' do
        run

        results     = actual_results
        exp_results = expected_results

        actual_map   = results.delete( 'map' )
        expected_map = exp_results.delete( 'map' )

        actual_map.select { |k, v| k == 'without_issues' }.should be_eql expected_map.select { |k, v| k == 'without_issues' }
        actual_map.select { |k, v| k == 'with_issues' }.should be_eql expected_map.select { |k, v| k == 'with_issues' }

        results.should be_eql exp_results
    end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
arachni-1.2.1 spec/components/plugins/healthmap_spec.rb
arachni-1.2 spec/components/plugins/healthmap_spec.rb
arachni-1.1 spec/components/plugins/healthmap_spec.rb
arachni-1.0.6 spec/components/plugins/healthmap_spec.rb
arachni-1.0.5 spec/components/plugins/healthmap_spec.rb
arachni-1.0.4 spec/components/plugins/healthmap_spec.rb
arachni-1.0.3 spec/components/plugins/healthmap_spec.rb
arachni-1.0.2 spec/components/plugins/healthmap_spec.rb
arachni-1.0.1 spec/components/plugins/healthmap_spec.rb
arachni-1.0 spec/components/plugins/healthmap_spec.rb