lundi 16 février 2015

Ember-cli generated test gives error: No model was found for ' user'

I have a test that was auto generated with the Ember cli, however I'm getting an error: http://localhost:7357/assets/test-support.js:3711: No model was found for 'user'.



import {
moduleForModel,
test
} from 'ember-qunit';

moduleForModel('user', {
// Specify the other units that are required for this test.
needs: []
});

test('it exists', function(assert) {
var model = this.subject();
// var store = this.store();
assert.ok(!!model);
});


I have a model class named user in models:



import DS from 'ember-data';

export default DS.Model.extend({
title: DS.attr('string'),
firstName: DS.attr('string'),
surname: DS.attr('string'),
dateOfBirth: DS.attr('string'),
telephoneNumber: DS.attr('string'),
accountType: DS.belongsTo('accountType'),
emailAddress: DS.attr('string')
});


All my paths look correct so not sure how to go about fixing this one.


Aucun commentaire:

Enregistrer un commentaire