Sha256: 1112937304e14f00854999a60661e8ccc28e8e8b3a0a4bcf01e62b733220054c
Contents?: true
Size: 846 Bytes
Versions: 2
Compression:
Stored size: 846 Bytes
Contents
require 'spec_helper' describe name_from_filename do include_examples 'check' def self.elements [ Element::Server ] end it 'logs HTTP responses 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 it 'skips HTTP responses which are out of scope' do options.scope.exclude_path_patterns << /blah/ run current_check.acceptable.each do |code| http.get( url + 'blah/' + code.to_s ) end http.run issues.should be_empty end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arachni-1.2.1 | spec/components/checks/passive/interesting_responses_spec.rb |
arachni-1.2 | spec/components/checks/passive/interesting_responses_spec.rb |