Sha256: cdb12ed09d3369594b0d27152234acfc9dc1b7e7f0dd9a16b378b3edd63b12c1
Contents?: true
Size: 435 Bytes
Versions: 12
Compression:
Stored size: 435 Bytes
Contents
require File.dirname(__FILE__) + '/base' describe RestClient::RawResponse do before do @tf = mock("Tempfile", :read => "the answer is 42", :open => true) @net_http_res = mock('net http response') @response = RestClient::RawResponse.new(@tf, @net_http_res) end it "behaves like string" do @response.to_s.should == 'the answer is 42' end it "exposes a Tempfile" do @response.file.should == @tf end end
Version data entries
12 entries across 12 versions & 4 rubygems