Groups
Conversations
All groups and messages
Send feedback to Google
Help
Sign in
Groups
factory_girl
Conversations
About
factory_girl
1–30 of 362
Mark all as read
Report abusive group
0 selected
Joe Ferris
12/19/13
Announcement
This mailing list is being replaced by Stack Overflow
Hey subscriber, We've decided to replace all of our support mailing lists with Stack Overflow
unread,
Announcement
This mailing list is being replaced by Stack Overflow
Hey subscriber, We've decided to replace all of our support mailing lists with Stack Overflow
12/19/13
Simone Carletti
12/13/13
How to create an association with a value lazy-evaluated from another association
Hello, Is it possible to use an association as the value for another association in a trait? Let me
unread,
How to create an association with a value lazy-evaluated from another association
Hello, Is it possible to use an association as the value for another association in a trait? Let me
12/13/13
陈光
11/15/13
factory girl makes travis-ci fail in db:migrate for not find table.
If I remove factories , it success. And when I add a factory, it crash for not find table. I think
unread,
factory girl makes travis-ci fail in db:migrate for not find table.
If I remove factories , it success. And when I add a factory, it crash for not find table. I think
11/15/13
nat...@nathansamson.be
11/15/13
Using Factories defined in another Gem (Rails Engine)
Hi, I have the following layout I have a Gem that is a Rails Engine (lets call it EngineA). EngineA
unread,
Using Factories defined in another Gem (Rails Engine)
Hi, I have the following layout I have a Gem that is a Rails Engine (lets call it EngineA). EngineA
11/15/13
Carlos Chavez
,
Chris Gat
4
11/6/13
FactoryGirl - Define factories in a different directory other than spec/factories
Carlos, thanks for replying to your own post with the answer. This helped me out. On Wednesday, April
unread,
FactoryGirl - Define factories in a different directory other than spec/factories
Carlos, thanks for replying to your own post with the answer. This helped me out. On Wednesday, April
11/6/13
Andrew Meyer
,
Keenan Brock
2
7/19/13
Creating a custom build strategy that creates RSpec mock objects
Andrew, You can specify the class name of the object you want to create. I wonder if you can specify
unread,
Creating a custom build strategy that creates RSpec mock objects
Andrew, You can specify the class name of the object you want to create. I wonder if you can specify
7/19/13
Mohsen Qureshi
,
Keenan Brock
2
6/20/13
Resetting a sequence
Hello Mohsen, I don't know how to do what you suggest. But recently, when comparing objects and
unread,
Resetting a sequence
Hello Mohsen, I don't know how to do what you suggest. But recently, when comparing objects and
6/20/13
Mohsen Qureshi
6/20/13
Reset sequences
Hi guys, Would like to know if its possible to reset sequences in a factory? I have done a bit of
unread,
Reset sequences
Hi guys, Would like to know if its possible to reset sequences in a factory? I have done a bit of
6/20/13
rya...@ichange.com
6/14/13
How do I access specific factories created by creat_list?
before(:each) do @created_challenges = FactoryGirl.create_list(:challenge, 25) FactoryGirl.create(:
unread,
How do I access specific factories created by creat_list?
before(:each) do @created_challenges = FactoryGirl.create_list(:challenge, 25) FactoryGirl.create(:
6/14/13
Tom Cocca
6/3/13
.::tom.cocca::.
http://kartin.plast-kom.com/yrzclie/oermd.kqwttlx
unread,
.::tom.cocca::.
http://kartin.plast-kom.com/yrzclie/oermd.kqwttlx
6/3/13
Gavin Hughes
6/1/13
Including a module builds model with all empty attributes
When I include the module below, factory_girl builds my model with empty attributes. If I leave off
unread,
Including a module builds model with all empty attributes
When I include the module below, factory_girl builds my model with empty attributes. If I leave off
6/1/13
Carlos Betancourt C.
5/12/13
self-reference association
Hi! We have a comment model that can have many comments as childrens. ... has_many :childrens,
unread,
self-reference association
Hi! We have a comment model that can have many comments as childrens. ... has_many :childrens,
5/12/13
Nitish Upreti
5/10/13
FactoryGirl and validations on embeds_many in Mongoid
I have a complex model relationship hierarchy setup, Here are the relevant parts ( Channel and
unread,
FactoryGirl and validations on embeds_many in Mongoid
I have a complex model relationship hierarchy setup, Here are the relevant parts ( Channel and
5/10/13
Simone Carletti
,
Carlos Chavez
2
4/27/13
Setting an association attribute from another association
Hi Simone. Its occurs to me that you can use after_build, for example: after_build do |certificate| u
unread,
Setting an association attribute from another association
Hi Simone. Its occurs to me that you can use after_build, for example: after_build do |certificate| u
4/27/13
Carlos Chavez
, …
Oscar Rieken
6
4/17/13
Get value of attribute from other attributes
why not have a method that goes and gets the value from the db then pass that to the sequence def
unread,
Get value of attribute from other attributes
why not have a method that goes and gets the value from the db then pass that to the sequence def
4/17/13
oli...@ifi.ch
4/22/13
association with lazy attributes
I'm trying to have a factory build an Offering object with a child object Rating that will
unread,
association with lazy attributes
I'm trying to have a factory build an Offering object with a child object Rating that will
4/22/13
Deivid Rodriguez
,
Josh Clayton
5
4/5/13
Shouldn't factory_girl respect specified strategy for associated objects?
Alright, I'll take your word on that for now! Thanks a lot. El viernes, 5 de abril de 2013 16:12:
unread,
Shouldn't factory_girl respect specified strategy for associated objects?
Alright, I'll take your word on that for now! Thanks a lot. El viernes, 5 de abril de 2013 16:12:
4/5/13
Surya
3/28/13
Can not determine issue in my factories with factory girl in rspec
Hi Folks, I hope you're doing good. Sorry for a long email. I am just trying my best to learn
unread,
Can not determine issue in my factories with factory girl in rspec
Hi Folks, I hope you're doing good. Sorry for a long email. I am just trying my best to learn
3/28/13
Les Nightingill
3/27/13
Factory for model with associated upload file
I have a factory for an ActiveRecord model that has an associated (uploaded) file. The file should be
unread,
Factory for model with associated upload file
I have a factory for an ActiveRecord model that has an associated (uploaded) file. The file should be
3/27/13
Javix
2
3/22/13
model build fails in the console when using 'after_initialize' callback in the model
Fixed it, the problem was in association factory definition (activities.rb). So the modified version
unread,
model build fails in the console when using 'after_initialize' callback in the model
Fixed it, the problem was in association factory definition (activities.rb). So the modified version
3/22/13
enwood
3/16/13
Monitoring FactoryGirl and what it creates
Hi; Just starting to use FactoryGirl more and was wondering about how to monitor (for eg in the test.
unread,
Monitoring FactoryGirl and what it creates
Hi; Just starting to use FactoryGirl more and was wondering about how to monitor (for eg in the test.
3/16/13
fearless_fool
,
Sebastian Cohnen
2
3/1/13
and now for something completely different: name and address sequence generators
Cool, if you need something like that for more stuff (like phone numbers) and in i18n, you should
unread,
and now for something completely different: name and address sequence generators
Cool, if you need something like that for more stuff (like phone numbers) and in i18n, you should
3/1/13
Andy Pike
3/8/13
Spec instance variables in FactoryGirl callbacks
Hi all, A quick question for you all. Imagine for a moment that I have a spec and it has an instance
unread,
Spec instance variables in FactoryGirl callbacks
Hi all, A quick question for you all. Imagine for a moment that I have a spec and it has an instance
3/8/13
Jonathan Wallace
3/2/13
Problems overriding Rails generated attr_accessor method
Hello, When I attempt to override a Rails generated attr_accessor method, FactoryGirl.create fails.
unread,
Problems overriding Rails generated attr_accessor method
Hello, When I attempt to override a Rails generated attr_accessor method, FactoryGirl.create fails.
3/2/13
wha...@gmail.com
3/1/13
How can I create another factory from within a factory that is is not associated with?
I was originally using after(:build) to create a different instance of a model that is needed but is
unread,
How can I create another factory from within a factory that is is not associated with?
I was originally using after(:build) to create a different instance of a model that is needed but is
3/1/13
Tsvetelina Borisova
,
Josh Clayton
4
2/15/13
Factory(:some_fact) is causing ActiveRecord::AssociationTypeMismatch while FactoryGirl.create(:some_fact) is not causing it
This is likely because of an error with how you're assigning an association. I can't really
unread,
Factory(:some_fact) is causing ActiveRecord::AssociationTypeMismatch while FactoryGirl.create(:some_fact) is not causing it
This is likely because of an error with how you're assigning an association. I can't really
2/15/13
Tsvetelina Borisova
,
Josh Clayton
4
2/15/13
Rails project uses factory_girl gem instead of factory_girl_rails gem - is that a problem?
With factory_girl_rails, your factory files will be loaded automatically, whereas with factory_girl
unread,
Rails project uses factory_girl gem instead of factory_girl_rails gem - is that a problem?
With factory_girl_rails, your factory files will be loaded automatically, whereas with factory_girl
2/15/13
Chris Bloom
,
Mauro Asprea
3
2/15/13
Cannot set required boolean attribute to false inside a Factory
Take a look at ths SO Question http://stackoverflow.com/a/10506648/53720 for more info becuse the
unread,
Cannot set required boolean attribute to false inside a Factory
Take a look at ths SO Question http://stackoverflow.com/a/10506648/53720 for more info becuse the
2/15/13
Bradford Smith
,
Rennan Maciel
3
2/4/13
What if FactoryGirl depends on seeds?
Thanks, Rennan. I realized that right after I posted this, but the post took some time to go through.
unread,
What if FactoryGirl depends on seeds?
Thanks, Rennan. I realized that right after I posted this, but the post took some time to go through.
2/4/13
Samir Sabri
,
Joe Ferris
3
1/31/13
Why adding '=' to targeted method?
Thanks, it worked now. On Thursday, January 31, 2013 12:41:56 PM UTC+2, Samir Sabri wrote: I am using
unread,
Why adding '=' to targeted method?
Thanks, it worked now. On Thursday, January 31, 2013 12:41:56 PM UTC+2, Samir Sabri wrote: I am using
1/31/13