rspec mocking test passes