From: Galen Charlton Date: Wed, 2 Mar 2016 22:07:28 +0000 (-0500) Subject: LP#1470957: adjust a previous regression test X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4e6dd043f6e558dc1cd6fe4fef619bc005d6ba2d;p=evergreen%2Fmasslnc.git 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 --- 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;