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-2.0.6 spec/support/helpers/config_helpers.rb
appsignal-2.0.5 spec/support/helpers/config_helpers.rb
appsignal-2.0.5.beta.1 spec/support/helpers/config_helpers.rb
appsignal-2.1.0.alpha.3 spec/support/helpers/config_helpers.rb
appsignal-2.1.0.alpha.2 spec/support/helpers/config_helpers.rb
appsignal-2.1.0.alpha.1 spec/support/helpers/config_helpers.rb
appsignal-2.0.4 spec/support/helpers/config_helpers.rb
appsignal-2.0.3 spec/support/helpers/config_helpers.rb
appsignal-2.0.2 spec/support/helpers/config_helpers.rb
appsignal-2.0.1 spec/support/helpers/config_helpers.rb
appsignal-2.0.0 spec/support/helpers/config_helpers.rb
appsignal-2.0.0.beta.1 spec/support/helpers/config_helpers.rb
appsignal-1.4.0.beta.1 spec/support/helpers/config_helpers.rb
appsignal-1.3.6 spec/support/helpers/config_helpers.rb
appsignal-1.3.6.beta.1 spec/support/helpers/config_helpers.rb
appsignal-1.3.5 spec/support/helpers/config_helpers.rb
appsignal-1.3.5.beta.1 spec/support/helpers/config_helpers.rb
appsignal-1.3.4 spec/support/helpers/config_helpers.rb
appsignal-1.3.3 spec/support/helpers/config_helpers.rb
appsignal-1.4.0.alpha.2 spec/support/helpers/config_helpers.rb