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-3.7.0-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.7.0 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.6.5-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.6.5 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.6.4-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.6.4 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.6.3-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.6.3 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.6.2-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.6.2 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.6.1-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.6.1 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.6.0-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.6.0 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.5.6-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.5.6 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.5.5-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.5.5 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.5.4-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.5.4 spec/support/helpers/environment_metdata_helper.rb