[rspec-users] Question: Define custom matcher like raise_error, by Matchers.define

Kaoru Kobo pub at kaorukobo.net
Sun Nov 28 23:32:59 EST 2010


David

Thanks!

>
> Actually, match_unless_raises is probably the best solution for your  
> issue.
>>
>> Then I found this page:
>>
>> ”Upgrade to 1.3.0 - Matcher DSL"
>> Upgrade.rdoc at master from dchelimsky's rspec - GitHub
>> http://github.com/dchelimsky/rspec/blob/master/Upgrade.rdoc
>>
>> and, I found the tentative solution:
>> (Is there the better way?)



More information about the rspec-users mailing list