Sha256: 7f5a9764102c686a121a18c60283694409de23ce1cc0f7b5eff546d9c36892a2
Contents?: true
Size: 530 Bytes
Versions: 5
Compression:
Stored size: 530 Bytes
Contents
require File.dirname(__FILE__)+'/../spec_helper' describe Restfully::HTTP::Response do it "should correctly initialize the attributes" do response = Restfully::HTTP::Response.new(404, {:content_type => 'application/json;charset=utf-8'}, '{"property1": "value1", "property2": "value2"}') response.status.should == 404 response.headers.should == { 'Content-Type' => 'application/json;charset=utf-8' } response.body.should == { 'property1' => 'value1', 'property2' => 'value2' } end end
Version data entries
5 entries across 5 versions & 2 rubygems