From a87ea771acd30c7d34b4422df1446a09c5648fb5 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Thu, 28 Jul 2016 12:06:35 -0400 Subject: [PATCH] add a test for SumaryTables() --- ssp/document_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ssp/document_test.go b/ssp/document_test.go index 6e1febb..88c5c4b 100644 --- a/ssp/document_test.go +++ b/ssp/document_test.go @@ -30,4 +30,16 @@ var _ = Describe("SSP", func() { Expect(err).To(HaveOccurred()) }) }) + + Describe("SummaryTables", func() { + It("returns the tables", func() { + doc := loadSSP("FedRAMP_ac-2_v2.1.docx") + defer doc.Close() + + tables, err := doc.SummaryTables() + + Expect(err).NotTo(HaveOccurred()) + Expect(len(tables)).To(Equal(10)) + }) + }) })