Add test for updating existing checked header row

This commit is contained in:
Rob Mulholand
2018-10-26 10:45:49 -05:00
parent e37447ae9a
commit 745b3a460e
13 changed files with 95 additions and 33 deletions
@@ -115,7 +115,7 @@ var _ = Describe("Pit file debt ceiling repository", func() {
Expect(err).To(MatchError(sql.ErrNoRows))
})
It("Returns an error if model is of wrong type", func() {
It("returns an error if model is of wrong type", func() {
err = pitFileDebtCeilingRepository.Create(headerID, []interface{}{test_data.WrongModel{}})
Expect(err).To(HaveOccurred())
@@ -116,7 +116,7 @@ var _ = Describe("Pit file ilk repository", func() {
Expect(err).To(MatchError(sql.ErrNoRows))
})
It("Returns an error if model is of wrong type", func() {
It("returns an error if model is of wrong type", func() {
err = pitFileRepository.Create(headerID, []interface{}{test_data.WrongModel{}})
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(ContainSubstring("model of type"))
@@ -115,7 +115,7 @@ var _ = Describe("Pit file stability fee repository", func() {
Expect(err).To(MatchError(sql.ErrNoRows))
})
It("Returns an error if model is of wrong type", func() {
It("returns an error if model is of wrong type", func() {
err = pitFileStabilityFeeRepository.Create(headerID, []interface{}{test_data.WrongModel{}})
Expect(err).To(HaveOccurred())
Expect(err.Error()).To(ContainSubstring("model of type"))