Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ====== models/person.js =====
  2. import DS from 'ember-data';
  3.  
  4. export default DS.Model.extend({
  5.  
  6.   some attributes and stuff
  7.  
  8. });
  9.  
  10. ====== models/man.js =====
  11.  
  12. import DS from 'ember-data';
  13. import Person from 'person';
  14.  
  15. export default Person.extend({
  16.  
  17.   some attributes and stuff
  18.  
  19. });
  20.  
  21.  
  22. ====== tests/models/man-test.js =====
  23.  
  24. import {
  25.   moduleForModel,
  26.   test
  27. } from 'ember-qunit';
  28.  
  29. moduleForModel('man', 'Man', {
  30.   // Specify the other units that are required for this test.
  31.   needs: ['model:person']
  32. });
  33.  
  34. test('it exists', function() {
  35.   var model = this.subject();
  36.   // var store = this.store();
  37.   ok(!!model);
  38. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement