Permalink
Browse files

Add person model

  • Loading branch information...
corrspt committed Nov 19, 2016
1 parent 2c2a54c commit b558090bcd4548888362bc597b4ad88ac4d46099
Showing with 23 additions and 0 deletions.
  1. +11 −0 app/models/person.js
  2. +12 −0 tests/unit/models/person-test.js
View
@@ -0,0 +1,11 @@
import DS from 'ember-data';
const {
Model,
attr
} = DS;
export default Model.extend({
name: attr('string'),
age: attr('number'),
});
@@ -0,0 +1,12 @@
import { moduleForModel, test } from 'ember-qunit';
moduleForModel('person', 'Unit | Model | person', {
// Specify the other units that are required for this test.
needs: []
});
test('it exists', function(assert) {
let model = this.subject();
// let store = this.store();
assert.ok(!!model);
});

0 comments on commit b558090

Please sign in to comment.