blog.robotex.de

FactoryGirl: Getting the attributes from a factory

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)

Back