@@ -15,7 +15,7 @@ import (
15
15
...
16
16
)
17
17
18
- Describe (" Checking books out of the library" , Label (" library" ), func () {
18
+ var _ = Describe (" Checking books out of the library" , Label (" library" ), func () {
19
19
var library *libraries.Library
20
20
var book *books.Book
21
21
var valjean *users.User
@@ -50,7 +50,7 @@ Describe("Checking books out of the library", Label("library"), func() {
50
50
51
51
It (" tells the user" , func (ctx SpecContext) {
52
52
err := valjean.Checkout (ctx, library, " Les Miserables" )
53
- Expect (error ).To (MatchError (" Les Miserables is currently checked out" ))
53
+ Expect (err ).To (MatchError (" Les Miserables is currently checked out" ))
54
54
}, SpecTimeout (time.Second * 5 ))
55
55
56
56
It (" lets the user place a hold and get notified later" , func (ctx SpecContext) {
@@ -74,7 +74,7 @@ Describe("Checking books out of the library", Label("library"), func() {
74
74
When (" the library does not have the book in question" , func () {
75
75
It (" tells the reader the book is unavailable" , func (ctx SpecContext) {
76
76
err := valjean.Checkout (ctx, library, " Les Miserables" )
77
- Expect (error ).To (MatchError (" Les Miserables is not in the library catalog" ))
77
+ Expect (err ).To (MatchError (" Les Miserables is not in the library catalog" ))
78
78
}, SpecTimeout (time.Second * 5 ))
79
79
})
80
80
})
0 commit comments