Ditto; RSpec test with mocking.