Sha256: d9b1e9897045223445ee380976450e821c5e2afc1fdf175d319c3d414100ac00

Contents?: true

Size: 1.01 KB

Versions: 10

Compression:

Stored size: 1.01 KB

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'check'

    before( :each ){ framework.sitemap.clear }

    def self.elements
        [ Element::Form, Element::Link, Element::Cookie, Element::Header ]
    end

    elements.each do |element|
        element = element.type

        it "probes #{element} elements" do
            # audit the current element type but don't expect any issues
            audit element, false

            urls = framework.sitemap
            urls.should include options.url + "#{element}/straight/trained"
            urls.should include options.url + "#{element}/append/trained"
        end
    end

    context 'when the link count limit has been reached' do
        it 'does not run' do
            framework.options.scope.page_limit = 4
            audit :form, false

            urls = framework.sitemap
            urls.should_not include "#{options.url}form/straight/trained"
            urls.should_not include "#{options.url}form/append/trained"
        end
    end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
arachni-1.2.1 spec/components/checks/active/trainer_spec.rb
arachni-1.2 spec/components/checks/active/trainer_spec.rb
arachni-1.1 spec/components/checks/active/trainer_spec.rb
arachni-1.0.6 spec/components/checks/active/trainer_spec.rb
arachni-1.0.5 spec/components/checks/active/trainer_spec.rb
arachni-1.0.4 spec/components/checks/active/trainer_spec.rb
arachni-1.0.3 spec/components/checks/active/trainer_spec.rb
arachni-1.0.2 spec/components/checks/active/trainer_spec.rb
arachni-1.0.1 spec/components/checks/active/trainer_spec.rb
arachni-1.0 spec/components/checks/active/trainer_spec.rb