Module: TrackAnds

Defined in:
lib/spec/spec_helper.rb

Instance Method Summary collapse

Instance Method Details

#my_andObject



60
61
62
63
64
65
66
# File 'lib/spec/spec_helper.rb', line 60

def my_and
  # Dummy if that increments @my_if_calls, then runs as normal
  @my_and ||= lambda do |first, second|
    @my_and_calls += 1
    first.call and second.call
  end
end