PageRenderTime 303ms CodeModel.GetById 81ms app.highlight 0ms RepoModel.GetById 161ms app.codeStats 60ms

/wheels/tests/controller/request/ispost.cfc

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