Sha256: 085298796351e2a078fb3203619e32826ba8cbcc081f2efcf388c789c0770634
Contents?: true
Size: 439 Bytes
Versions: 11
Compression:
Stored size: 439 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
11 entries across 11 versions & 2 rubygems