Skip to content

Commit

Permalink
Merge pull request #4317 from pangratz/cleanup-old-flag
Browse files Browse the repository at this point in the history
[CLEANUP] remove reference to no more used isNewSerializerAPI flag
  • Loading branch information
bmac committed Apr 9, 2016
2 parents 1e818dc + f78db62 commit 4735b86
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions tests/integration/serializers/rest-serializer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,7 @@ test('normalizeResponse with async polymorphic belongsTo, using <relationshipNam
});

test('normalizeResponse with async polymorphic belongsTo', function(assert) {
env.registry.register('serializer:application', DS.RESTSerializer.extend({
isNewSerializerAPI: true
}));
env.registry.register('serializer:application', DS.RESTSerializer.extend());
var store = env.store;
env.adapter.findRecord = () => {
return {
Expand Down Expand Up @@ -717,9 +715,7 @@ test('normalizeResponse with async polymorphic belongsTo', function(assert) {

test('normalizeResponse with async polymorphic hasMany', function(assert) {
SuperVillain.reopen({ evilMinions: DS.hasMany('evil-minion', { async: true, polymorphic: true }) });
env.registry.register('serializer:application', DS.RESTSerializer.extend({
isNewSerializerAPI: true
}));
env.registry.register('serializer:application', DS.RESTSerializer.extend());
var store = env.store;
env.adapter.findRecord = () => {
return {
Expand Down Expand Up @@ -806,9 +802,7 @@ test("normalizeResponse can load secondary records of the same type without affe
});

test("don't polymorphically deserialize base on the type key in payload when a type attribute exist", function(assert) {
env.registry.register('serializer:application', DS.RESTSerializer.extend({
isNewSerializerAPI: true
}));
env.registry.register('serializer:application', DS.RESTSerializer.extend());

run(function() {
env.store.push(env.restSerializer.normalizeArrayResponse(env.store, Basket, {
Expand All @@ -831,9 +825,7 @@ test("don't polymorphically deserialize base on the type key in payload when a t
});

test("don't polymorphically deserialize base on the type key in payload when a type attribute exist on a singular response", function(assert) {
env.registry.register('serializer:application', DS.RESTSerializer.extend({
isNewSerializerAPI: true
}));
env.registry.register('serializer:application', DS.RESTSerializer.extend());

run(function() {
env.store.push(env.restSerializer.normalizeSingleResponse(env.store, Basket, {
Expand All @@ -849,9 +841,7 @@ test("don't polymorphically deserialize base on the type key in payload when a t


test("don't polymorphically deserialize based on the type key in payload when a relationship exists named type", function(assert) {
env.registry.register('serializer:application', DS.RESTSerializer.extend({
isNewSerializerAPI: true
}));
env.registry.register('serializer:application', DS.RESTSerializer.extend());

env.adapter.findRecord = () => {
return {
Expand Down

0 comments on commit 4735b86

Please sign in to comment.