File tree 1 file changed +8
-17
lines changed
1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change 1
- <!--- --------------------------------------------------------------------
2
- ********************************************************************************
3
- Copyright 2005-2007 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
4
- www.coldbox.org | www.luismajano.com | www.ortussolutions.com
5
- ********************************************************************************
6
- Author : Luis Majano
7
- Date : 9/3/2007
8
- Description :
9
- object pool test
10
- ----------------------------------------------------------------------->
11
- < cfcomponent extends = " coldbox.system.testing.BaseModelTest" >
12
- < cfscript >
1
+ component extends = " coldbox.system.testing.BaseModelTest" {
2
+
13
3
function setup (){
14
4
config = {
15
5
dsn : " coolblog" ,
@@ -97,9 +87,9 @@ object pool test
97
87
assertFalse ( store .clear ( " invalid" ) );
98
88
99
89
store .set ( " test" , now (), 20 );
100
- results = store .clear ( " test" );
101
-
102
- assertTrue ( results );
90
+ store .clear ( " test" );
91
+ var results = store . lookup ( " test " );
92
+ expect ( results ). toBeFalse ( );
103
93
}
104
94
105
95
function testGetSize (){
@@ -108,5 +98,6 @@ object pool test
108
98
store .set ( " test" , now (), 0 );
109
99
assertTrue ( store .getSize () eq 1 );
110
100
}
111
- < / cfscript >
112
- < / cfcomponent >
101
+
102
+
103
+ }
You can’t perform that action at this time.
0 commit comments