Module: TrackUntils

Defined in:
lib/spec/spec_helper.rb

Instance Method Summary collapse

Instance Method Details

#my_untilObject



107
108
109
110
111
112
113
114
# File 'lib/spec/spec_helper.rb', line 107

def my_until
  @my_until ||= lambda do |condition, body|
    @my_until_calls += 1
    until condition.call
      body.call
    end
  end
end