Spec instance variables in FactoryGirl callbacks

22 views
Skip to first unread message

Andy Pike

unread,
Mar 8, 2013, 10:17:42 AM3/8/13
to factor...@googlegroups.com
Hi all,

A quick question for you all. Imagine for a moment that I have a spec and it has an instance variable (lets say @current_company) created in a before block. I'd like access to this from within a FactoryGirl callback so I can use it. What's the best way to do this?

Cheers

Andy
Reply all
Reply to author
Forward
0 new messages