Sha256: 18f8b7b9931ed76edda9e929e7f77bd970f3cb555de245ccc7cc1e1a7c4ac63f
Contents?: true
Size: 424 Bytes
Versions: 28
Compression:
Stored size: 424 Bytes
Contents
require 'spec_helper' describe RestClient::RawResponse do before do @tf = double("Tempfile", :read => "the answer is 42", :open => true) @net_http_res = double('net http response') @response = RestClient::RawResponse.new(@tf, @net_http_res, {}) end it "behaves like string" do @response.to_s.should eq 'the answer is 42' end it "exposes a Tempfile" do @response.file.should eq @tf end end
Version data entries
28 entries across 28 versions & 2 rubygems