Class: RunnerHelpers::FakeCounter

Inherits:
Object
  • Object
show all
Defined in:
lib/humboldt/rspec.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ FakeCounter

Returns a new instance of FakeCounter.



98
99
100
# File 'lib/humboldt/rspec.rb', line 98

def initialize(&block)
  @block = block
end

Instance Method Details

#increment(*args) ⇒ Object



102
103
104
# File 'lib/humboldt/rspec.rb', line 102

def increment(*args)
  @block.call(*args)
end