Sha256: 144d63660f9262b0dbe1074b483e8b870b22f0b2f9a2c25398fc1bf745ae3eee

Contents?: true

Size: 292 Bytes

Versions: 6

Compression:

Stored size: 292 Bytes

Contents

class MockApp
  attr_accessor :config

  def config
    @config ||= Config.new
  end

  class Config
    attr_accessor :system_metrics

    def middleware
      @middleware ||= Middleware.new
    end
  end

  class Middleware < Array
    def use(*args)
      self.push args
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
system-metrics-0.2.5 spec/support/mock_app.rb
system-metrics-0.2.4 spec/support/mock_app.rb
system-metrics-0.2.3 spec/support/mock_app.rb
system-metrics-0.2.2 spec/support/mock_app.rb
system-metrics-0.2.1 spec/support/mock_app.rb
system-metrics-0.2.0 spec/support/mock_app.rb