joakim / ember-cli-data-factory-guy

ember-cli-data-factory-guy is a wrapper around ember-data-factory-guy for ember-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ember-cli-data-factory-guy

About

ember-cli-data-factory-guy is a wrapper around ember-data-factory-guy for ember-cli.

Install

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 and add its predefined variables to tests/.jshintrc

Usage

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.

About

ember-cli-data-factory-guy is a wrapper around ember-data-factory-guy for ember-cli

License:MIT License


Languages

Language:JavaScript 100.0%