PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/wheels/tests/model/_query/maxrows.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 12 lines | 9 code | 3 blank | 0 comment | 0 complexity | e661083359fcb1a4a20b4b4e845c7cb0 MD5 | raw file
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cffunction name="setup">
 4		<cfset loc.profileModel = model("profile")>
 5	</cffunction>
 6
 7	<cffunction name="test_set_max_rows">
 8		<cfset loc.profileModel.maxRows(10)>
 9		<cfset assert('loc.profileModel.toQuery().maxRows eq 10')>
10	</cffunction>
11
12</cfcomponent>