text: var blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers');
  var setupTestHooks = blueprintHelpers.setupTestHooks;
  var emberNew = blueprintHelpers.emberNew;
  var emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy;
  var modifyPackages = blueprintHelpers.modifyPackages;
  
  var chai = require('ember-cli-blueprint-test-helpers/chai');
  var expect = chai.expect;
  
  describe('Acceptance: generate and destroy transform blueprints', function() {
    setupTestHooks(this);
  
    it('transform', function() {
      var args = ['transform', 'foo'];
  
      return emberNew()
        .then(() => emberGenerateDestroy(args, _file => {
          expect(_file('app/transforms/foo.js'))
            .to.contain('import Transform from \'ember-data/transform\';')
            .to.contain('export default Transform.extend(')
            .to.contain('deserialize(serialized) {')
            .to.contain('serialize(deserialized) {');
  
          expect(_file('tests/unit/transforms/foo-test.js'))
            .to.contain('moduleFor(\'transform:foo\'');
        }));
    });
  
    it('transforms-test', function() {
      var args = ['transform-test', 'foo'];
  
      return emberNew()
        .then(() => emberGenerateDestroy(args, _file => {
          expect(_file('tests/unit/transforms/foo-test.js'))
            .to.contain('moduleFor(\'transform:foo\'');
        }));
    });
  
    it('transform-test for mocha', function() {
      var args = ['transform-test', 'foo'];
  
      return emberNew()
        .then(() => modifyPackages([
          {name: 'ember-cli-qunit', delete: true},
          {name: 'ember-cli-mocha', dev: true}
        ]))
        .then(() => emberGenerateDestroy(args, _file => {
          expect(_file('tests/unit/transforms/foo-test.js'))
            .to.contain('import { describeModule, it } from \'ember-mocha\';')
            .to.contain('describeModule(\n  \'transform:foo\',')
            .to.contain('expect(transform).to.be.ok;');
        }));
    });
  });
  