       (a-build app "someBuild" 3, {:start 70 :end 90 :outcome "fail" :inputs [{:source_id 42 :revision "other_revision"}]})
       (a-build app "someBuild" 4, {:start 100 :end 120 :outcome "pass" :inputs [{:source_id 42 :revision "yet_another_revision"}]})
       (is (= (:body (plain-get-request app "/jobs"))
-             (join ["job,averageRuntime,totalCount,failedCount,flakyCount\n"
+             (str/join ["job,averageRuntime,totalCount,failedCount,flakyCount\n"
                     (format "someBuild,%.8f,4,2,1\n" 0.00000023)]))))
 
     ;; GET should return empty map for json by default

                          "2" {:start 1}}}
               {"aBuild" {"1" "<testsuite name=\"a suite\"><testsuite name=\"nested suite\"><testcase name=\"testcase\" classname=\"class\" time=\"10\"/><testcase name=\"another testcase\" classname=\"class\" time=\"30\"/></testsuite></testsuite>"
                          "2" "<testsuite name=\"a suite\"><testsuite name=\"nested suite\"><testcase name=\"testcase\" classname=\"class\" time=\"60\"/></testsuite></testsuite>"}})]
      (is (= (join ["averageRuntime,job,testsuite,classname\n"
                    (format "%.8f,aBuild,a suite: nested suite,class\n" 0.0005787)])
             (:body (plain-get-request app "/testclasses")))))


                                     "passing" {:outcome "pass" :inputs {:revision 0 :source_id 42}}}}
               {"aBuild" {"failing" "<testsuite name=\"a suite\"><testsuite name=\"nested suite\"><testcase name=\"testcase\" classname=\"class\"><failure/></testcase></testsuite></testsuite>"}
                "anotherBuild" {"failing" "<testsuite name=\"a suite\"><testcase name=\"testcase\" classname=\"class\"><failure/></testcase></testsuite>"}})]
      (is (= (str/join ["latestFailure,flakyCount,job,latestBuildId,testsuite,classname,name\n"
                    "1986-10-14 04:03:27,1,aBuild,failing,a suite: nested suite,class,testcase\n"
                    "1986-10-14 04:03:27,1,anotherBuild,failing,a suite,class,testcase\n"])
             (:body (plain-get-request app "/flakytestcases")))))))
