Closed thijsvdanker closed 9 years ago
The command
ember g acceptance-test friends/new
generates the following new-test.js
import Ember from 'ember'; import { module, test } from 'qunit'; import startApp from 'borrowers/tests/helpers/start-app'; var application; module('Acceptance: FriendsNew', { beforeEach: function() { application = startApp(); }, afterEach: function() { Ember.run(application, 'destroy'); } }); test('visiting /friends/new', function(assert) { visit('/friends/new'); andThen(function() { assert.equal(currentURL(), '/friends/new'); }); });
Because of that, the part in the book about rewriting it to ../../helpers/start-app is not necessary.
The command
generates the following new-test.js
Because of that, the part in the book about rewriting it to ../../helpers/start-app is not necessary.