Sha256: dc0d58798de0fd116ed8921096629609334a55a216479cd18aa624e31c3106e6

Contents?: true

Size: 1.43 KB

Versions: 5

Compression:

Stored size: 1.43 KB

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'check'

    def self.platforms
        [:unix, :windows, :java]
    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
        {
            unix:    {
                Element::Form         => 112,
                Element::Link         => 112,
                Element::Cookie       => 112,
                Element::Header       => 56,
                Element::LinkTemplate => 8,
                Element::JSON         => 168,
                Element::XML          => 224
            },
            windows: {
                Element::Form         => 336,
                Element::Link         => 336,
                Element::Cookie       => 336,
                Element::Header       => 168,
                Element::LinkTemplate => 24,
                Element::JSON         => 504,
                Element::XML          => 672
            },
            java:    {
                Element::Form         => 8,
                Element::Link         => 8,
                Element::Cookie       => 8,
                Element::Header       => 4,
                Element::LinkTemplate => 0,
                Element::JSON         => 12,
                Element::XML          => 16
            }
        }
    end

    easy_test
end

Version data entries

5 entries across 5 versions & 1 rubygems

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