                     (git-init)
                     (git-commit "initial commit")
                     (git-checkout-b "some-branch")
-                    (start-wait-for-git-step-with-ref (fn [ref] (.endsWith ref "some-branch")))
+                    (start-wait-for-git-step :ref (fn [ref] (.endsWith ref "some-branch")))
                     (git-commit "other commit")
                     (get-step-result))]
       (is (= :success (:status (step-result state))))

(defn- expected-timestamp [state commit-msg]
  (git-utils/commit-timestamp-date (:git @state) (commit-hash-by-msg state commit-msg)))

(deftest wait-for-git-test-clean
  (testing "that it waits for a new commit to happen and that it prints out information on old and new commit"
    (let [state (-> (init-state)
                    (git-init)
                    (git-commit "initial commit")
                    (start-wait-for-git-step-with-ref "refs/heads/master")
                    (wait-for-step-waiting)
                    (git-commit "other commit")
                    (get-step-result))]

                    (git-commit "initial commit")
                    (git-checkout-b "some-branch")

                    (start-wait-for-git-step :ref (fn [ref] true))
                    (git-commit "some commit on master")
                    (wait-for-step-to-complete)

                    (git-checkout "some-branch")
                    (start-wait-for-git-step :ref (fn [ref] true))
                    (git-commit "some commit on branch")

                    (get-step-result))]
