Sha256: db7a06cef0f0fefd5b6e7555b9bf73e201ff6faa9246b859fd48e34af97a9953

Contents?: true

Size: 498 Bytes

Versions: 268

Compression:

Stored size: 498 Bytes

Contents

module EnvironmentMetadataHelper
  def capture_environment_metadata_report_calls
    allow(Appsignal::Extension).to receive(:set_environment_metadata)
      .and_call_original
  end

  def expect_environment_metadata(key, value)
    expect(Appsignal::Extension).to have_received(:set_environment_metadata)
      .with(key, value)
  end

  def expect_not_environment_metadata(key)
    expect(Appsignal::Extension).to_not have_received(:set_environment_metadata)
      .with(key, anything)
  end
end

Version data entries

268 entries across 268 versions & 1 rubygems

Version Path
appsignal-2.11.0.beta.2 spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.0.beta.2-java spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.0.beta.1-java spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.0.beta.1 spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.0.alpha.2 spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.0.alpha.2-java spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.0.alpha.1 spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.0.alpha.1-java spec/support/helpers/environment_metdata_helper.rb