From 8fbeea986d06a0052ce0132717f22b6ff8bd1a04 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 14 Apr 2023 20:49:46 -0600 Subject: AƱade validador de existencias a ProductCart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/factories/product_cart.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/factories/product_cart.rb') diff --git a/spec/factories/product_cart.rb b/spec/factories/product_cart.rb index 713fd0a..95094dd 100644 --- a/spec/factories/product_cart.rb +++ b/spec/factories/product_cart.rb @@ -3,7 +3,7 @@ FactoryBot.define do factory :product_cart, class: 'ProductCart' do cart { create(:cart) } - product { create(:product) } + product { create(:product, available_quantity: 2000) } quantity { rand(1..1000) } end end -- cgit v1.2.3