We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e381757 commit aaac6a9Copy full SHA for aaac6a9
test/clj/cider/nrepl/middleware/content_type_test.clj
@@ -44,14 +44,15 @@
44
[:body :content-type :content-transfer-encoding :status]))))
45
46
(testing "java.io.File"
47
- (let [f (java.io.File/createTempFile "foo" ".txt")]
+ (let [f (java.io.File/createTempFile "foo" ".txt")
48
+ path (.getCanonicalPath f)]
49
(is (= {:body ""
50
:content-type
51
["message/external-body"
- {:URL (str "file:" f) :access-type "URL"}]
52
+ {:URL (str "file:" path) :access-type "URL"}]
53
:status #{"done"}}
54
(-> {:op "eval"
- :code (str "(java.io.File. " (pr-str (str f)) ")")
55
+ :code (str "(java.io.File. " (pr-str path) ")")
56
:content-type "true"}
57
session/message
58
(select-keys [:body :content-type :content-transfer-encoding :status]))))))
0 commit comments