Sha256: a9edc155cce3231e001a03f6f152256d34eb9bf2c18500c6e8c7ac31bfd9e249

Contents?: true

Size: 719 Bytes

Versions: 57

Compression:

Stored size: 719 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2016

require 'test_helper'

class InstanaTest < Minitest::Test
  def test_that_it_has_a_version_number
    refute_nil ::Instana::VERSION
  end

  def test_that_it_has_a_logger
    refute_nil ::Instana.logger
  end

  def test_that_it_has_an_agent
    refute_nil ::Instana.agent
  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

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
instana-1.217.1 test/instana_test.rb
instana-1.217.0 test/instana_test.rb
instana-1.216.0 test/instana_test.rb
instana-1.215.1 test/instana_test.rb
instana-1.215.0 test/instana_test.rb
instana-1.214.4 test/instana_test.rb
instana-1.214.3 test/instana_test.rb
instana-1.214.2 test/instana_test.rb
instana-1.214.1 test/instana_test.rb
instana-1.214.0 test/instana_test.rb
instana-1.213.3 test/instana_test.rb
instana-1.213.2 test/instana_test.rb
instana-1.213.1 test/instana_test.rb
instana-1.213.0 test/instana_test.rb
instana-1.212.0 test/instana_test.rb
instana-1.211.0 test/instana_test.rb
instana-1.210.1 test/instana_test.rb
instana-1.210.0 test/instana_test.rb
instana-1.209.8 test/instana_test.rb
instana-1.209.7 test/instana_test.rb