PageRenderTime 305ms CodeModel.GetById 144ms app.highlight 1ms RepoModel.GetById 159ms app.codeStats 0ms

/wheels/tests/controller/request/issecure.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 17 lines | 13 code | 4 blank | 0 comment | 0 complexity | 4339e96ad9a19aac87928138077b08cf MD5 | raw file
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cfinclude template="common.cfm">
 4
 5	<cffunction name="test_isSecure_valid">
 6		<cfset request.cgi.server_port_secure = "yes">
 7		<cfset assert("loc.controller.isSecure() eq true")>
 8	</cffunction>
 9	
10	<cffunction name="test_isSecure_invalid">
11		<cfset request.cgi.server_port_secure = "">
12		<cfset assert("loc.controller.isSecure() eq false")>
13		<cfset request.cgi.server_port_secure = "no">
14		<cfset assert("loc.controller.isSecure() eq false")>
15	</cffunction>
16
17</cfcomponent>