FactoryBot.define do factory :user, class: Ecom::Core::User do first_name { FFaker::Name.name } last_name { FFaker::Name.name } email { FFaker::Internet.email } active { true } password { FFaker::Internet.password } projects { [{ id: 1, name: 'Sample Project'}] } end end