StackOverflow Questions for Tag: factory-bot

David Geismar
David Geismar

Reputation: 3422

How do you create association in after_build in factory bot rails?

Score: 1

Views: 3894

Answers: 2

Read More
rigyt
rigyt

Reputation: 2353

Pass parameter in setting attribute on association in FactoryGirl

Score: 33

Views: 21500

Answers: 3

Read More
lobati
lobati

Reputation: 10235

Rails: access test fixtures from factories?

Score: 12

Views: 1238

Answers: 2

Read More
Julian
Julian

Reputation: 80

Rails Factory Bot with attachment - Working example

Score: 1

Views: 62

Answers: 1

Read More
gabrielhilal
gabrielhilal

Reputation: 10769

How to reload a variable defined by let

Score: 9

Views: 3797

Answers: 3

Read More
sbrocos
sbrocos

Reputation: 1

rails 7, Active Storage, Factory Bot, freeze my RSPECs

Score: 0

Views: 375

Answers: 3

Read More
mrateb
mrateb

Reputation: 2509

FactoryBot - Test without creating associated factories

Score: 0

Views: 13

Answers: 0

Read More
Eki Eqbal
Eki Eqbal

Reputation: 6057

How can I share the factories that I have in a GEM and use it in other project?

Score: 20

Views: 3603

Answers: 3

Read More
Jennifer James
Jennifer James

Reputation: 49

How do I install factory_bot_rails? I am using Rspec

Score: -1

Views: 163

Answers: 2

Read More
Richlewis
Richlewis

Reputation: 15384

Write an Rspec test to test multiple nested_attibutes

Score: 0

Views: 61

Answers: 1

Read More
pixelearth
pixelearth

Reputation: 14630

How to have one factory with two different names

Score: 2

Views: 57

Answers: 1

Read More
jmarceli
jmarceli

Reputation: 20182

Rails FactoryGirl inside app in development env

Score: 5

Views: 866

Answers: 2

Read More
David Hempy
David Hempy

Reputation: 6287

How can I generate sequence values of mixed letter characters and number digits in FactoryBot?

Score: 4

Views: 1022

Answers: 2

Read More
Syl
Syl

Reputation: 3829

problem installing Rspec with factory_bot. Factories are not registered

Score: 0

Views: 231

Answers: 2

Read More
Matt Elhotiby
Matt Elhotiby

Reputation: 44086

How do I save a local variable within a factory

Score: 15

Views: 8531

Answers: 3

Read More
aosho235
aosho235

Reputation: 323

verbose_query_logs does not work for queries issued in spec

Score: 0

Views: 57

Answers: 0

Read More
Alan Alves de Oliveira
Alan Alves de Oliveira

Reputation: 713

How to make FactoryBot return the right STI sub class?

Score: 8

Views: 2805

Answers: 5

Read More
Michael Fich
Michael Fich

Reputation: 506

FactoryBot namespaced models without class_name

Score: 7

Views: 5301

Answers: 3

Read More
Procy
Procy

Reputation: 57

How to create records via FactoryBot with microservice app

Score: 0

Views: 59

Answers: 0

Read More
GuiDoody
GuiDoody

Reputation: 907

Can FactoryBot generate factories after your models have been created?

Score: 63

Views: 32352

Answers: 9

Read More
PreviousPage 1Next