aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/library/net/http/httpexceptions/response_spec.rb
blob: becf74bddf7f55de3d94dd17ef9b69c99a180741 (plain)
1
2
3
4
5
6
7
8
9
10
require File.expand_path('../../../../../spec_helper', __FILE__)
require 'net/http'
require File.expand_path('../fixtures/classes', __FILE__)

describe "Net::HTTPExceptions#response" do
  it "returns self's response" do
    exception = NetHTTPExceptionsSpecs::Simple.new("error message", "a http response")
    exception.response.should == "a http response"
  end
end