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.202.0 test/instana_test.rb
instana-1.201.0 test/instana_test.rb
instana-1.201.0.pre1 test/instana_test.rb
instana-1.200.0 test/instana_test.rb
instana-1.200.0.pre1 test/instana_test.rb
instana-1.199.6 test/instana_test.rb
instana-1.199.5 test/instana_test.rb
instana-1.199.4 test/instana_test.rb
instana-1.199.3 test/instana_test.rb
instana-1.199.2 test/instana_test.rb
instana-1.199.1 test/instana_test.rb
instana-1.199.0 test/instana_test.rb
instana-1.198.0 test/instana_test.rb
instana-1.198.0.pre1 test/instana_test.rb
instana-1.197.0 test/instana_test.rb
instana-1.197.0.pre2 test/instana_test.rb
instana-1.197.0.pre1 test/instana_test.rb