fixing test warnings, Storage should always return to the correct directory

This commit is contained in:
Graham Knop 2008-02-29 07:00:29 +00:00
parent f1ca6d93f8
commit 8533cf8ae8
3 changed files with 26 additions and 21 deletions

View file

@ -152,11 +152,14 @@ $mech->content_contains( $testContent, "We made it to the snippet through the lo
$response = $mech->res->previous;
ok( $response, 'There were at least two requests' );
is(
$response->headers->header('location'),
$redirectToUrl . ';' . $extraParams,
"We were redirected to the right URL with forwarded query params",
);
TODO: {
local $TODO = 'Add forwarding of query parameters to Redirect asset';
is(
$response->headers->header('location'),
$redirectToUrl . ';' . $extraParams,
"We were redirected to the right URL with forwarded query params",
);
};
#----------------------------------------------------------------------------

View file

@ -21,9 +21,12 @@ use File::Spec;
use Test::More;
use Test::Deep;
use Test::MockObject;
use Cwd;
my $session = WebGUI::Test->session;
my $cwd = Cwd::cwd();
my ($extensionTests, $fileIconTests) = setupDataDrivenTests($session);
my $numTests = 82; # increment this value for each test you create
@ -400,10 +403,7 @@ foreach my $iconTest (@{ $fileIconTests }) {
#
####################################################
TODO: {
local $TODO = 'Write a test to ensure our CWD remains the same after all these calls to storage';
ok(0,'CWD must remain the same after addFileFromFilesystem, tar, untar, etc...');
};
is($cwd, Cwd::cwd(), 'CWD must remain the same after addFileFromFilesystem, tar, untar, etc...');
####################################################
#