Sha256: 63068c98fa6d6fd79c62569470f95a22eaa59bdf02356934c2821e6165b7f389
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
require 'spec_helper' describe Response, '#cache_control' do subject { object.cache_control } let(:object) { Response.build.with_headers(header) } context 'when Cache-Control header is present' do let(:header) { { 'Cache-Control' => value } } let(:value) { double('Value') } it { should be(value) } it_should_behave_like 'an idempotent method' end context 'when Cache-Control header is not present' do let(:header) { {} } it { should be(nil) } 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/cache_control_spec.rb |
response-0.0.4 | spec/unit/response/cache_control_spec.rb |