abuiles / ember-cli-101-errata

18 stars 4 forks source link

Page 124: Format of generated tests/acceptance/friends/new-test.js #162

Closed IanVS closed 9 years ago

IanVS commented 9 years ago

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
abuiles commented 9 years ago

Thanks! I've fixed this, will be available soon :)