Last active
August 29, 2015 14:22
-
-
Save twokul/87e5ba9bec122730f2f7 to your computer and use it in GitHub Desktop.
Ember Data Factory Guy (sample factory)
This file contains 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
FactoryGuy.define('user', { | |
default: { | |
firstName: 'David', | |
lastName: 'Hamilton' | |
} | |
}); | |
// using `make` and `build` EDFG helpers | |
// make('user') => ED record | |
// build('user') => JSON payload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment