[freeside-commits] branch FREESIDE_3_BRANCH updated. ec8ee23d8ac9dfbf1be574e022f11b6b89085037

Mark Wells mark at 420.am
Wed Nov 2 15:36:10 PDT 2016


The branch, FREESIDE_3_BRANCH has been updated
       via  ec8ee23d8ac9dfbf1be574e022f11b6b89085037 (commit)
       via  a482fe6c6e43e20b934d42173078bd5a6438fd1b (commit)
      from  2ad3c23b11ac3977445b39f9019795a137bc9626 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ec8ee23d8ac9dfbf1be574e022f11b6b89085037
Merge: a482fe6 2ad3c23
Author: Mark Wells <mark at freeside.biz>
Date:   Wed Nov 2 15:35:38 2016 -0700

    Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into 3.x


commit a482fe6c6e43e20b934d42173078bd5a6438fd1b
Author: Mark Wells <mark at freeside.biz>
Date:   Wed Nov 2 12:05:14 2016 -0700

    fix detection of a successful test

diff --git a/FS/FS/Test.pm b/FS/FS/Test.pm
index 1f2b44b..1bd6119 100644
--- a/FS/FS/Test.pm
+++ b/FS/FS/Test.pm
@@ -211,7 +211,7 @@ and then pass the form object to L</post> to submit it.
 sub form {
   my $self = shift;
   my $name = shift;
-  my ($form) = grep { $_->attr('name') eq $name } $self->forms;
+  my ($form) = grep { ($_->attr('name') || '') eq $name } $self->forms;
   $form;
 }
 
diff --git a/FS/t/suite/03-realtime_pay.t b/FS/t/suite/03-realtime_pay.t
index 17456bb..fb2aa57 100755
--- a/FS/t/suite/03-realtime_pay.t
+++ b/FS/t/suite/03-realtime_pay.t
@@ -26,7 +26,7 @@ $FS->post($form);
 
 # on success, gives a redirect to the payment receipt
 my $paynum;
-if ($FS->redirect =~ m[^/view/cust_pay.html\?(\d+)]) {
+if ($FS->redirect =~ m[^/view/cust_pay.html\?paynum=(\d+)]) {
   pass('payment processed');
   $paynum = $1;
 } elsif ( $FS->error ) {

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

Summary of changes:
 FS/FS/Test.pm                |    2 +-
 FS/t/suite/03-realtime_pay.t |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list