Created
October 11, 2012 04:56
-
-
Save asalant/3870262 to your computer and use it in GitHub Desktop.
Ubiquitous JS example: shared factory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Factory.define 'user', User, | |
| name: -> Faker.Name.findName() | |
| email: Faker.uniq 'userEmail', Faker.Internet.email.bind(Faker.Internet) | |
| passwordHash: '$2a$10$iZ8vqtQXQ6...' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment