Sha256: 0508658432e0fce2353da016ec5ac296a9db6bdb8b25001b0bda163b1c5de25e

Contents?: true

Size: 472 Bytes

Versions: 36

Compression:

Stored size: 472 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')
    @request = double('http request')
    @response = RestClient::RawResponse.new(@tf, @net_http_res, {}, @request)
  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

36 entries across 34 versions & 8 rubygems

Version Path
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
tdiary-5.0.7 vendor/bundle/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
tdiary-5.0.6 vendor/bundle/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
tdiary-5.0.5 vendor/bundle/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
tdiary-5.0.4 vendor/bundle/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
tdiary-5.0.2 vendor/bundle/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
tdiary-5.0.1 vendor/bundle/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/rest-client-1.8.0/spec/unit/raw_response_spec.rb