rspec mock should_receive in custom matchers
The answer is:
match do |obj|
# do some setup and mocks here
begin
RSpec::Mocks::verify # run mock verifications
true
rescue RSpec::Mocks::MockExpectationError => e
# here one can use #{e} to construct an error message
false
end
end
Finally found it here