Sha256: b055ba6b5095c7dd9f407604a673e4637c0b811f3c4ad8a08f56ad6aa7b31001

Contents?: true

Size: 483 Bytes

Versions: 70

Compression:

Stored size: 483 Bytes

Contents

module ConfigHelpers
  def project_fixture_path
    File.expand_path(
      File.join(File.dirname(__FILE__), "../fixtures/projects/valid")
    )
  end

  def project_fixture_config(env = "production", initial_config = {}, logger = Appsignal.logger)
    Appsignal::Config.new(
      project_fixture_path,
      env,
      initial_config,
      logger
    )
  end

  def start_agent(env = "production")
    Appsignal.config = project_fixture_config(env)
    Appsignal.start
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
appsignal-2.9.18.beta.2-java spec/support/helpers/config_helpers.rb
appsignal-2.9.18.beta.2 spec/support/helpers/config_helpers.rb
appsignal-2.9.18.beta.1 spec/support/helpers/config_helpers.rb
appsignal-2.9.18.beta.1-java spec/support/helpers/config_helpers.rb
appsignal-2.9.17-java spec/support/helpers/config_helpers.rb
appsignal-2.9.17 spec/support/helpers/config_helpers.rb
appsignal-2.9.16-java spec/support/helpers/config_helpers.rb
appsignal-2.9.16 spec/support/helpers/config_helpers.rb
appsignal-2.9.15-java spec/support/helpers/config_helpers.rb
appsignal-2.9.15 spec/support/helpers/config_helpers.rb
appsignal-2.9.14-java spec/support/helpers/config_helpers.rb
appsignal-2.9.14 spec/support/helpers/config_helpers.rb
appsignal-2.9.13-java spec/support/helpers/config_helpers.rb
appsignal-2.9.13 spec/support/helpers/config_helpers.rb
appsignal-2.9.12-java spec/support/helpers/config_helpers.rb
appsignal-2.9.12 spec/support/helpers/config_helpers.rb
appsignal-2.9.12.beta.0-java spec/support/helpers/config_helpers.rb
appsignal-2.9.12.beta.0 spec/support/helpers/config_helpers.rb
appsignal-2.9.11 spec/support/helpers/config_helpers.rb
appsignal-2.9.11-java spec/support/helpers/config_helpers.rb