Skip to content

Commit

Permalink
have no clue how these tests ever worked, changing them now. Thanks B…
Browse files Browse the repository at this point in the history
…oxLang!
  • Loading branch information
lmajano committed Dec 17, 2024
1 parent fc0497f commit ee26228
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/specs/ioc/InjectorLiveTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ component extends="tests.resources.BaseIntegrationTest" {
feature( "WireBox Child Injectors", function(){
beforeEach( function( currentSpec ){
// Build out the global injector
injector = createMock( "coldbox.system.ioc.Injector" ).init(
variables.injector = createMock( "coldbox.system.ioc.Injector" ).init(
"tests.specs.ioc.config.samples.InjectorCreationTestsBinder"
);

} );

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

story( "I want to retrieve root injectors via DSL", function(){
beforeEach( function( currentSpec ){

var child = new coldbox.system.ioc.Injector(
"coldbox.tests.specs.ioc.config.samples.NoScopeBinder"
).setRoot( getWireBox() );
).setRoot( variables.injector );
injector.registerChildInjector( "myChild", child );
} );
given( "An object with a wirebox:root dsl", function(){
Expand Down

0 comments on commit ee26228

Please sign in to comment.