From 03303390031ae88c9df3a0e14d85550884bb1740 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Mon, 23 May 2011 10:39:09 -0400 Subject: create entities on demand. fixed changes from code review Fixed unit tests for entity on demand changes. --- install/ui/test/navigation_tests.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'install/ui/test/navigation_tests.js') diff --git a/install/ui/test/navigation_tests.js b/install/ui/test/navigation_tests.js index 0f8f1be4a..d9bcc8eb6 100644 --- a/install/ui/test/navigation_tests.js +++ b/install/ui/test/navigation_tests.js @@ -20,6 +20,7 @@ module('navigation', { + setup: function() { IPA.ajax_options.async = false; IPA.init( @@ -32,11 +33,14 @@ module('navigation', { } ); } + }); test("Testing IPA.navigation.create().", function() { var entity; + var user_mock_called = false; + var group_mock_called = false; IPA.entity_factories.user = function() { var that = IPA.entity({name: 'user', @@ -59,13 +63,8 @@ test("Testing IPA.navigation.create().", function() { return that; }; - IPA.start_entities(); - - IPA.metadata = {}; var navigation_container = $('