[rspec-users] how to write complex matchers
Yury Kotlyarov
yura at brainhouse.ru
Sat Feb 14 16:10:12 EST 2009
Phlip wrote:
> David Chelimsky wrote:
>
>> This looks pretty cool. I wonder if you'd have any interest in making
>> this a bit more rspec-friendly? Something like an option to run it
>> like this:
>>
>> expect_xpath do
>
> It's on my do-list, but...
>
> ...are pluggable matchers as hard to write as the OP implied? How
> would you fix his problem? I need to know that before diving into the
> spaghetti that Ruby inevitably generates, just below every kewt DSL!
>
The major problem is fixed:
http://github.com/yura/howto-rspec-custom-matchers/
But there are still few open questions in README.rdoc
Regards,
Yury
More information about the rspec-users
mailing list