Sha256: 02e4be3669f5778eb8f9bda23c5de9e3cc2fe62f15013b20e633528038a6d4ac
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
require 'spec_helper' describe Response, '#content_type' do subject { object.content_type } let(:object) { Response.build.with_headers(header) } context 'when Content-Type header is present' do let(:header) { { 'Content-Type' => value } } let(:value) { double('Value') } it { should be(value) } it_should_behave_like 'an idempotent method' end context 'when Content-Type header is not present' do let(:header) { {} } it { should be(nil) } it_should_behave_like 'an idempotent method' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
response-0.0.4 | spec/unit/response/content_type_spec.rb |