diff --git a/blueprints/service-test/qunit-rfc-232-files/tests/unit/__path__/__test__.js b/blueprints/service-test/qunit-rfc-232-files/tests/unit/__path__/__test__.js new file mode 100644 index 00000000000..2d78791a100 --- /dev/null +++ b/blueprints/service-test/qunit-rfc-232-files/tests/unit/__path__/__test__.js @@ -0,0 +1,13 @@ +import { module, test } from 'qunit'; +import { setupTest } from 'ember-qunit'; + +module('<%= friendlyTestDescription %>', function(hooks) { + setupTest(hooks); + + // Replace this with your real tests. + test('it exists', function(assert) { + let service = this.owner.lookup('service:<%= dasherizedModuleName %>'); + assert.ok(service); + }); +}); + diff --git a/node-tests/blueprints/service-test-test.js b/node-tests/blueprints/service-test-test.js index 9bfdd696049..d85e77ae92b 100644 --- a/node-tests/blueprints/service-test-test.js +++ b/node-tests/blueprints/service-test-test.js @@ -74,6 +74,19 @@ describe('Blueprint: service-test', function() { }); }); }); + + describe('with ember-cli-qunit@4.1.1', function() { + beforeEach(function() { + generateFakePackageManifest('ember-cli-qunit', '4.1.1'); + }); + + it('service-test foo', function() { + return emberGenerateDestroy(['service-test', 'foo'], _file => { + expect(_file('tests/unit/services/foo-test.js')) + .to.equal(fixture('service-test/rfc232.js')); + }); + }); + }); }); describe('in addon', function() { diff --git a/node-tests/fixtures/service-test/rfc232.js b/node-tests/fixtures/service-test/rfc232.js new file mode 100644 index 00000000000..3658956e84b --- /dev/null +++ b/node-tests/fixtures/service-test/rfc232.js @@ -0,0 +1,13 @@ +import { module, test } from 'qunit'; +import { setupTest } from 'ember-qunit'; + +module('Unit | Service | foo', function(hooks) { + setupTest(hooks); + + // Replace this with your real tests. + test('it exists', function(assert) { + let service = this.owner.lookup('service:foo'); + assert.ok(service); + }); +}); +