Sha256: a0f6c15e85af6ab34a6cd4a7464f905d140f3450daa1a9c9cedadd8fde073138

Contents?: true

Size: 1.13 KB

Versions: 6

Compression:

Stored size: 1.13 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::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         => 11,
                Element::Link         => 11,
                Element::Cookie       => 11,
                Element::Header       => 8,
                Element::LinkTemplate => 10,
                Element::JSON         => 11,
                Element::XML          => 22
            }
        end

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

        h
    end

    easy_test
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 spec/components/checks/active/os_cmd_injection_spec.rb
arachni-1.3.1 spec/components/checks/active/os_cmd_injection_spec.rb
arachni-1.3 spec/components/checks/active/os_cmd_injection_spec.rb
arachni-1.2.1 spec/components/checks/active/os_cmd_injection_spec.rb
arachni-1.2 spec/components/checks/active/os_cmd_injection_spec.rb
arachni-1.1 spec/components/checks/active/os_cmd_injection_spec.rb