Sha256: 7ceee32e416415835ea78218672c3fe8e2262cd6f76afe8b4f61b8b4aa0a8923

Contents?: true

Size: 1.56 KB

Versions: 5

Compression:

Stored size: 1.56 KB

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'check'

    def self.platforms
        [:php, :asp, :java]
    end

    def self.elements
        [ Element::Form, Element::Link, Element::Cookie, Element::NestedCookie,
          Element::Header, Element::LinkTemplate, Element::JSON, Element::XML ]
    end

    def issue_count_per_element_per_platform
        {
            php:    {
                Element::Form         => 12,
                Element::Link         => 12,
                Element::Cookie       => 3,
                Element::Header       => 4,
                Element::LinkTemplate => 10,
                Element::JSON         => 6,
                Element::XML          => 8,
                Element::NestedCookie => 8
            },
            asp: {
                Element::Form         => 12,
                Element::Link         => 12,
                Element::Cookie       => 3,
                Element::Header       => 4,
                Element::LinkTemplate => 10,
                Element::JSON         => 6,
                Element::XML          => 8,
                Element::NestedCookie => 8
            },
            java:    {
                Element::Form         => 12,
                Element::Link         => 12,
                Element::Cookie       => 4,
                Element::Header       => 4,
                Element::LinkTemplate => 10,
                Element::JSON         => 6,
                Element::XML          => 8,
                Element::NestedCookie => 8
            }
        }
    end

    easy_test
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 spec/components/checks/active/source_code_disclosure_spec.rb
arachni-1.6.1.2 spec/components/checks/active/source_code_disclosure_spec.rb
arachni-1.6.1.1 spec/components/checks/active/source_code_disclosure_spec.rb
arachni-1.6.1 spec/components/checks/active/source_code_disclosure_spec.rb
arachni-1.6.0 spec/components/checks/active/source_code_disclosure_spec.rb