Skip to content

Instantly share code, notes, and snippets.

@perlDreamer
Created October 8, 2009 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perlDreamer/205293 to your computer and use it in GitHub Desktop.
Save perlDreamer/205293 to your computer and use it in GitHub Desktop.
diff --git a/t/lib/WebGUI/Test.pm b/t/lib/WebGUI/Test.pm
index 04b6eb9..07f96b5 100644
--- a/t/lib/WebGUI/Test.pm
+++ b/t/lib/WebGUI/Test.pm
@@ -74,6 +74,8 @@ our @EXPORT_OK = qw(session config);
my $CLASS = __PACKAGE__;
my @guarded;
+
+our $SESSION;
sub import {
our $CONFIG_FILE = $ENV{ WEBGUI_CONFIG };
@@ -88,7 +90,7 @@ sub import {
unless -r _;
$CONFIG_FILE = File::Spec->abs2rel($CONFIG_FILE, File::Spec->catdir($CLASS->root, 'etc'));
- my $session = our $SESSION = $CLASS->newSession(1);
+ my $session = $SESSION = $CLASS->newSession(1);
my $originalSetting = clone $session->setting->get;
push @guarded, Scope::Guard->new(sub {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment