Fix #1186 Reorder of admin fields

Fix tests
This commit is contained in:
Nicolas Le Goff
2013-05-30 13:48:24 +02:00
parent 91185e6f3c
commit 4057e98131
2 changed files with 11 additions and 14 deletions

View File

@@ -304,7 +304,7 @@ define([
it("should reorder collection on drop action", function() {
var ui = {item: {index: function() {return 2;}}};
AdminFieldApp.fieldListView.itemViews[0].dropAction({},ui);
assert.equal(AdminFieldApp.fieldListView.collection.last().get('sorter'), 3, 'model is updated');
assert.equal(AdminFieldApp.fieldListView.collection.last().get('sorter'), 2, 'model is updated');
});
});
});