Sha256: f4d92ee753caee7a912c80313e301361a68d8d21796c493d9ef8f7fe8fee6799
Contents?: true
Size: 555 Bytes
Versions: 2
Compression:
Stored size: 555 Bytes
Contents
module Rubai describe RackResponse do let(:status) { 200 } let(:header) { Hash["Content-Type", "text/html"] } let(:body) { "test" } let(:response) { Response.new_with_body(body) } let(:rack_response) { [status, header, [body]] } context "::new(Response.new)" do subject { RackResponse.new(response) } its(:call) { should be_eql rack_response } end context "#respond_with(Response.new)" do subject { RackResponse.new.respond_with(response) } it { should be_eql rack_response } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubai-0.1.2 | spec/rubai/rack_response_spec.rb |
rubai-0.1.1 | spec/rubai/rack_response_spec.rb |