Sha256: 2d68b0068bdcf40070904d2c493dd501ea92e60aa4703284f247ab92bff5315c

Contents?: true

Size: 635 Bytes

Versions: 3

Compression:

Stored size: 635 Bytes

Contents

require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../../../spec_helper'
require 'net/http'

describe "Net::HTTPResponse.exception_type" do
  it "returns self's 'EXCEPTION_TYPE' constant" do
    Net::HTTPUnknownResponse.exception_type.should == Net::HTTPError
    Net::HTTPInformation.exception_type.should == Net::HTTPError
    Net::HTTPSuccess.exception_type.should == Net::HTTPError
    Net::HTTPRedirection.exception_type.should == Net::HTTPRetriableError
    Net::HTTPClientError.exception_type.should == Net::HTTPServerException
    Net::HTTPServerError.exception_type.should == Net::HTTPFatalError
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rhodes-1.4.2 spec/framework_spec/app/spec/library/net/http/httpresponse/exception_type_spec.rb
rhodes-1.4.1 spec/framework_spec/app/spec/library/net/http/httpresponse/exception_type_spec.rb
rhodes-1.4.0 spec/framework_spec/app/spec/library/net/http/httpresponse/exception_type_spec.rb