PageRenderTime 485ms CodeModel.GetById 131ms app.highlight 0ms RepoModel.GetById 233ms app.codeStats 0ms

/wheels/tests/model/miscellaneous/tableName.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 13 lines | 10 code | 3 blank | 0 comment | 0 complexity | f1a5afb858ab4040cea4959ff322c530 MD5 | raw file
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cffunction name="test_tablename_and_tablenameprefix">
 4		<cfset loc.user = model("user2")>
 5		<cfset assert('loc.user.tableName() eq "tblusers"')>
 6	</cffunction>
 7
 8	<cffunction name="test_tablename_and_tablenameprefix_in_finders_fixes_issue_667">
 9		<cfset loc.users = model("user2").findAll()>
10		<cfset assert('loc.users.recordcount eq 0')>
11	</cffunction>
12
13</cfcomponent>