From c3e065879056d85f0a769368c82b128a58c148e1 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 26 Jan 2011 13:46:49 -0500 Subject: declarative for aci A couple of the ACI definitions were incorrect, and the end result was that fields were not getting initialized. USing the declarative approach cleaned up the cause. Also fixed a few broken unit tests --- install/ui/test/entity_tests.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'install/ui/test/entity_tests.js') diff --git a/install/ui/test/entity_tests.js b/install/ui/test/entity_tests.js index a5878a6c..1178b99f 100644 --- a/install/ui/test/entity_tests.js +++ b/install/ui/test/entity_tests.js @@ -20,7 +20,8 @@ module('entity',{ setup: function() { - IPA.register_entity(function(){return IPA.entity({name:'user'})}); + IPA.entity_factories.user = function(){ + return IPA.entity({name:'user'})}; IPA.start_entities(); }, teardown: function() { @@ -87,14 +88,6 @@ test('Testing ipa_facet_setup_views().', function() { ); - IPA.register_entity(function(){ - var entity = IPA.entity({ - 'name': 'user' - }); - - return entity; - }); - IPA.start_entities(); var entity = IPA.get_entity('user'); -- cgit