PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/wheels/tests/model/miscellaneous/accessors.cfc

http://cfwheels.googlecode.com/
ColdFusion CFScript | 10 lines | 8 code | 2 blank | 0 comment | 0 complexity | a17186ae6157ee434f9ca60c0c1e8eed MD5 | raw file
 1<cfcomponent extends="wheelsMapping.Test">
 2
 3	<cffunction name="test_getdatasource">
 4		<cfset loc.user = model("user").new()>
 5		<cfset loc.e = loc.user.getDataSource()>
 6		<cfset assert('IsStruct(loc.e)')>
 7		<cfset assert('loc.e.datasource eq "wheelstestdb"')>
 8	</cffunction>
 9
10</cfcomponent>