Ruby - Testing with RSpec and Minitest
Find the error in this RSpec stub code:
class Product
def price
50
end
end
product = Product.new
allow(product).to receive(:cost).and_return(100)
puts product.cost