From 626b272efc73494c0480cac2fdd1802226ec30ef Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 2 Sep 2016 16:40:29 -0400 Subject: [PATCH] add test of asset.copy_state() Signed-off-by: Galen Charlton --- Open-ILS/src/sql/Pg/live_t/copy_state.pg | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Open-ILS/src/sql/Pg/live_t/copy_state.pg diff --git a/Open-ILS/src/sql/Pg/live_t/copy_state.pg b/Open-ILS/src/sql/Pg/live_t/copy_state.pg new file mode 100644 index 0000000000..e09e62b136 --- /dev/null +++ b/Open-ILS/src/sql/Pg/live_t/copy_state.pg @@ -0,0 +1,11 @@ +BEGIN; + +SELECT plan(1); + +\set copy_id 245 + +UPDATE asset.copy SET status = 4 WHERE id = :copy_id; + +SELECT is(asset.copy_state(:copy_id), 'MISSING', 'asset.copy_state detects missing state'); + +ROLLBACK; -- 2.11.0