mam tych modeli w aplikacji ember-cli:"Próba zarejestrować nieznaną przetwórnie" użyte w teście modelu
var PuzzleRound = DS.Model.extend({
year: DS.attr('number')
});
var Puzzle = DS.Model.extend({
puzzleRounds: DS.hasMany('puzzleRound', {async: true})
});
i tu jest moja próba z tests/unit/models/puzzle-test.js
:
import {
moduleForModel,
test
} from 'ember-qunit';
import PuzzleRound from 'weather-roulette/models/puzzle-round';
moduleForModel('puzzle', 'Puzzle', {
// Specify the other units that are required for this test.
needs: ['model:puzzleRound']
});
test('it exists', function() {
var model = this.subject();
// var store = this.store();
ok(!!model);
});
otrzymuję ten błąd gdy uruchomiony ember test
:
Attempting to register an unknown factory: `model:puzzleRound`
używam Ember-cli 0.1.1, ember.js 1.7.0 EMB er Data 1.0.0-beta.11. Czy ktoś ma coś, co mogę spróbować naprawić?