Sha256: 058415ee22b5ebb54fb69043819f59659581542f667d7a736070f59a8b206af4

Contents?: true

Size: 577 Bytes

Versions: 8

Compression:

Stored size: 577 Bytes

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'check'

    def self.elements
        [ Element::Server ]
    end

    it 'intercepts all HTTP responses and log ones with status codes other than 200 or 404' do
        run
        current_check.acceptable.each do |code|
            http.get( url + code.to_s )
        end
        current_check.acceptable.each do |code|
            http.get( url + 'blah/' + code.to_s )
        end
        http.run

        max_issues = current_check.max_issues
        issues.size.should == max_issues
    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
arachni-1.1 spec/components/checks/passive/interesting_responses_spec.rb
arachni-1.0.6 spec/components/checks/passive/interesting_responses_spec.rb
arachni-1.0.5 spec/components/checks/passive/interesting_responses_spec.rb
arachni-1.0.4 spec/components/checks/passive/interesting_responses_spec.rb
arachni-1.0.3 spec/components/checks/passive/interesting_responses_spec.rb
arachni-1.0.2 spec/components/checks/passive/interesting_responses_spec.rb
arachni-1.0.1 spec/components/checks/passive/interesting_responses_spec.rb
arachni-1.0 spec/components/checks/passive/interesting_responses_spec.rb