Sha256: 0fe5fcf8a7af05dd974866a421b7313d1b7a7dc9b26fe9a6f14a3c0961a89db5

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

require 'spec_helper'

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

  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_status_spec.rb
response-0.0.4 spec/unit/response/with_status_spec.rb