From d520e6d9717d8a64e870930d08218eb30d803690 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 4 Apr 2023 20:45:51 -0600 Subject: AƱade specs de Cart, ProductCart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/models/user_account_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/models/user_account_spec.rb') diff --git a/spec/models/user_account_spec.rb b/spec/models/user_account_spec.rb index 6466fe8..a8365e6 100644 --- a/spec/models/user_account_spec.rb +++ b/spec/models/user_account_spec.rb @@ -2,6 +2,7 @@ require 'rails_helper' RSpec.describe UserAccount, type: :model do it { should have_secure_password } + it { should have_one(:cart) } it { should validate_presence_of(:email) } it { should validate_presence_of(:first_name) } it { should validate_presence_of(:last_name) } -- cgit v1.2.3