PageRenderTime 22ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): Apache-2.0, CPL-1.0
  1. <cfcomponent extends="wheelsMapping.Test">
  2. <cfinclude template="common.cfm">
  3. <cffunction name="test_isPost_valid">
  4. <cfset request.cgi.request_method = "post">
  5. <cfset assert("loc.controller.isPost() eq true")>
  6. </cffunction>
  7. <cffunction name="test_isPost_invalid">
  8. <cfset request.cgi.request_method = "">
  9. <cfset assert("loc.controller.isPost() eq false")>
  10. </cffunction>
  11. </cfcomponent>