test/instana_test.rb in instana-1.195.4 vs test/instana_test.rb in instana-1.197.0.pre1

- old
+ new

@@ -14,17 +14,24 @@ def test_that_it_has_an_agent refute_nil ::Instana.agent end - def test_that_it_has_a_collector - refute_nil ::Instana.collector - end - def test_that_it_has_a_tracer refute_nil ::Instana.tracer end def test_that_it_has_a_config refute_nil ::Instana.config + end + + def test_assign_logger + mock = Minitest::Mock.new + mock.expect(:info, true, [String]) + + ::Instana.logger = mock + ::Instana.logger.info('test') + ::Instana.logger = Logger.new('/dev/null') + + mock.verify end end