Sha256: d4c621735a5d0f5c24022187f7f8ab3dd8e78bc47f0a04f58efd8f8739308c17

Contents?: true

Size: 434 Bytes

Versions: 25

Compression:

Stored size: 434 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 = {})
    Appsignal::Config.new(
      project_fixture_path,
      env,
      initial_config
    )
  end

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
appsignal-2.4.3 spec/support/helpers/config_helpers.rb
appsignal-2.4.2 spec/support/helpers/config_helpers.rb
appsignal-2.4.1 spec/support/helpers/config_helpers.rb
appsignal-2.4.0 spec/support/helpers/config_helpers.rb
appsignal-2.4.0.alpha.1 spec/support/helpers/config_helpers.rb
appsignal-2.3.7 spec/support/helpers/config_helpers.rb
appsignal-2.3.6 spec/support/helpers/config_helpers.rb
appsignal-2.3.6.beta.1 spec/support/helpers/config_helpers.rb
appsignal-2.3.4 spec/support/helpers/config_helpers.rb
appsignal-2.3.3 spec/support/helpers/config_helpers.rb
appsignal-2.3.3.beta.1 spec/support/helpers/config_helpers.rb
appsignal-2.3.2 spec/support/helpers/config_helpers.rb
appsignal-2.3.1 spec/support/helpers/config_helpers.rb
appsignal-2.3.0 spec/support/helpers/config_helpers.rb
appsignal-2.3.0.beta.3 spec/support/helpers/config_helpers.rb
appsignal-2.3.0.beta.2 spec/support/helpers/config_helpers.rb
appsignal-2.3.0.beta.1 spec/support/helpers/config_helpers.rb
appsignal-2.2.1 spec/support/helpers/config_helpers.rb
appsignal-2.2.0 spec/support/helpers/config_helpers.rb
appsignal-2.2.0.beta.1 spec/support/helpers/config_helpers.rb