'use strict';

var setupTestHooks     = require('ember-cli-blueprint-test-helpers/lib/helpers/setup');
var BlueprintHelpers   = require('ember-cli-blueprint-test-helpers/lib/helpers/blueprint-helper');
var generateAndDestroy = BlueprintHelpers.generateAndDestroy;

describe('Acceptance: ember generate and destroy component-addon', function() {
  setupTestHooks(this);

  it('component-addon foo-bar', function() {
    // pass any additional command line options in the arguments array
    return generateAndDestroy(['component-addon', 'foo-bar'], {
      target: 'addon',
      // define files to assert, and their contents
      files: [
        {
          file: 'app/components/foo-bar.js',
          contents: "export { default } from 'my-addon/components/foo-bar';"
        }
      ]
    });
  });
});

@@ -16,26 +16,24 @@
 var 
-setupTestHooks    
+blueprintHelpers
  = r
@@ -77,33 +77,23 @@
 ers/
-lib/
 helpers
-/setup
 ');%0Avar 
 Blue
@@ -92,118 +92,117 @@
 var 
-BlueprintHelpers   = require('ember-cli-blueprint-test-helpers/lib/helpers/blueprint-helper');%0Avar g
+setupTestHooks = blueprintHelpers.setupTestHooks;%0Avar emberNew = blueprintHelpers.emberNew;%0Avar emberG
 enerate
-And
 Dest
@@ -211,9 +211,9 @@
 y = 
-B
+b
 luep
@@ -224,27 +224,29 @@
 Helpers.
-g
+emberG
 enerate
-And
 Destroy;
@@ -247,16 +247,104 @@
 stroy;%0A%0A
+var chai = require('ember-cli-blueprint-test-helpers/chai');%0Avar expect = chai.expect;%0A%0A
 describe
@@ -493,105 +493,19 @@
     
-// pass any additional command line options in the arguments array%0A    return generateAndDestroy(
+var args = 
 %5B'co
@@ -534,18 +534,32 @@
 ar'%5D
-, %7B
+;%0A
 %0A    
-  
+return emberNew(%7B
 targ
@@ -573,84 +573,64 @@
 don'
-,
+%7D)
 %0A      
-// define files to assert, and their contents%0A      files: %5B%0A       
+.then(() =%3E emberGenerateDestroy(args, _file =%3E
  %7B%0A 
@@ -640,16 +640,21 @@
     
-  
+expect(_
 file
-: 
+(
 'app
@@ -676,17 +676,18 @@
 -bar.js'
-,
+))
 %0A       
@@ -693,18 +693,20 @@
     
-contents: 
+.to.contain(
 %22exp
@@ -761,32 +761,19 @@
 r';%22
-%0A  
+);%0A
       %7D
-%0A      %5D%0A    %7D
+)
 );%0A 

Use alternative blueprint test helpers