) BeforeEach(func() { // create an account for testing accountIn := &models.Account{} account, err = createServ.Run(dbSession, *accountIn) if err != nil { fmt.Println(err) } // fmt.Println("Account saved", accountIn.Id) }) It("Saved the account", func() { Expect(account.Id).NotTo(BeEmpty()) }) It("Updates the account", func() { account.Name = "No name" _, err := service.Run(dbSession, account) Expect(err).To(BeNil()) }) It("fails if account doesnt have an id", func() { account.Id = "" _, err := service.Run(dbSession, account) Expect(err).NotTo(BeNil()) }) })