2016-06-14 11:11:59 +03:00
|
|
|
/* jshint expr:true */
|
2016-11-14 16:16:51 +03:00
|
|
|
import {expect} from 'chai';
|
|
|
|
import {describeModel, it} from 'ember-mocha';
|
2016-06-14 11:11:59 +03:00
|
|
|
|
|
|
|
describeModel(
|
|
|
|
'role',
|
|
|
|
'Unit:Serializer: role',
|
|
|
|
{
|
|
|
|
// Specify the other units that are required for this test.
|
|
|
|
needs: ['transform:moment-utc']
|
|
|
|
},
|
|
|
|
|
|
|
|
function() {
|
|
|
|
// Replace this with your real tests.
|
|
|
|
it('serializes records', function() {
|
|
|
|
let record = this.subject();
|
|
|
|
|
|
|
|
let serializedRecord = record.serialize();
|
|
|
|
|
2016-11-14 16:16:51 +03:00
|
|
|
expect(serializedRecord).to.be.ok;
|
2016-06-14 11:11:59 +03:00
|
|
|
});
|
|
|
|
}
|
|
|
|
);
|