Sha256: 80f9da5052347c1d60fc3115f7039c773b7c434b1e85e36600fc814ab0d74f27
Contents?: true
Size: 645 Bytes
Versions: 2
Compression:
Stored size: 645 Bytes
Contents
require_relative '_lib' describe RestMan::RawResponse do before do @tf = double("Tempfile", :read => "the answer is 42", :open => true, :rewind => true) @net_http_res = double('net http response') @request = double('restman request', :redirection_history => nil) @response = RestMan::RawResponse.new(@tf, @net_http_res, @request) end it "behaves like string" do expect(@response.to_s).to eq 'the answer is 42' end it "exposes a Tempfile" do expect(@response.file).to eq @tf end it "includes AbstractResponse" do expect(RestMan::RawResponse.ancestors).to include(RestMan::AbstractResponse) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rest-man-1.1.0 | spec/unit/raw_response_spec.rb |
rest-man-1.0.0 | spec/unit/raw_response_spec.rb |