summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net/http/httpresponse/initialize_spec.rb
blob: eb77e2e27744a836ef40e70d7f165ce12a0d5216 (plain)
1
2
3
4
5
6
7
8
9
10
11
require_relative '../../../../spec_helper'
require 'net/http'

describe "Net::HTTPResponse#initialize when passed http_version, response_code, response_message" do
  it "sets self http_version, response_code and response_message to the passed values" do
    res = Net::HTTPUnknownResponse.new("1.0", "???", "test response")
    res.http_version.should == "1.0"
    res.code.should == "???"
    res.message.should == "test response"
  end
end