[Rt-commit] rt branch, 4.4/test-fail-content-dump, repushed

Shawn Moore shawn at bestpractical.com
Tue Dec 8 13:56:06 EST 2015


The branch 4.4/test-fail-content-dump was deleted and repushed:
       was d39d56baf4e931c43c06f4932fae406bb5c816e5
       now d02893d8ee0b3385623fb4968b6216cc7e0ee5d1

1:  d39d56b ! 1:  d02893d On content_* or text_* fails, dump content in tmp
    @@ -7,6 +7,14 @@
     diff --git a/lib/RT/Test/Web.pm b/lib/RT/Test/Web.pm
     --- a/lib/RT/Test/Web.pm
     +++ b/lib/RT/Test/Web.pm
    +@@
    + use base qw(Test::WWW::Mechanize);
    + use Scalar::Util qw(weaken);
    + use MIME::Base64 qw//;
    ++use Encode 'encode_utf8';
    + 
    + BEGIN { require RT::Test; }
    + require Test::More;
     @@
          return Mojo::DOM->new( $self->content );
      }
    @@ -31,7 +39,7 @@
     +            my $file = $dir . '/' . RT::Test->builder->current_test . '-' . $name;
     +
     +            open my $handle, '>', $file or die $!;
    -+            print $handle $self->content or die $!;
    ++            print $handle encode_utf8($self->content) or die $!;
     +            close $handle or die $!;
     +
     +            Test::More::diag("Dumped failing test page content to $file");



More information about the rt-commit mailing list