Ruby - Testing with RSpec and Minitest
Identify the error in this RSpec mocking code:
user = double('User')
expect(user).to receive(:login).with('admin')
user.login('guest')