[CS] Move to new rspec-mocks API

Fixes deprecation warnings