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.1.0.beta.1 spec/support/helpers/config_helpers.rb
appsignal-1.0.2 spec/support/helpers/config_helpers.rb
appsignal-1.0.2.beta.4 spec/support/helpers/config_helpers.rb
appsignal-1.0.2.beta.3 spec/support/helpers/config_helpers.rb
appsignal-1.0.2.beta.2 spec/support/helpers/config_helpers.rb
appsignal-1.0.2.beta.1 spec/support/helpers/config_helpers.rb
appsignal-1.0.1 spec/support/helpers/config_helpers.rb
appsignal-1.0.0 spec/support/helpers/config_helpers.rb
appsignal-1.0.0.rc.1 spec/support/helpers/config_helpers.rb
appsignal-0.12.rc.14 spec/support/helpers/config_helpers.rb
appsignal-0.12.rc.13 spec/support/helpers/config_helpers.rb
appsignal-0.12.rc.12 spec/support/helpers/config_helpers.rb
appsignal-0.12.rc.11 spec/support/helpers/config_helpers.rb
appsignal-0.12.rc.10 spec/support/helpers/config_helpers.rb
appsignal-0.12.rc.9 spec/support/helpers/config_helpers.rb