Sha256: ba403db016634a596b34261216606b37a0a405fec6c07e52113f20f30016091b
Contents?: true
Size: 660 Bytes
Versions: 1
Compression:
Stored size: 660 Bytes
Contents
module Contracts describe ResponseAdapter do let(:response) do double({ :code => 200, :headers => {'foo' => ['bar', 'baz'], 'hello' => ['world']}, :body => double('body') }) end before do @response_adapter = described_class.new(response) end it 'should have a status' do @response_adapter.status.should == response.code end it 'should have a body' do @response_adapter.body.should == response.body end it 'should normalize headers values according to RFC2616' do @response_adapter.headers.should == {'foo' => 'bar,baz', 'hello' => 'world'} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
contracts_api_test-0.0.1 | spec/contracts/response_adapter_spec.rb |