Using a Custom RSpec Matcher with RSpec mocks

How to use a custom RSpec matcher with RSpec Mocks to test a particular object is passed to a with method...