diff --git a/node-tests/blueprints/test-helper-test.js b/node-tests/blueprints/test-helper-test.js new file mode 100644 index 0000000..8318642 --- /dev/null +++ b/node-tests/blueprints/test-helper-test.js @@ -0,0 +1,23 @@ +'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 test-helper', function() { + setupTestHooks(this); + + it('test-helper foo', function() { + return generateAndDestroy(['test-helper', 'foo'], { + files: [ + { + file: 'tests/helpers/foo.js', + contains: [ + "import Ember from 'ember';", + 'export default Ember.Test.registerAsyncHelper(\'foo\', function(app) {\n\n}' + ] + } + ] + }); + }); +});