Sha256: b6ecfed470da645e7159d6ba6bab7aec6603793add1bc4f670389be66ee48604

Contents?: true

Size: 427 Bytes

Versions: 115

Compression:

Stored size: 427 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

115 entries across 115 versions & 1 rubygems

Version Path
appsignal-1.4.0.alpha.1 spec/support/helpers/config_helpers.rb
appsignal-1.3.2 spec/support/helpers/config_helpers.rb
appsignal-1.3.1 spec/support/helpers/config_helpers.rb
appsignal-1.3.0 spec/support/helpers/config_helpers.rb
appsignal-1.3.0.beta.3 spec/support/helpers/config_helpers.rb
appsignal-1.3.0.beta.2 spec/support/helpers/config_helpers.rb
appsignal-1.3.0.beta.1 spec/support/helpers/config_helpers.rb
appsignal-1.2.5 spec/support/helpers/config_helpers.rb
appsignal-1.2.4 spec/support/helpers/config_helpers.rb
appsignal-1.2.4.beta.4 spec/support/helpers/config_helpers.rb
appsignal-1.2.4.beta.3 spec/support/helpers/config_helpers.rb
appsignal-1.2.4.beta.2 spec/support/helpers/config_helpers.rb
appsignal-1.2.4.beta.1 spec/support/helpers/config_helpers.rb
appsignal-1.2.3 spec/support/helpers/config_helpers.rb
appsignal-1.2.3.beta.3 spec/support/helpers/config_helpers.rb
appsignal-1.2.3.beta.2 spec/support/helpers/config_helpers.rb
appsignal-1.2.3.beta.1 spec/support/helpers/config_helpers.rb
appsignal-1.2.2 spec/support/helpers/config_helpers.rb
appsignal-1.2.1 spec/support/helpers/config_helpers.rb
appsignal-1.2.1.beta.3 spec/support/helpers/config_helpers.rb