Sha256: cf4b6358a8137c708b274d67a2e5ab3dd77eb1f84796a2f1e15bbb35c8f1a4fc
Contents?: true
Size: 671 Bytes
Versions: 5
Compression:
Stored size: 671 Bytes
Contents
require 'spec_helper' describe 'expect header' do it 'should find exact match for header content' do mock_get('simple_get', 'Content-Type' => 'application/json') get '/simple_get' expect_header(:content_type, 'application/json') end it 'should find exact match for header content' do mock_get('simple_get', 'Content-Type' => 'json') get '/simple_get' expect { expect_header(:content_type, 'application/json') }.to raise_error end it 'should ensure correct headers are present' do mock_get('simple_get', 'Content-Type' => 'application/json') get '/simple_get' expect { expect_header(:foo, 'bar') }.to raise_error end end
Version data entries
5 entries across 5 versions & 1 rubygems