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.0.3-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.0.3 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.0.2-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.0.2 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.0.1-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.0.1 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.0.0-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.0.0 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.0.0.rc.1 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.0.0.rc.1-java spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.9-java spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.9 spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.8-java spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.8 spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.7 spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.7-java spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.6 spec/support/helpers/environment_metdata_helper.rb
appsignal-2.11.6-java spec/support/helpers/environment_metdata_helper.rb
appsignal-3.0.0.beta.1 spec/support/helpers/environment_metdata_helper.rb
appsignal-3.0.0.beta.1-java spec/support/helpers/environment_metdata_helper.rb