             [example.a.four :as four]))
 
 (defn foo []
-  (example.a.four/foo))")
+  (example.a.four/foo))
+
+(def delayed-four
+  (do
+    (require 'example.a.four)
+    (resolve 'example.a.four/foo)))")
 
 (def ex-1
   "(ns example.one

       "file with a reference to ns in body should refer with a symbol")
      (t/is (every? #(.contains (slurp %) "example.b.four")
                    [file-one file-two new-file-four])
            "affected files should refer to new ns"))))

  (let [temp-file (File/createTempFile dir-name nil)]
    (.delete temp-file)
    (.mkdirs temp-file)
    temp-file))

(defn- create-source-file! [^File file ^String content]
  (.delete file)
  (.mkdirs (.getParentFile file))
  (.createNewFile file)
  (spit file content)
  file)

