blob: da5f5d71f50bb3034b131b2ea346c40e509a4452 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
require 'test_helper'
require 'support/celluloid_test'
require 'nickserver/adapters/celluloid_http'
class Nickserver::Adapters::CelluloidHttpTest < CelluloidTest
def test_https_for_hkp
url = Nickserver::Config.hkp_url
status, _body = adapter.get url
assert_equal 404, status
rescue HTTP::ConnectionError => e
skip "could not talk to hkp server: #{e}"
end
protected
def adapter
@adapter ||= Nickserver::Adapters::CelluloidHttp.new
end
end
|