in reply to Reload a Catalyst application during testing
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 ); } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Reload a Catalyst application during testing
by Anonymous Monk on May 15, 2019 at 12:58 UTC |
In Section
Seekers of Perl Wisdom