Sha256: 1496f719d3b746861fa072ed6bef7df762eb6032bf77d1ddae4fa389c466183c

Contents?: true

Size: 307 Bytes

Versions: 102

Compression:

Stored size: 307 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)
    @gauges << args
  end
end

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
appsignal-3.4.1-java spec/support/mocks/appsignal_mock.rb
appsignal-3.4.1 spec/support/mocks/appsignal_mock.rb