Ruby - Testing with RSpec and Minitest
What will be the output of this Ruby code using RSpec mocks?
class User
def name
'Alice'
end
end
user = User.new
allow(user).to receive(:name).and_return('Bob')
puts user.name