Sha256: 1c5a7221898344655ee971e7491fc87485c0b28eb6372cb56b8aff08c28d560f
Contents?: true
Size: 400 Bytes
Versions: 36
Compression:
Stored size: 400 Bytes
Contents
require File.dirname(__FILE__) + '/base' describe RestClient::Response do before do @net_http_res = mock('net http response') @response = RestClient::Response.new('abc', @net_http_res) end it "behaves like string" do @response.should == 'abc' end it "accepts nil strings and sets it to empty for the case of HEAD" do RestClient::Response.new(nil, @net_http_res).should == "" end end
Version data entries
36 entries across 36 versions & 11 rubygems