adding pg_tap test to check for presence of new postal_code table user/rogan/lp1365073_postal_codes_in_db
authorRogan Hamby <rogan.hamby@gmail.com>
Mon, 25 Apr 2016 19:46:23 +0000 (15:46 -0400)
committerRogan Hamby <rogan.hamby@gmail.com>
Mon, 25 Apr 2016 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Open-ILS/src/sql/Pg/t/lp1365073_postal_codes.pg [new file with mode: 0644]

diff --git a/Open-ILS/src/sql/Pg/t/lp1365073_postal_codes.pg b/Open-ILS/src/sql/Pg/t/lp1365073_postal_codes.pg
new file mode 100644 (file)
index 0000000..e8adf47
--- /dev/null
@@ -0,0 +1,16 @@
+-- Load the TAP functions.
+BEGIN;
+
+-- Plan the tests.
+SELECT plan(1);
+
+-- Run the tests.
+-- make sure at least one column does exist
+SELECT has_table('config', 'postal_codes',
+    'Table "config.postal_codes" should exist');
+
+-- Finish the tests and clean up.
+SELECT * FROM finish();
+ROLLBACK;
+
+