Can't you just use two separate scopes?
Once the app goes out of scope, it doesn't exist any more.{ { 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 ); } }
In reply to Re: Reload a Catalyst application during testing
by talexb
in thread Reload a Catalyst application during testing
by gwg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |