From 08b53b3c373187242a44e966415f021457551a94 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 10 Feb 2015 14:01:51 -0500 Subject: [PATCH] Bug 13019 [QA Followup] - Fix stale unit test --- t/Borrower.t | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/t/Borrower.t b/t/Borrower.t index 3ce7f06..53fea68 100755 --- a/t/Borrower.t +++ b/t/Borrower.t @@ -42,7 +42,7 @@ is( $object2->surname(), 'Test Borrower Surname 2', "Accessor returns correct va my $ret; $ret = $object2->set({ surname => "Test Borrower Surname 3", firstname => "Test Firstname" }); -is( $ret, 1, "Set returns 1 on success" ); +ok( $ret =~ /^Koha::Borrower/, "Set returns object on success" ); is( $object2->surname(), "Test Borrower Surname 3", "Set sets first field correctly" ); is( $object2->firstname(), "Test Firstname", "Set sets second field correctly" ); -- 1.7.2.5