require_relative '_lib'

describe RestClient::Request do
  before(:all) do
    WebMock.disable!
  end

  after(:all) do
    WebMock.enable!
  end

  describe "ssl verification" do
    # all removed; accessing the network
  end

  describe "timeouts" do
    xit "raises OpenTimeout when it hits an open timeout" do
      request = RestClient::Request.new(
        :method => :get,
        :url => 'http://www.mozilla.org',
        :open_timeout => 1e-10,
      )
      expect { request.execute }.to(
        raise_error(RestClient::Exceptions::OpenTimeout))
    end

  end

end
