git.fiddlerwoaroof.com
Browse code

chore: fix branch-resolution tests

Ed L authored on 16/11/2020 08:14:14
Showing 1 changed files
... ...
@@ -7,7 +7,8 @@
7 7
   ())
8 8
 (defclass fake-ref ()
9 9
   ((%repository :initarg :repository :reader repository)
10
-   (%id :initarg :id :reader id)))
10
+   (%id :initarg :id :reader id)
11
+   (%parents :initarg :parents :reader parents :initform ())))
11 12
 
12 13
 (defparameter *expected-branches*
13 14
   '(("master" "ref1")
... ...
@@ -24,13 +25,14 @@
24 25
   (fw.lu:new 'fake-ref repository id))
25 26
 
26 27
 (fiveam:def-suite :fwoar.cl-git.branch-resolution
27
-  :description "testing branch resolution")
28
+  :description "testing branch resolution"
29
+  :in :fwoar.cl-git)
28 30
 (fiveam:in-suite :fwoar.cl-git.branch-resolution)
29 31
 
30 32
 (fiveam:def-test simple ()
31 33
   (5am:is (typep (git:with-repository (:branch-resolution)
32 34
                    (git:repository))
33 35
                  'fake-repository))
34
-  (5am:is (equal (git:with-repository (:branch-resolution)
35
-                   (git:git (branches)))
36
-                 *expected-branches*)))
36
+  (5am:is (equal *expected-branches*
37
+                 (git:with-repository (:branch-resolution)
38
+                   (git:git (branches))))))