Sha256: 660071ff002a150b3cc24ef5f9947957d98337239be80c87332e4d207c554e05

Contents?: true

Size: 491 Bytes

Versions: 2

Compression:

Stored size: 491 Bytes

Contents

require 'spec_helper'

describe Response, '#with_body' do
  subject { object.with_status(status).with_headers(headers).with_body(body) }

  let(:object)  { described_class.build }

  let(:status)  { Response::Status::OK }
  let(:body)    { double('Body')         }
  let(:headers) { double('Headers')      }

  its(:status)  { should be(status)    }
  its(:body)    { should be(body)      }
  its(:headers) { should be(headers)   }

  it_should_behave_like 'a functional command method'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
response-0.0.5 spec/unit/response/with_body_spec.rb
response-0.0.4 spec/unit/response/with_body_spec.rb