1 2 3 4 5 6 7
# frozen_string_literal: true FactoryBot.define do factory :cart, class: 'Cart' do user_account { create(:user_account, role: 'regular') } end end