spec/support/helper_methods.rb
#
# Factory wrapper for creating an account with owner
Factory wrapper for creating an account with owner
Factory wrapper for creating an account with owner
def create_nufs_account_with_owner(owner = :owner)
  owner = instance_variable_get("@#{owner}")
  FactoryBot.create(:nufs_account,
                    account_users_attributes: [FactoryBot.attributes_for(:account_user, user: owner)],
                   )
end
def create_nufs_account_with_owner ( owner = :owner ) owner = instance_variable_get ( "@#{owner}" ) FactoryBot . create ( :nufs_account , account_users_attributes : [ FactoryBot . attributes_for ( :account_user , user : owner ) ] , ) end
Factory wrapper for creating an account with owner
Factory wrapper for creating an account with owner
owner
<not_specific>