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.11.0.beta.4 spec/support/helpers/config_helpers.rb
appsignal-2.11.0.beta.4-java spec/support/helpers/config_helpers.rb
appsignal-2.11.0.beta.3 spec/support/helpers/config_helpers.rb
appsignal-2.11.0.beta.3-java spec/support/helpers/config_helpers.rb
appsignal-2.10.10 spec/support/helpers/config_helpers.rb
appsignal-2.10.10-java spec/support/helpers/config_helpers.rb
appsignal-2.11.0.beta.2 spec/support/helpers/config_helpers.rb
appsignal-2.11.0.beta.2-java spec/support/helpers/config_helpers.rb
appsignal-2.11.0.beta.1-java spec/support/helpers/config_helpers.rb
appsignal-2.11.0.beta.1 spec/support/helpers/config_helpers.rb
appsignal-2.11.0.alpha.2 spec/support/helpers/config_helpers.rb
appsignal-2.11.0.alpha.2-java spec/support/helpers/config_helpers.rb
appsignal-2.11.0.alpha.1 spec/support/helpers/config_helpers.rb
appsignal-2.11.0.alpha.1-java spec/support/helpers/config_helpers.rb
appsignal-2.10.9 spec/support/helpers/config_helpers.rb
appsignal-2.10.9-java spec/support/helpers/config_helpers.rb
appsignal-2.10.9.beta.1-java spec/support/helpers/config_helpers.rb
appsignal-2.10.9.beta.1 spec/support/helpers/config_helpers.rb
appsignal-2.10.8 spec/support/helpers/config_helpers.rb
appsignal-2.10.8-java spec/support/helpers/config_helpers.rb