It seems the acceptance-test generator creates slightly different code than you have in the book. No substantial changes, just different variable names and directory structure. This is what I get when I run ember g acceptance-test friends/new:
import Ember from 'ember';
import startApp from '../helpers/start-app';
var application;
module('Acceptance: FriendsNew', {
setup: function() {
application = startApp();
},
teardown: function() {
Ember.run(application, 'destroy');
}
});
test('visiting /friends/new', function() {
visit('/friends/new');
andThen(function() {
equal(currentPath(), 'friends/new');
});
});
This is with:
Ember-cli: : 0.1.9
Ember : 1.8.1
Ember Data : 1.0.0-beta.12
Handlebars : 1.3.0
jQuery : 1.11.2
It seems the acceptance-test generator creates slightly different code than you have in the book. No substantial changes, just different variable names and directory structure. This is what I get when I run
ember g acceptance-test friends/new
:This is with: