-
Notifications
You must be signed in to change notification settings - Fork 34
Fabricator
pwpuzzeld edited this page Jun 6, 2016
·
8 revisions
There are four fabricators to generate a team, group, account or user. All Attributes are generated randomly.
To create an account:
Fabricate(:account)
To create a group:
Fabricate(:group)
Teams can be 'private' or 'non_private'
To create a non_private_team:
Fabricate(:non_private_team)
To create a private_team:
Fabricate(:private_team)
Creating a team creates a group and an account for it aswell. Additionaly it fabricates a User as it's creator and, for non_private Teams, adds every available admin to the list of teammembers.
##Users
A created User can be a simple 'user' or an 'admin'
To create a user:
Fabricate(:user)
To create an admin:
Fabricate(:admin)
Admins will be added to every non_private team as a member in the fabrication Process.