File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ component extends="tests.resources.BaseIntegrationTest" {
30
30
feature ( " WireBox Child Injectors" , function (){
31
31
beforeEach ( function ( currentSpec ){
32
32
// Build out the global injector
33
- injector = createMock ( " coldbox.system.ioc.Injector" ).init (
33
+ variables . injector = createMock ( " coldbox.system.ioc.Injector" ).init (
34
34
" tests.specs.ioc.config.samples.InjectorCreationTestsBinder"
35
35
);
36
+
36
37
} );
37
38
38
39
story ( " I want to get instances from specific child injectors via getInstance()" , function (){
@@ -117,9 +118,10 @@ component extends="tests.resources.BaseIntegrationTest" {
117
118
118
119
story ( " I want to retrieve root injectors via DSL" , function (){
119
120
beforeEach ( function ( currentSpec ){
121
+
120
122
var child = new coldbox .system .ioc .Injector (
121
123
" coldbox.tests.specs.ioc.config.samples.NoScopeBinder"
122
- ).setRoot ( getWireBox () );
124
+ ).setRoot ( variables . injector );
123
125
injector .registerChildInjector ( " myChild" , child );
124
126
} );
125
127
given ( " An object with a wirebox:root dsl" , function (){
You can’t perform that action at this time.
0 commit comments