Re: [rspec-users] How to write advanced matchers

2008-11-24 Thread David Chelimsky
On Mon, Nov 24, 2008 at 6:36 PM, Erik Pukinskis <[EMAIL PROTECTED]> wrote: > On Fri, Nov 21, 2008 at 8:35 AM, Pat Maddox <[EMAIL PROTECTED]> wrote: >> "Erik Pukinskis" <[EMAIL PROTECTED]> writes: >> >>> * a matcher that accepts a block and passes on some information, like >>> has_tag? >>> * a matc

Re: [rspec-users] How to write advanced matchers

2008-11-24 Thread Erik Pukinskis
Hey Pat, Thanks for your response! Even if it's just to say RTFC. :) I have been digging into the source regularly. It's a bit too complicated for me to understand right now, and I find often the way core matchers are written is appropriate for code that is going to be distributed with RSpec,

Re: [rspec-users] How to write advanced matchers

2008-11-24 Thread Pat Maddox
"Erik Pukinskis" <[EMAIL PROTECTED]> writes: > * a matcher that accepts a block and passes on some information, like has_tag? > * a matcher that can go in that block and use that information, like with_tag? > * a mock argument matcher like is_instance_of or hash_including? > > It'd be wonderful if

[rspec-users] How to write advanced matchers

2008-11-18 Thread Erik Pukinskis
Hi Folks! For any developers reading... thank you for RSpec... it's wonderful! I've been trying my darndest to get into it, spec everything ahead of time, and it's working out great. The one thing I really have a hard time with though is writing more advanced custom matchers. I can write simple