Sha256: d8139897a1530002da4103f1d6e721de134f6eb06f7beedf7b3d8910a58e4b62

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 KB

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'check'

    def self.platforms
        [:unix, :bsd, :aix, :windows]
    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
        h = {}
        [:unix, :bsd, :aix].each do |platform|
            h[platform] = {
                Element::Form         => 19,
                Element::Link         => 11,
                Element::Cookie       => 11,
                Element::Header       => 8,
                Element::LinkTemplate => 20,
                Element::JSON         => 11,
                Element::XML          => 22,
                Element::NestedCookie => 16
            }
        end

        h[:windows] = {
            Element::Form         => 22,
            Element::Link         => 22,
            Element::Cookie       => 22,
            Element::Header       => 16,
            Element::LinkTemplate => 44,
            Element::JSON         => 22,
            Element::XML          => 44,
            Element::NestedCookie => 32
        }

        h
    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/os_cmd_injection_spec.rb
arachni-1.6.1.2 spec/components/checks/active/os_cmd_injection_spec.rb
arachni-1.6.1.1 spec/components/checks/active/os_cmd_injection_spec.rb
arachni-1.6.1 spec/components/checks/active/os_cmd_injection_spec.rb
arachni-1.6.0 spec/components/checks/active/os_cmd_injection_spec.rb