Skip to content

Commit

Permalink
Background prerequisites.
Browse files Browse the repository at this point in the history
  • Loading branch information
marick committed Nov 4, 2010
1 parent d0f52c9 commit 0061a4b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/midje/unprocessed/unprocessed_internals.clj
Expand Up @@ -113,7 +113,7 @@
[expectation]
(not (zero? @(expectation :count-atom))))

(defmethod call-count-incorrect? :default
(defmethod call-count-incorrect? :background
[expectation]
false)

Expand Down
9 changes: 8 additions & 1 deletion test/midje/t_semi_sweet_test.clj
Expand Up @@ -275,4 +275,11 @@

(binding [midje.semi-sweet/*include-midje-checks* false]
(load "semi_sweet_compile_out"))



(unfinished t2)
(defn t1 [] )

(deftest background-fakes-need-not-be-called
(expect (t1) => nil
(fake (t2) => 3 :type :background)))

0 comments on commit 0061a4b

Please sign in to comment.