DEPRECATION NOTICE
ember-data-factory-guy is now an ember addon, so this package is deprecated.
For Ember Data 1.0.0-beta.16.1+ and Ember 1.11.0+, use ember-data-factory-guy v1.0.2 or higher.
To install ember-data-factory-guy as an addon check the documentation: FactoryGuy installation instructions.
The instructions below are how to use the deprecated ember-cli-data-factory-guy.
ember-cli-data-factory-guy is a wrapper around ember-data-factory-guy for ember-cli.
To install, run:
npm install --save-dev ember-cli-data-factory-guy
ember g ember-cli-data-factory-guy
to install ember-data-factory-guy as a bower package.
In your test files, use import FactoryGuy from 'factory-guy'
to get the main FactoryGuy
object. You'll need that object in order to create factories by calling FactoryGuy.define
.
Use import { testMixin as FactoryGuyTestMixin } from 'factory-guy';
to get the test mixin, and then follow the FactoryGuyTestMixin usage instructions.