From 5967c4a568aff2c5e73e3ab933aa68d25387aeb1 Mon Sep 17 00:00:00 2001 From: Azul Date: Sun, 2 Oct 2016 15:05:02 +0200 Subject: silence Celluloid.logger in tests Introduced CelluloidTest as a test class for all tests that depend on Celluloid being up and running. --- test/integration/nickserver_test.rb | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'test/integration/nickserver_test.rb') diff --git a/test/integration/nickserver_test.rb b/test/integration/nickserver_test.rb index 06d6e29..5dffcd2 100644 --- a/test/integration/nickserver_test.rb +++ b/test/integration/nickserver_test.rb @@ -1,4 +1,5 @@ require 'test_helper' +require 'support/celluloid_test' require 'support/http_stub_helper' require 'nickserver/server' require 'json' @@ -15,24 +16,15 @@ require 'json' # # (1) We mock the http adapter. So no network is required. # -# (2) We actually start the nickserver on 127.0.0.1 and talk to it via http. +# (2) We actually start the Reelserver on 127.0.0.1 and talk to it via http. +# In order to run the Reelserver properly this is a celluloid test. # # (3) the "Host" header for requests to nickserver must be set (or Config.domain set) # -class NickserverTest < Minitest::Test +class NickserverTest < CelluloidTest include HttpStubHelper - def setup - super - Celluloid.boot - end - - def teardown - Celluloid.shutdown - super - end - def test_GET_key_by_email_address_served_via_SKS uid = 'cloudadmin@leap.se' key_id = 'E818C478D3141282F7590D29D041EB11B1647490' -- cgit v1.2.3