From 6aeafca2e1d07d751be78c3a9c79b5ce55551516 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 16 Oct 2018 12:48:44 -0300 Subject: [PATCH] Bug 21567: Use like instead of ok in RecordedBooks.t --- t/Koha_ExternalContent_RecordedBooks.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/Koha_ExternalContent_RecordedBooks.t b/t/Koha_ExternalContent_RecordedBooks.t index 7fdbfaa032..6f6c1c0d3e 100755 --- a/t/Koha_ExternalContent_RecordedBooks.t +++ b/t/Koha_ExternalContent_RecordedBooks.t @@ -26,7 +26,7 @@ SKIP: { local $@; eval { $client->search({query => "art"}) }; - ok($@ =~ /This endpoint can be called by authorized trusted app or trusted partner only/, "Invalid RecordedBooks partner credentials"); + like($@, qr/This endpoint can be called by authorized trusted app or trusted partner only/, "Invalid RecordedBooks partner credentials"); SKIP: { skip "no RecordedBooks partner credentials", 1 unless $ENV{RECORDEDBOOKS_TEST_LIBRARY_ID}; -- 2.11.0