summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net/http/httpexceptions/response_spec.rb
blob: 205b2bc21282d880da6b7f16f13046ff0e98ffb6 (plain)
1
2
3
4
5
6
7
8
9
10
require_relative '../../../../spec_helper'
require 'net/http'
require_relative 'fixtures/classes'

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