Sha256: 1f1758bf7098d7df0adb24b2822b53130af2c38a1561ff756e4a5b04d458c1b2
Contents?: true
Size: 774 Bytes
Versions: 4
Compression:
Stored size: 774 Bytes
Contents
require_relative '../../spec_helper' describe name_from_filename do include_examples 'module' def self.targets %w(Generic) end def self.elements [ Element::SERVER ] end it 'should intercept all HTTP responses and log ones with status codes other than 200 or 404' do run current_module.acceptable.each do |code| http.get( url + code.to_s ) end current_module.acceptable.each do |code| http.get( url + 'blah/' + code.to_s ) end http.run issues.size.should == current_module::MAX_ENTRIES issues.map{ |i| i.id.gsub( /\D/, '').to_i }.uniq.sort.should == (current_module.acceptable - current_module::IGNORE_CODES.to_a).sort end end
Version data entries
4 entries across 4 versions & 1 rubygems