         [t1 t2 t3 t4] (:transactions context)
         updated (assoc t3 :transaction-date (t/local-date 2016 3 8))
         update-calls (atom {})]
-    (with-redefs [transactions/update-item-index-and-balance (partial fake-update-item-index-and-balance context update-calls)]
+    (with-redefs [transactions/update-item-index-and-balance (partial fake-update-item-index-and-balance
+                                                                      context
+                                                                      update-calls)]
       (transactions/update storage-spec updated)
       (let [expected #{{:index 2
                        :amount 101M


(use-fixtures :each (partial reset-db storage-spec))

(def create-context
  {:users [(factory :user, {:email "john@doe.com"})]
   :entities [{:name "Personal"}]

  (let [context (serialization/realize storage-spec multi-context)
        [checking-items
         salary-items
         groceries-items] (map #(items-by-account (:id %))
                               (:accounts context))
        expected-checking-items [{:index 2 :amount  100M :balance 1000M}
                                 {:index 1 :amount  100M :balance 1100M}
