Skip to content

Commit ee26228

Browse files
committed
have no clue how these tests ever worked, changing them now. Thanks BoxLang!
1 parent fc0497f commit ee26228

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/specs/ioc/InjectorLiveTest.cfc

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ component extends="tests.resources.BaseIntegrationTest" {
3030
feature( "WireBox Child Injectors", function(){
3131
beforeEach( function( currentSpec ){
3232
// Build out the global injector
33-
injector = createMock( "coldbox.system.ioc.Injector" ).init(
33+
variables.injector = createMock( "coldbox.system.ioc.Injector" ).init(
3434
"tests.specs.ioc.config.samples.InjectorCreationTestsBinder"
3535
);
36+
3637
} );
3738

3839
story( "I want to get instances from specific child injectors via getInstance()", function(){
@@ -117,9 +118,10 @@ component extends="tests.resources.BaseIntegrationTest" {
117118

118119
story( "I want to retrieve root injectors via DSL", function(){
119120
beforeEach( function( currentSpec ){
121+
120122
var child = new coldbox.system.ioc.Injector(
121123
"coldbox.tests.specs.ioc.config.samples.NoScopeBinder"
122-
).setRoot( getWireBox() );
124+
).setRoot( variables.injector );
123125
injector.registerChildInjector( "myChild", child );
124126
} );
125127
given( "An object with a wirebox:root dsl", function(){

0 commit comments

Comments
 (0)