Sha256: d100bb9b56f2cd954af127b66de706ace74e72fecb9dd0b16918fc35dbe458a7
Contents?: true
Size: 412 Bytes
Versions: 2
Compression:
Stored size: 412 Bytes
Contents
require 'spec_helper' describe Response, '#headers' do subject { object.headers } context 'when unset' do let(:object) { described_class.build } it { should eql({}) } end context 'when set' do let(:headers) { double('Headers') } let(:object) { described_class.build.with_headers(headers) } it { should be(headers) } it_should_behave_like 'an idempotent method' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
response-0.0.5 | spec/unit/response/headers_spec.rb |
response-0.0.4 | spec/unit/response/headers_spec.rb |