Sha256: 71f1f96592dad34274cc69b1efda7f908232bd94f47c4b600f9924ee716ed907
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
require 'spec_helper' describe Response, '#status' do subject { object.status } context 'when unset' do let(:object) { described_class.build } it { should be(Response::Undefined) } end context 'when set' do let(:status) { double('Status') } let(:object) { described_class.build.with_status(status) } it { should be(status) } 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/status_spec.rb |
response-0.0.4 | spec/unit/response/status_spec.rb |