Thanks, David.
This should work:
...
match do |block|
(block.call; true) rescue false
end
I tried that, but the spec still fails...
1)
'The expectation failure in block called from the custom matcher
should be reported.' FAILED
expected no Exception with message matching /be_done failed/, got
#<Spec::Expectations::ExpectationNotMetError: be_done failed.>
./spec/custom_matcher_spec.rb:21:
I expect that it fails with message 'expected: 2, got: 1 (using ==)'.
Best Regards.
--
Kaoru Kobo
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users