Sha256: d3d6516ff078dceb321436fc7a066015ca1556df5c1339868a6f1ca9dc6912e9
Contents?: true
Size: 680 Bytes
Versions: 5
Compression:
Stored size: 680 Bytes
Contents
require 'spec_helper' describe 'expect header contains' do it 'should ensure partial header match exists' do mock_get('simple_get', 'Content-Type' => 'application/json') get '/simple_get' expect_header_contains(:content_type, 'json') end it 'should ensure header is present' do mock_get('simple_get', 'Content-Type' => 'application/json') get '/simple_get' expect { expect_header_contains(:foo, 'bar') }.to raise_error end it 'should ensure partial header is present' do mock_get('simple_get', 'Content-Type' => 'application/json') get '/simple_get' expect { expect_header_contains(:content_type, 'bar') }.to raise_error end end
Version data entries
5 entries across 5 versions & 1 rubygems