Skip to content

Commit

Permalink
add a test for SumaryTables()
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Aug 28, 2016
1 parent af067bd commit a87ea77
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ssp/document_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
})
})

0 comments on commit a87ea77

Please sign in to comment.