PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/wheels/tests/view/text/titleize.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 15 lines | 12 code | 3 blank | 0 comment | 0 complexity | 90f366b1e9ac790700660e480d0bf2c3 MD5 | raw file
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cffunction name="setup">
 4		<cfset loc.controller = controller(name="dummy")>
 5		<cfset loc.args = {}>
 6		<cfset loc.args.word = "this is a test to see if this works or not.">
 7	</cffunction>
 8
 9	<cffunction name="test_sentence_should_titleize">
10		<cfset loc.e = loc.controller.titleize(argumentcollection=loc.args)>
11		<cfset loc.r = "This Is A Test To See If This Works Or Not.">
12		<cfset assert("loc.e eq loc.r")>
13	</cffunction>
14
15</cfcomponent>