[Rt-commit] rt branch, 4.4/test-fail-content-dump, updated. rt-4.4.0rc2-17-g2491542

Shawn Moore shawn at bestpractical.com
Mon Dec 28 12:24:37 EST 2015


The branch, 4.4/test-fail-content-dump has been updated
       via  249154240a48219ed4f727f21c04986b2d35780f (commit)
      from  d02893d8ee0b3385623fb4968b6216cc7e0ee5d1 (commit)

Summary of changes:
 lib/RT/Test/Web.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 249154240a48219ed4f727f21c04986b2d35780f
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Mon Dec 28 17:23:30 2015 +0000

    Avoid query params when generating mech dump's filename

diff --git a/lib/RT/Test/Web.pm b/lib/RT/Test/Web.pm
index 983afe3..be66876 100644
--- a/lib/RT/Test/Web.pm
+++ b/lib/RT/Test/Web.pm
@@ -447,7 +447,7 @@ for my $method_name (qw/
         my $ok = $self->$super_method(@_);
         if (!$ok) {
             my $dir = RT::Test->temp_directory;
-            my ($name) = $self->uri =~ m{/([^/]+)$};
+            my ($name) = $self->uri->path =~ m{/([^/]+)$};
             $name ||= 'index.html';
 
             my $file = $dir . '/' . RT::Test->builder->current_test . '-' . $name;

-----------------------------------------------------------------------


More information about the rt-commit mailing list