require 'test_helper' require 'nickserver/adapters/celluloid_http' class Nickserver::Adapters::CelluloidHttpTest < Minitest::Test def setup super Celluloid.boot end def teardown Celluloid.shutdown super end 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