             {:print-specs? false}))))
 
   (testing "messages can be fetched from parent specs"
-    (reset! @#'expound/registry-ref {})
-
-    (s/def :defmsg-test/parent-string string?)
-    (s/def :defmsg-test/parent-foo :defmsg-test/parent-string)
-    (s/def :defmsg-test/parent-bar :defmsg-test/parent-foo)
-
-    (expound/defmsg :defmsg-test/parent-string "should be a string")
+    (s/def :defmsg-test/string string?)
+    (s/def :defmsg-test/identifier :defmsg-test/string)
+    (s/def :defmsg-test/name :defmsg-test/identifier)
+
+    (expound/defmsg :defmsg-test/string "should be a string")
     (is (= "-- Spec failed --------------------
 
   :oak

-------------------------
Detected 1 error\n"
           (expound/expound-str
            :defmsg-test/parent-bar
            :oak
            {:print-specs? false})))


            {:print-specs? false})))

    ;; clean registry from this last spec, or we get failures on other tests
    (expound/undefmsg :defmsg-test/identifier)
    (expound/undefmsg :defmsg-test/name)
    (expound/undefmsg 'clojure.core/string?)))

(deftest printer
  (st/instrument ['expound/printer])
