 ;; ---------------------------------------------------------------------------
 
 (ert-deftest test-get-package-recipe--return-recipe-if-package-has-one ()
-  (let ((configuration-layer-packages
+  (let ((configuration-layer--packages
          `(,(configuration-layer/make-package '(pkg1 :location (recipe blah)))
            ,(configuration-layer/make-package '(pkg2 :location elpa)))))
     (should (eq 'recipe
                 (car (configuration-layer//get-package-recipe 'pkg1))))))
 
 (ert-deftest test-get-package-recipe--return-nil-if-package-has-no-recipe ()
-  (let ((configuration-layer-packages
+  (let ((configuration-layer--packages
          `(,(configuration-layer/make-package '(pkg1 :location (recipe blah)))
            ,(configuration-layer/make-package '(pkg2 :location elpa)))))
     (should (not (configuration-layer//get-package-recipe 'pkg2)))))

;; ---------------------------------------------------------------------------

(ert-deftest test-package-has-a-recipe-p--true ()
  (let ((configuration-layer-packages
         `(,(configuration-layer/make-package '(pkg1 :location (recipe blah)))
           ,(configuration-layer/make-package '(pkg2 :location elpa)))))
    (should (configuration-layer//package-has-recipe-p 'pkg1))))

(ert-deftest test-package-has-a-recipe-p--false ()
  (let ((configuration-layer-packages
         `(,(configuration-layer/make-package '(pkg1 :location (recipe blah)))
           ,(configuration-layer/make-package '(pkg2 :location elpa)))))
    (should (not (configuration-layer//package-has-recipe-p 'pkg2)))))

         (layers (list layer1))
         (layer1-packages '(pkg1 pkg2 pkg3))
         (mocker-mock-default-record-cls 'mocker-stub-record)
         (configuration-layer--packages
          (list (cfgl-package "pkg3" :name 'pkg3)
                (cfgl-package "pkg2" :name 'pkg2)
                (cfgl-package "pkg1" :name 'pkg1))))
