refactor out configPath storage duplication
This commit is contained in:
parent
b786e4c2ad
commit
6fbee7bc3c
1 changed files with 2 additions and 3 deletions
|
|
@ -37,11 +37,11 @@ my $session = WebGUI::Test->session;
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
# Tests
|
# Tests
|
||||||
|
|
||||||
my $configExportPath = $session->config->get('exportPath');
|
my $originalExportPath = $session->config->get('exportPath');
|
||||||
|
|
||||||
my $testRan = 1;
|
my $testRan = 1;
|
||||||
|
|
||||||
if ($configExportPath) {
|
if ($originalExportPath) {
|
||||||
plan tests => 145; # Increment this number for each test you create
|
plan tests => 145; # Increment this number for each test you create
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
@ -72,7 +72,6 @@ cmp_deeply(
|
||||||
# wiping out someone's exportPath setting isn't precisely the paragon of
|
# wiping out someone's exportPath setting isn't precisely the paragon of
|
||||||
# politeness. Take a backup of the current exportPath before undefining it.
|
# politeness. Take a backup of the current exportPath before undefining it.
|
||||||
|
|
||||||
my $originalExportPath = $session->config->get('exportPath');
|
|
||||||
my $config = $session->config;
|
my $config = $session->config;
|
||||||
$config->delete('exportPath');
|
$config->delete('exportPath');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue