<NME> file.js
<BEF> ADDFILE
<MSG> use a fixture to test `helper-test` blueprint

<DFF> @@ -0,0 +1,8 @@
+'use strict';
+
+const path = require('path');
+const file = require('ember-cli-blueprint-test-helpers/chai').file;
+
+module.exports = function(filePath) {
+  return file(path.join(__dirname, '../fixtures', filePath));
+};

{'commit': 'diff --git a/node-tests/blueprints/helper-test.js b/node-tests/blueprints/helper-test.js\nindex e6da69622..a499d8379 100644\n--- a/node-tests/blueprints/helper-test.js\n+++ b/node-tests/blueprints/helper-test.js\n@@ -1,5 +1,6 @@\n \'use strict\';\n \n+const file = require(\'../helpers/file\');\n var blueprintHelpers = require(\'ember-cli-blueprint-test-helpers/helpers\');\n var setupTestHooks = blueprintHelpers.setupTestHooks;\n var emberNew = blueprintHelpers.emberNew;\n@@ -28,26 +29,26 @@ describe(\'Acceptance: ember generate and destroy helper\', function() {\n                       "export default helper(fooBarBaz);");\n \n         expect(_file(\'tests/integration/helpers/foo/bar-baz-test.js\'))\n-          .to.contain("moduleForComponent(\'foo/bar-baz\', \'helper:foo/bar-baz\', {");\n+          .to.equal(file(\'helper-test/integration.js\'));\n       }));\n   });\n \n-  it(\'in-addon helper foo-bar\', function() {\n-    var args = [\'helper\', \'foo-bar\'];\n+  it(\'in-addon helper foo/bar-baz\', function() {\n+    var args = [\'helper\', \'foo/bar-baz\'];\n \n     return emberNew({ target: \'addon\' })\n       .then(() => emberGenerateDestroy(args, _file => {\n-        expect(_file(\'addon/helpers/foo-bar.js\'))\n+        expect(_file(\'addon/helpers/foo/bar-baz.js\'))\n           .to.contain("import { helper } from \'@ember/component/helper\';\\n\\n" +\n-                      "export function fooBar(params/*, hash*/) {\\n" +\n+                      "export function fooBarBaz(params/*, hash*/) {\\n" +\n                       "  return params;\\n" +\n                       "}\\n\\n" +\n-                      "export default helper(fooBar);");\n+                      "export default helper(fooBarBaz);");\n \n-        expect(_file(\'app/helpers/foo-bar.js\'))\n-          .to.contain("export { default, fooBar } from \'my-addon/helpers/foo-bar\';");\n-        expect(_file(\'tests/integration/helpers/foo-bar-test.js\'))\n-          .to.contain("moduleForComponent(\'foo-bar\', \'helper:foo-bar\', {");\n+        expect(_file(\'app/helpers/foo/bar-baz.js\'))\n+          .to.contain("export { default, fooBarBaz } from \'my-addon/helpers/foo/bar-baz\';");\n+        expect(_file(\'tests/integration/helpers/foo/bar-baz-test.js\'))\n+          .to.equal(file(\'helper-test/integration.js\'));\n       }));\n   });\n \n@@ -66,7 +67,7 @@ describe(\'Acceptance: ember generate and destroy helper\', function() {\n         expect(_file(\'app/helpers/foo/bar-baz.js\'))\n           .to.contain("export { default, fooBarBaz } from \'my-addon/helpers/foo/bar-baz\';");\n         expect(_file(\'tests/integration/helpers/foo/bar-baz-test.js\'))\n-          .to.contain("moduleForComponent(\'foo/bar-baz\', \'helper:foo/bar-baz\', {");\n+          .to.equal(file(\'helper-test/integration.js\'));\n       }));\n   });\n \n@@ -108,22 +109,22 @@ describe(\'Acceptance: ember generate and destroy helper\', function() {\n       }));\n   });\n \n-  it(\'in-repo-addon helper foo-bar\', function() {\n-    var args = [\'helper\', \'foo-bar\', \'--in-repo-addon=my-addon\'];\n+  it(\'in-repo-addon helper foo/bar-baz\', function() {\n+    var args = [\'helper\', \'foo/bar-baz\', \'--in-repo-addon=my-addon\'];\n \n     return emberNew({ target: \'in-repo-addon\' })\n       .then(() => emberGenerateDestroy(args, _file => {\n-        expect(_file(\'lib/my-addon/addon/helpers/foo-bar.js\'))\n+        expect(_file(\'lib/my-addon/addon/helpers/foo/bar-baz.js\'))\n           .to.contain("import { helper } from \'@ember/component/helper\';\\n\\n" +\n-                      "export function fooBar(params/*, hash*/) {\\n" +\n+                      "export function fooBarBaz(params/*, hash*/) {\\n" +\n                       "  return params;\\n" +\n                       "}\\n\\n" +\n-                      "export default helper(fooBar);");\n+                      "export default helper(fooBarBaz);");\n \n-        expect(_file(\'lib/my-addon/app/helpers/foo-bar.js\'))\n-          .to.contain("export { default, fooBar } from \'my-addon/helpers/foo-bar\';");\n-        expect(_file(\'tests/integration/helpers/foo-bar-test.js\'))\n-          .to.contain("moduleForComponent(\'foo-bar\', \'helper:foo-bar\', {");\n+        expect(_file(\'lib/my-addon/app/helpers/foo/bar-baz.js\'))\n+          .to.contain("export { default, fooBarBaz } from \'my-addon/helpers/foo/bar-baz\';");\n+        expect(_file(\'tests/integration/helpers/foo/bar-baz-test.js\'))\n+          .to.equal(file(\'helper-test/integration.js\'));\n       }));\n   });\n \n@@ -142,42 +143,42 @@ describe(\'Acceptance: ember generate and destroy helper\', function() {\n         expect(_file(\'lib/my-addon/app/helpers/foo/bar-baz.js\'))\n           .to.contain("export { default, fooBarBaz } from \'my-addon/helpers/foo/bar-baz\';");\n         expect(_file(\'tests/integration/helpers/foo/bar-baz-test.js\'))\n-          .to.contain("moduleForComponent(\'foo/bar-baz\', \'helper:foo/bar-baz\', {");\n+          .to.equal(file(\'helper-test/integration.js\'));\n       }));\n   });\n \n-  it(\'helper foo-bar --pod\', function() {\n-    var args = [\'helper\', \'foo-bar\', \'--pod\'];\n+  it(\'helper foo/bar-baz --pod\', function() {\n+    var args = [\'helper\', \'foo/bar-baz\', \'--pod\'];\n \n     return emberNew()\n       .then(() => emberGenerateDestroy(args, _file => {\n-        expect(_file(\'app/helpers/foo-bar.js\'))\n+        expect(_file(\'app/helpers/foo/bar-baz.js\'))\n           .to.contain("import { helper } from \'@ember/component/helper\';\\n\\n" +\n-                      "export function fooBar(params/*, hash*/) {\\n" +\n+                      "export function fooBarBaz(params/*, hash*/) {\\n" +\n                       "  return params;\\n" +\n                       "}\\n\\n" +\n-                      "export default helper(fooBar);");\n+                      "export default helper(fooBarBaz);");\n \n-        expect(_file(\'tests/integration/helpers/foo-bar-test.js\'))\n-          .to.contain("moduleForComponent(\'foo-bar\', \'helper:foo-bar\', {");\n+        expect(_file(\'tests/integration/helpers/foo/bar-baz-test.js\'))\n+          .to.equal(file(\'helper-test/integration.js\'));\n       }));\n   });\n \n-  it(\'helper foo-bar --pod podModulePrefix\', function() {\n-    var args = [\'helper\', \'foo-bar\', \'--pod\'];\n+  it(\'helper foo/bar-baz --pod podModulePrefix\', function() {\n+    var args = [\'helper\', \'foo/bar-baz\', \'--pod\'];\n \n     return emberNew()\n       .then(() => setupPodConfig({ podModulePrefix: true }))\n       .then(() => emberGenerateDestroy(args, _file => {\n-        expect(_file(\'app/helpers/foo-bar.js\'))\n+        expect(_file(\'app/helpers/foo/bar-baz.js\'))\n           .to.contain("import { helper } from \'@ember/component/helper\';\\n\\n" +\n-                      "export function fooBar(params/*, hash*/) {\\n" +\n+                      "export function fooBarBaz(params/*, hash*/) {\\n" +\n                       "  return params;\\n" +\n                       "}\\n\\n" +\n-                      "export default helper(fooBar);");\n+                      "export default helper(fooBarBaz);");\n \n-        expect(_file(\'tests/integration/helpers/foo-bar-test.js\'))\n-          .to.contain("moduleForComponent(\'foo-bar\', \'helper:foo-bar\', {");\n+        expect(_file(\'tests/integration/helpers/foo/bar-baz-test.js\'))\n+          .to.equal(file(\'helper-test/integration.js\'));\n       }));\n   });\n \n@@ -194,7 +195,7 @@ describe(\'Acceptance: ember generate and destroy helper\', function() {\n                       "export default helper(fooBarBaz);");\n \n         expect(_file(\'tests/integration/helpers/foo/bar-baz-test.js\'))\n-          .to.contain("moduleForComponent(\'foo/bar-baz\', \'helper:foo/bar-baz\', {");\n+          .to.equal(file(\'helper-test/integration.js\'));\n       }));\n   });\n \n@@ -212,7 +213,7 @@ describe(\'Acceptance: ember generate and destroy helper\', function() {\n                       "export default helper(fooBarBaz);");\n \n         expect(_file(\'tests/integration/helpers/foo/bar-baz-test.js\'))\n-          .to.contain("moduleForComponent(\'foo/bar-baz\', \'helper:foo/bar-baz\', {");\n+          .to.equal(file(\'helper-test/integration.js\'));\n       }));\n   });\n \n@@ -222,7 +223,7 @@ describe(\'Acceptance: ember generate and destroy helper\', function() {\n     return emberNew()\n       .then(() => emberGenerateDestroy(args, _file => {\n         expect(_file(\'tests/integration/helpers/foo/bar-baz-test.js\'))\n-          .to.contain("moduleForComponent(\'foo/bar-baz\', \'helper:foo/bar-baz\', {");\n+          .to.equal(file(\'helper-test/integration.js\'));\n       }));\n   });\n \n@@ -232,17 +233,17 @@ describe(\'Acceptance: ember generate and destroy helper\', function() {\n     return emberNew()\n       .then(() => emberGenerateDestroy(args, _file => {\n         expect(_file(\'tests/integration/helpers/foo/bar-baz-test.js\'))\n-          .to.contain("moduleForComponent(\'foo/bar-baz\', \'helper:foo/bar-baz\', {");\n+          .to.equal(file(\'helper-test/integration.js\'));\n       }));\n   });\n \n-  it(\'in-addon helper-test foo-bar\', function() {\n-    var args = [\'helper-test\', \'foo-bar\'];\n+  it(\'in-addon helper-test foo/bar-baz\', function() {\n+    var args = [\'helper-test\', \'foo/bar-baz\'];\n \n     return emberNew({ target: \'addon\' })\n       .then(() => emberGenerateDestroy(args, _file => {\n-        expect(_file(\'tests/integration/helpers/foo-bar-test.js\'))\n-          .to.contain("moduleForComponent(\'foo-bar\', \'helper:foo-bar\', {");\n+        expect(_file(\'tests/integration/helpers/foo/bar-baz-test.js\'))\n+          .to.equal(file(\'helper-test/integration.js\'));\n       }));\n   });\n \ndiff --git a/node-tests/fixtures/helper-test/integration.js b/node-tests/fixtures/helper-test/integration.js\nnew file mode 100644\nindex 000000000..4e079b814\n--- /dev/null\n+++ b/node-tests/fixtures/helper-test/integration.js\n@@ -0,0 +1,17 @@\n+\n+import { moduleForComponent, test } from \'ember-qunit\';\n+import hbs from \'htmlbars-inline-precompile\';\n+\n+moduleForComponent(\'foo/bar-baz\', \'helper:foo/bar-baz\', {\n+  integration: true\n+});\n+\n+// Replace this with your real tests.\n+test(\'it renders\', function(assert) {\n+  this.set(\'inputValue\', \'1234\');\n+\n+  this.render(hbs`{{foo/bar-baz inputValue}}`);\n+\n+  assert.equal(this.$().text().trim(), \'1234\');\n+});\n+\ndiff --git a/node-tests/helpers/file.js b/node-tests/helpers/file.js\nnew file mode 100644\nindex 000000000..089a8c4a5\n--- /dev/null\n+++ b/node-tests/helpers/file.js\n@@ -0,0 +1,8 @@\n+\'use strict\';\n+\n+const path = require(\'path\');\n+const file = require(\'ember-cli-blueprint-test-helpers/chai\').file;\n+\n+module.exports = function(filePath) {\n+  return file(path.join(__dirname, \'../fixtures\', filePath));\n+};\n', 'commit_subject': 'use a fixture to test `helper-test` blueprint', 'repo_name': 'emberjs/ember.js', 'committer': {'name': 'Kelly Selden', 'email': '2cff962e38ff807cabcb576cda7dd151d5f6dbaf@gmail.com', 'time_sec': '1504305201', 'tz_offset': '-420', 'date': {'seconds': '1504305201'}}, 'commit_tree': 'e3788a3fe6be74ddc05f4070cb90375be81bd52a', 'commit_message': 'use a fixture to test `helper-test` blueprint\n', 'language_name': 'TypeScript', 'license': 'mit', 'hunks': "@@ -0,0 +1,8 @@\n+'use strict';\n+\n+const path = require('path');\n+const file = require('ember-cli-blueprint-test-helpers/chai').file;\n+\n+module.exports = function(filePath) {\n+  return file(path.join(__dirname, '../fixtures', filePath));\n+};\n", 'addition_count': 8, 'deletion_count': 0, 'src_file': '/dev/null', 'tgt_file': 'b/node-tests/helpers/file.js', 'file_extension': '.js', 'before_file': 'ADDFILE', 'message': 'use a fixture to test `helper-test` blueprint\n', 'author_name': 'Kelly Selden', 'lang': 'js'}