FactoryGirl: Getting the attributes from a factory
Montag, 11. April 2011, 08:42 Uhr | roberto@vasquez-angel.de |I keep forgetting how to get the attributes of a factory.
From the official documentation:
# Returns a hash of attributes that can be used to build a User instance: attrs = Factory.attributes_for(:user)