[mocha-developer] Fwd: [ mocha-Feature Requests-13763 ] add with_any_arguments method

James Mead jamesmead44 at gmail.com
Tue Sep 11 10:10:31 EDT 2007


---------- Forwarded message ----------
From: noreply at rubyforge.org <noreply at rubyforge.org>
Date: 7 Sep 2007 22:43
Subject: [ mocha-Feature Requests-13763 ] add with_any_arguments method
To: noreply at rubyforge.org

Feature Requests item #13763, was opened at 2007-09-07 17:43
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7480&aid=13763&group_id=1917

Category: None
Group: None
Status: Open
Priority: 3
Submitted By: Luke Melia (lukemelia)
Assigned to: Nobody (None)
Summary: add with_any_arguments method

Initial Comment:
We've found this useful when we don't care about the arguments passed to a
method. It would be great for it to find it's way into mocha.



module Mocha

  class Expectation

    def with_any_arguments()

      with(){ true }

    end

  end

end



Cheers from NYC,

Luke

----------------------------------------------------------------------

You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7480&aid=13763&group_id=1917


-- 
James.
http://blog.floehopper.org
http://tumble.floehopper.org


More information about the mocha-developer mailing list