Sha256: 31b88377f270a06494e47b1109705a89bafe52bcde5ce52a55eb552b5bf4c02a

Contents?: true

Size: 475 Bytes

Versions: 78

Compression:

Stored size: 475 Bytes

Contents

module ConfigHelpers
  def project_fixture_path
    File.expand_path(
      File.join(File.dirname(__FILE__), "../project_fixture")
    )
  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

78 entries across 78 versions & 1 rubygems

Version Path
appsignal-2.9.5 spec/support/helpers/config_helpers.rb
appsignal-2.9.5-java spec/support/helpers/config_helpers.rb
appsignal-2.9.4 spec/support/helpers/config_helpers.rb
appsignal-2.9.4-java spec/support/helpers/config_helpers.rb
appsignal-2.9.3 spec/support/helpers/config_helpers.rb
appsignal-2.9.3-java spec/support/helpers/config_helpers.rb
appsignal-2.9.2 spec/support/helpers/config_helpers.rb
appsignal-2.9.2-java spec/support/helpers/config_helpers.rb
appsignal-2.9.2.alpha.1 spec/support/helpers/config_helpers.rb
appsignal-2.9.2.alpha.1-java spec/support/helpers/config_helpers.rb
appsignal-2.9.1-java spec/support/helpers/config_helpers.rb
appsignal-2.9.1 spec/support/helpers/config_helpers.rb
appsignal-2.9.0-java spec/support/helpers/config_helpers.rb
appsignal-2.9.0 spec/support/helpers/config_helpers.rb
appsignal-2.8.4 spec/support/helpers/config_helpers.rb
appsignal-2.8.4-java spec/support/helpers/config_helpers.rb
appsignal-2.8.4.beta.1 spec/support/helpers/config_helpers.rb
appsignal-2.8.4.beta.1-java spec/support/helpers/config_helpers.rb
appsignal-2.8.3 spec/support/helpers/config_helpers.rb
appsignal-2.8.3-java spec/support/helpers/config_helpers.rb