text: (function () {
  "use strict";
  
  	var of = require('../builder/object_factory');
  
  	exports['oPattern initialization'] = {
  		'test oPattern initializes correctly' : function(test){
  			var p = new of.oPattern('source/_patterns/00-atoms/00-global/00-colors.mustache', '00-atoms/00-global', '00-colors.mustache', { d: 123});
  			test.equals(p.name, '00-atoms-00-global-00-colors');
  			test.equals(p.abspath, 'source/_patterns/00-atoms/00-global/00-colors.mustache');
  			test.equals(p.subdir, '00-atoms/00-global');
  			test.equals(p.fileName, '00-colors');
  			test.equals(p.jsonFileData.d, 123);
  			test.equals(p.patternName, 'colors');
  			test.equals(p.patternDisplayName, 'Colors');
  			test.equals(p.patternLink, '00-atoms-00-global-00-colors/00-atoms-00-global-00-colors.html');
  			test.equals(p.patternGroup, 'atoms');
  			test.equals(p.patternSubGroup, 'global');
  			test.equals(p.flatPatternPath, '00-atoms-00-global');
  			test.equals(p.key, 'atoms-colors');
  			test.equals(p.template, '');
  			test.equals(p.patternPartial, '');
  			test.equals(p.lineage.length, 0);
  			test.equals(p.lineageIndex.length, 0);
  			test.equals(p.lineageR.length, 0);
  			test.equals(p.lineageRIndex.length, 0);
  			test.done();
  		},
  		'test oPattern capitalizes patternDisplayName correctly' : function(test){
  			var p = new of.oPattern('source/_patterns/00-atoms/00-global/00-colors-alt.mustache', '00-atoms/00-global', '00-colors-alt.mustache', { d: 123});
  			test.equals(p.patternName, 'colors-alt');
  			test.equals(p.patternDisplayName, 'Colors Alt');
  			test.done();
  		}
  	};
  
  	exports['oBucket initialization'] = {
  		'test oBucket initializes correctly' : function(test){
  			var b = new of.oBucket('test');
  			test.equals(b.bucketNameLC, 'test');
  			test.equals(b.bucketNameUC, 'Test');
  			test.equals(b.navItems.length, 0);
  			test.equals(b.navItemsIndex.length, 0);
  			test.equals(b.patternItems.length, 0);
  			test.equals(b.patternItemsIndex.length, 0);
  			test.done();
  		},
  		'test oBucket capitalizes bucketNameUC' : function(test){
  			var b = new of.oBucket('page-templates');
  			test.equals(b.bucketNameLC, 'page-templates');
  			test.equals(b.bucketNameUC, 'Page Templates');
  			test.done();
  		}
  	};
  
  	exports['oNavItem initialization'] = {
  		'test oNavItem initializes correctly' : function(test){
  			var ni = new of.oNavItem('test');
  			test.equals(ni.sectionNameLC, 'test');
  			test.equals(ni.sectionNameUC, 'Test');
  			test.equals(ni.navSubItems.length, 0);
  			test.equals(ni.navSubItemsIndex.length, 0);
  			test.done();
  		},
  		'test oNavItem correctly capitalizes sectionNameUC' : function(test){
  			var ni = new of.oNavItem('global-concepts');
  			test.equals(ni.sectionNameLC, 'global-concepts');
  			test.equals(ni.sectionNameUC, 'Global Concepts');
  			test.done();
  		}
  	};
  
  	exports['oSubNavItem initialization'] = {
  		'test oSubNavItem initializes correctly' : function(test){
  			var sni = new of.oNavSubItem('test');
  			test.equals(sni.patternName, 'Test');
  			test.equals(sni.patternPath, '');
  			test.equals(sni.patternPartial, '');
  			test.done();
  		},
  		'test oSubNavItem capitalizes patternName' : function(test){
  			var sni = new of.oNavSubItem('nav button');
  			test.equals(sni.patternName, 'Nav Button');
  			test.done();
  		}
  	};
  
  }());
  