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

moduleForModel('employee', {
  // 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);
});

@@ -1,18 +1,78 @@
 import 
-%7B%0A 
+DS from 'ember-data';%0Aimport Ember from 'ember';%0Aimport %7B test,
  moduleF
@@ -82,17 +82,9 @@
 odel
-,%0A  test%0A
+ 
 %7D fr
@@ -102,16 +102,79 @@
 unit';%0A%0A
+//import startApp from '../../helpers/start-app';%0A%0A//var App;%0A%0A
 moduleFo
@@ -256,16 +256,18 @@
 s test.%0A
+  
   needs:
@@ -273,134 +273,950 @@
 : %5B%5D
-%0A%7D);%0A%0Atest('it exists', function(assert) %7B%0A  var model = this.subject();%0A  // var store = this.store();%0A  assert.ok(!!model);%0A%7D);
+//,%0A    //setup: function()%7B%0A    //    App = startApp();%0A    //%7D,%0A    //teardown: function()%7B%0A    //    Ember.run(App, 'destroy');%0A    //%7D%0A%7D);%0A%0Atest('it exists', function(assert) %7B%0A  var model = this.subject();%0A  // var store = this.store();%0A  assert.ok(!!model);%0A%7D);%0A%0Atest('it returns fields', function(assert) %7B%0A  var model = this.subject(%7B firstName: %22Ivanov%22, lastName: %22Ivan%22 %7D);%0A  var store = this.store();%0A  assert.ok(model);%0A  assert.ok(model instanceof DS.Model);%0A  assert.equal(model.get('firstName'), %22Ivanov%22);%0A  assert.equal(model.get('lastName'), %22Ivan%22);%0A  %0A  // set a relationship%0A  Ember.run(function() %7B%0A    model.set('reportsTo', store.createRecord('employee', %7B firstName: %22Sidorov%22, lastName: %22Sidor%22 %7D));%0A  %7D);%0A  %0A  var reportsToEmployee = model.get('reportsTo');%0A  assert.ok(reportsToEmployee);%0A  assert.equal(reportsToEmployee.get('firstName'), %22Sidorov%22);%0A  assert.equal(reportsToEmployee.get('lastName'), %22Sidor%22);%0A%7D);%0A
 %0A

Add simple test on employee relation