Sha256: d6ae4dbaa41daf5f4d7d9113234ad012ad98499a4363ff64309e4bc0d33bf396
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
require 'spec_helper' describe Response, '#merge_headers' do subject { object.merge_headers(update_headers) } let(:object) { described_class.build(status, original_headers, body) } let(:status) { Response::Status::OK } let(:update_headers) { { 'Baz' => 'Zot' } } let(:original_headers) { { 'Foo' => 'Bar' } } let(:status) { double('Status') } let(:body) { double('Body') } its(:status) { should be(status) } its(:body) { should be(body) } its(:headers) { should eql('Foo' => 'Bar', 'Baz' => 'Zot') } it_should_behave_like 'a functional command method' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
response-0.0.5 | spec/unit/response/merge_headers_spec.rb |