Ruby - Testing with RSpec and Minitest
What will this RSpec mock test output?
class Order
def total
100
end
end
order = Order.new
expect(order).to receive(:total).and_return(200)
puts order.total