PageRenderTime 37ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/wheels/tests/model/_query/distinct.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 12 lines | 9 code | 3 blank | 0 comment | 0 complexity | 709c8383c8cb632f35936228f1c26dea MD5 | raw file
Possible License(s): Apache-2.0, CPL-1.0
  1. <cfcomponent extends="wheelsMapping.Test">
  2. <cffunction name="setup">
  3. <cfset loc.profileModel = model("profile")>
  4. </cffunction>
  5. <cffunction name="test_set_distinct">
  6. <cfset loc.profileModel.distinct()>
  7. <cfset assert('loc.profileModel.toQuery().distinct eq true')>
  8. </cffunction>
  9. </cfcomponent>