A rspec extension used to collect method calls