Sha256: 49b5637ecc36a34d42b1f88eef01a3ebd06c468ee52130a0ac0591927cac6bca

Contents?: true

Size: 467 Bytes

Versions: 63

Compression:

Stored size: 467 Bytes

Contents

require File.join( File.dirname(File.expand_path(__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

63 entries across 57 versions & 11 rubygems

Version Path
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/rest-client-1.6.7/spec/raw_response_spec.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/rest-client-1.6.7/spec/raw_response_spec.rb
tdiary-5.0.8 vendor/bundle/ruby/2.5.0/gems/rest-client-1.6.7/spec/raw_response_spec.rb
tdiary-5.0.8 vendor/bundle/gems/rest-client-1.6.7/spec/raw_response_spec.rb
rest-client_jxb_fix-1.6.7 spec/raw_response_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/rest-client-1.6.7/spec/raw_response_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/rest-client-1.6.7/spec/raw_response_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/spec/raw_response_spec.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/spec/raw_response_spec.rb
candlepin-api-0.4.0 bundle/ruby/gems/rest-client-1.6.7/spec/raw_response_spec.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/rest-client-1.6.7/spec/raw_response_spec.rb
candlepin-api-0.4.0 bundle/ruby/1.8/gems/rest-client-1.6.7/spec/raw_response_spec.rb
vulcan-0.8.2 server/vendor/gems/gems/rest-client-1.6.7/spec/raw_response_spec.rb
cft_smartcloud-0.3.3 lib/rest-client-1.6.6-master/spec/raw_response_spec.rb
vulcan-0.8.1 server/vendor/gems/gems/rest-client-1.6.7/spec/raw_response_spec.rb
vulcan-0.8.0 server/vendor/gems/gems/rest-client-1.6.7/spec/raw_response_spec.rb
vulcan-0.7.2 server/vendor/gems/gems/rest-client-1.6.7/spec/raw_response_spec.rb
vulcan-0.7.1 server/vendor/gems/gems/rest-client-1.6.7/spec/raw_response_spec.rb
vulcan-0.7.0 server/vendor/gems/gems/rest-client-1.6.7/spec/raw_response_spec.rb
vulcan-0.6.1 server/vendor/gems/gems/rest-client-1.6.7/spec/raw_response_spec.rb