http://www.perlmonks.org?node_id=1233561


in reply to Reload a Catalyst application during testing

Can't you just use two separate scopes?

{ { my $mech = Test::WWW::Mechanize::Catalyst->new( catalyst_app => "CoolCatalystApp" ); run_tests( $mech ); } change_config(); { my $mech = Test::WWW::Mechanize::Catalyst->new( catalyst_app => "CoolCatalystApp" ); run_tests( $mech ); } }
Once the app goes out of scope, it doesn't exist any more.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.