PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/wheels/tests/controller/request/isget.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 15 lines | 11 code | 4 blank | 0 comment | 0 complexity | 5ac0e976cbba8b70c02739cd978098ed MD5 | raw file
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cfinclude template="common.cfm">
 4
 5	<cffunction name="test_isGet_valid">
 6		<cfset request.cgi.request_method = "get">
 7		<cfset assert("loc.controller.isGet() eq true")>
 8	</cffunction>
 9	
10	<cffunction name="test_isGet_invalid">
11		<cfset request.cgi.request_method = "">
12		<cfset assert("loc.controller.isGet() eq false")>
13	</cffunction>
14
15</cfcomponent>