Sha256: 85a31dc9bf55b82c05c2bea32468e64d75c23964b1603110c1c568b448092c77

Contents?: true

Size: 548 Bytes

Versions: 15

Compression:

Stored size: 548 Bytes

Contents

shared_examples 'prohibited_header_filter' do
  let(:permitted_header) { 'permitted-header' }

  describe 'treatment of headers according to RFC2616: 13.5.1 and RFC2616: 14.10' do
    context 'prohibitted headers' do
      it 'filters them out' do
        expect(subject).to_not have_prohibitted_headers
      end
    end

    it 'filters out hop by hop headers identified in connection header' do
      expect(subject).to include_headers(permitted_header)
      expect(subject).not_to include_headers(hop_header_1, hop_header_2)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sitehub-0.5.0.alpha12 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.4.10 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.5.0.alpha11 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.5.0.alpha10 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.5.0.alpha8 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.5.0.alpha7 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.5.0.alpha6 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.5.0.alpha5 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.5.0.alpha4 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.5.0.alpha3 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.5.0.alpha2 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.4.9 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.4.8 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.4.7 spec/support/shared_examples/prohibited_http_header_filter.rb
sitehub-0.4.6 spec/support/shared_examples/prohibited_http_header_filter.rb