I'm trying to get cfSpec running on OpenBD (and Railo) and it relies
on an empty prefix= attribute in <cfimport> to make the specs
readable:
<cfimport taglib="/cfspec" prefix="" />
<describe hint="Edmund's">
<beforeAll>
<cfset edmund = createObject( "component", "edmund.Edmund"
).init() /
>
</beforeAll>
<describe hint="id">
<it should="be a string">
<cfset id = edmund.getId() />
<cfset $(id).shouldBeSimpleValue() />
</it>
</describe>
</describe>
Here's a small test case to show the difference between CF8 and OpenBD
(and Railo):
<!--- test.cfm --->
<cfoutput>test.cfm executed</cfoutput>
<!--- main.cfm --->
<cfimport taglib="." prefix=""/>
<cfimport taglib="." prefix="x"/>
<test>
<x:test>
This *should* output "test.cfm executed" twice - which it does on CF8.
On OpenBD (and Railo), it outputs "<test>" and "test.cfm executed".
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
http://groups.google.com/group/openbd?hl=en
official site @ http://www.openbluedragon.org/
!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---