From 4e6dd043f6e558dc1cd6fe4fef619bc005d6ba2d Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 2 Mar 2016 17:07:28 -0500 Subject: [PATCH] LP#1470957: adjust a previous regression test Now that there are normalizers set for pubdate, 008/Date1 = " " is now normalized to "0000". Signed-off-by: Galen Charlton --- .../lp1414112_allow_spaces_as_ff_attr_values.pg | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/sql/Pg/t/regress/lp1414112_allow_spaces_as_ff_attr_values.pg b/Open-ILS/src/sql/Pg/t/regress/lp1414112_allow_spaces_as_ff_attr_values.pg index 62d6dbea6f..0996e579a3 100644 --- a/Open-ILS/src/sql/Pg/t/regress/lp1414112_allow_spaces_as_ff_attr_values.pg +++ b/Open-ILS/src/sql/Pg/t/regress/lp1414112_allow_spaces_as_ff_attr_values.pg @@ -11,7 +11,15 @@ VALUES ( SELECT ok(attrs ? 'audience', 'audience attribute exists') FROM metabib.record_attr WHERE id = CURRVAL('biblio.record_entry_id_seq'); -SELECT ok(NOT attrs ? 'date1' , 'date1 attribute does not exist') -FROM metabib.record_attr WHERE id = CURRVAL('biblio.record_entry_id_seq'); +SELECT is( + ( + SELECT attrs->'date1' + FROM metabib.record_attr + WHERE id = CURRVAL('biblio.record_entry_id_seq') + ), + '0000', + 'as of LP#1470957, date1 = " " normalizes to 0000' +) +; ROLLBACK; -- 2.43.2