On Nov 6, 2011, at 4:45 PM, Alex Chaffee wrote:

> Double negatives are not unconfusing.
> 
> Not unlike chaining mutable decorator objects.
> 
> (I was tempted to say "non-immutable" but that would chain the jokes)
> 
> btw with .once and .twice, why not .thrice? Lady or no.

module Thrice
  def thrice(&block)
    exactly(3).times &block
  end
end

RSpec::Mocks::MessageExpectation.send :include, Thrice

There you go :)
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to