From 6fbee7bc3cd1876f70192cbf5a6a6e3190721c30 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 21 Apr 2008 20:16:08 +0000 Subject: [PATCH] refactor out configPath storage duplication --- t/Asset/AssetExportHtml.t | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/t/Asset/AssetExportHtml.t b/t/Asset/AssetExportHtml.t index 938c1d114..ade702964 100644 --- a/t/Asset/AssetExportHtml.t +++ b/t/Asset/AssetExportHtml.t @@ -37,11 +37,11 @@ my $session = WebGUI::Test->session; #---------------------------------------------------------------------------- # Tests -my $configExportPath = $session->config->get('exportPath'); +my $originalExportPath = $session->config->get('exportPath'); my $testRan = 1; -if ($configExportPath) { +if ($originalExportPath) { plan tests => 145; # Increment this number for each test you create } else { @@ -72,7 +72,6 @@ cmp_deeply( # wiping out someone's exportPath setting isn't precisely the paragon of # politeness. Take a backup of the current exportPath before undefining it. -my $originalExportPath = $session->config->get('exportPath'); my $config = $session->config; $config->delete('exportPath');