Sha256: 97e4fc6113325edd29804b3ac42ad47c4ad941f8543c9fc2b4f1461fb3f4aa84

Contents?: true

Size: 351 Bytes

Versions: 10

Compression:

Stored size: 351 Bytes

Contents

class AppsignalMock
  attr_reader :gauges

  def initialize(hostname: nil)
    @hostname = hostname
    @gauges = []
  end

  def config
    ConfigHelpers.project_fixture_config.tap do |conf|
      conf[:hostname] = @hostname if @hostname
    end
  end

  def set_gauge(*args) # rubocop:disable Naming/AccessorMethodName
    @gauges << args
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
appsignal-3.3.11-java spec/support/mocks/appsignal_mock.rb
appsignal-3.3.11 spec/support/mocks/appsignal_mock.rb
appsignal-3.4.0-java spec/support/mocks/appsignal_mock.rb
appsignal-3.4.0 spec/support/mocks/appsignal_mock.rb
appsignal-3.3.10-java spec/support/mocks/appsignal_mock.rb
appsignal-3.3.10 spec/support/mocks/appsignal_mock.rb
appsignal-3.3.9-java spec/support/mocks/appsignal_mock.rb
appsignal-3.3.9 spec/support/mocks/appsignal_mock.rb
appsignal-3.3.8-java spec/support/mocks/appsignal_mock.rb
appsignal-3.3.8 spec/support/mocks/appsignal_mock.rb