Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit dcd6e88

Browse files
author
Eric Crosson
committed
Refactoring
1 parent d86f19c commit dcd6e88

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

git_ledger_test.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ import (
1010
"fmt"
1111
"path"
1212
)
13+
14+
var (
15+
r Record
16+
s Record
17+
)
18+
1319
// Move the current git-ledger to a new location so testing can create
1420
// a temporary one
1521
func pushGitLedger() {
@@ -32,11 +38,6 @@ func createDummyLedger() {
3238
s.AddToLedger()
3339
}
3440

35-
var (
36-
r Record
37-
s Record
38-
)
39-
4041
var _ = Describe("GitLedger", func() {
4142

4243
BeforeEach(func() {
@@ -121,7 +122,7 @@ var _ = Describe("GitLedger", func() {
121122
rec, _ = GetByPath("/home")
122123
Expect(rec).To(Equal(s))
123124
_, err := GetByPath("DNE")
124-
Expect(err).ToNot(BeNil())
125+
Ω(err).ShouldNot(BeNil())
125126
})
126127
})
127128

0 commit comments

Comments
 (0)