From cd3a6cdc37ffb4fbbd101cf6f41c04610027d460 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 1 May 2018 14:29:50 -0400 Subject: [PATCH] LP#1576727: (follow-up) add unit test Signed-off-by: Galen Charlton --- Open-ILS/src/perlmods/live_t/28-marc_cn.t | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Open-ILS/src/perlmods/live_t/28-marc_cn.t diff --git a/Open-ILS/src/perlmods/live_t/28-marc_cn.t b/Open-ILS/src/perlmods/live_t/28-marc_cn.t new file mode 100644 index 0000000000..0142867d77 --- /dev/null +++ b/Open-ILS/src/perlmods/live_t/28-marc_cn.t @@ -0,0 +1,22 @@ +#!perl + +use Test::More tests => 1; + +diag("Test retrieving call numbers from bibliographic records."); + +use strict; use warnings; + +use OpenILS::Utils::TestUtils; +my $script = OpenILS::Utils::TestUtils->new(); +$script->bootstrap; + +our $apputils = "OpenILS::Application::AppUtils"; + +my $resp = $apputils->simplereq( + 'open-ils.cat', + 'open-ils.cat.biblio.record.marc_cn.retrieve', + 46, + 1 +); + +is_deeply($resp, [{ '050' => 'ML60 .C22' }], 'LP#1576727: extracted LC call number includes space'); -- 2.11.0