 
     (it "prints help on startup and exits properly"
       (let [fake-out (java.io.ByteArrayOutputStream.)]
-        (.flush System/out)
         (binding [*out* (java.io.PrintWriter. fake-out)]
           (with-redefs [exit/exit #()]
             (main/launch-nrepl {:attach (str *server-port*)


    (it "allows using doc"
      (let [fake-out (java.io.ByteArrayOutputStream.)]
        (.flush System/out)
        (binding [*out* (java.io.PrintWriter. fake-out)]
          (with-redefs [exit/exit #()]
            (main/launch-nrepl {:attach (str *server-port*)

            in (io/input-stream remote-url)]
        (io/copy in out)))))

(describe "nrepl integration" (tags :slow)

  (around [f]
    (ensure-test-jar clojure-151)
