Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

1.2 final

  • Loading branch information...
commit 48428c3ba407eadac01f4924005725916c8f9a63 1 parent 7b1ceaf
Brian Marick authored
2  HOW-TO-RELEASE
View
@@ -13,9 +13,11 @@ manual.
* Rake upload
* DO NOT CLEAN.
* bin/gather-downloads
+* Update README.md
* Commit
* git tag -a -m "message" v.x.x.x ;; git push --tags
* Push to github
* Update example page, if needed.
* Try out downloads.
+
4 README.md
View
@@ -1,6 +1,6 @@
Available via [clojars](http://clojars.org/search?q=midje)
-Current stable version: [midje "1.1.1"]
-Development version: [midje "1.2-beta1"]
+Current stable version: [midje "1.2.0"]
+Development version: HEAD
About Midje
=======================
BIN  downloads/examples.zip
View
Binary file not shown
2  examples/adder-webapp/project.clj
View
@@ -11,5 +11,5 @@
:dev-dependencies
[[lein-run "1.0.0"]
[lein-midje "[1.0.0,)"]
- [midje "1.2-beta1"]
+ [midje "1.2.0"]
])
2  examples/basic/project.clj
View
@@ -3,6 +3,6 @@
:dependencies [[org.clojure/clojure "[1.2.0,1.2.1]"]
[org.clojure/clojure-contrib "[1.2.0,1.2.1]"]
]
- :dev-dependencies [[midje "1.2-beta1"]
+ :dev-dependencies [[midje "1.2.0"]
[lein-midje "[1.0.0,)"]])
2  examples/basic/run
View
@@ -1,2 +1,2 @@
cd test
-java -cp ../lib/clojure-1.2.1.jar:../lib/clojure-contrib-1.2.0.jar:../lib/dev:../lib/dev/algo.monads-0.1.0.jar:../lib/dev/core-1.3.0-20101126.151146-4.jar:../lib/dev/def-1.3.0-20101219.140057-27.jar:../lib/dev/midje-1.2-beta1.jar:../lib/dev/ordered-0.3.0.jar:../lib/dev/ordered-set-0.2.2.jar:../lib/dev/tools.macro-0.1.0.jar:../lib/dev/unifycle-0.5.0.jar clojure.main -i basic/core_test.clj -e '(ns basic.core-test)(run-tests)'
+java -cp ../lib/clojure-1.2.1.jar:../lib/clojure-contrib-1.2.0.jar:../lib/dev:../lib/dev/algo.monads-0.1.0.jar:../lib/dev/core-1.3.0-20101126.151146-4.jar:../lib/dev/def-1.3.0-20101219.140057-27.jar:../lib/dev/midje-1.2.0.jar:../lib/dev/ordered-0.3.0.jar:../lib/dev/ordered-set-0.2.2.jar:../lib/dev/tools.macro-0.1.0.jar:../lib/dev/unifycle-0.5.0.jar clojure.main -i basic/core_test.clj -e '(ns basic.core-test)(run-tests)'
2  examples/cake-midje/project.clj
View
@@ -2,4 +2,4 @@
:description "TODO: add summary of your project"
:dependencies [[clojure "[1.2.0,1.2.1]"]
[clojure-contrib "1.2.0"]]
- :dev-dependencies [[midje "1.2-beta1"]])
+ :dev-dependencies [[midje "1.2.0"]])
2  examples/compound-checkers/project.clj
View
@@ -3,5 +3,5 @@
:dependencies
[[org.clojure/clojure "[1.2.0,1.2.1]"]
[org.clojure/clojure-contrib "1.2.0"]]
- :dev-dependencies [[midje "1.2-beta1"]
+ :dev-dependencies [[midje "1.2.0"]
[lein-midje "[1.0.0,)"]])
2  examples/leiningen-midje/project.clj
View
@@ -2,5 +2,5 @@
:description "FIXME: write"
:dependencies [[org.clojure/clojure "[1.2.0,1.2.1]"]
[org.clojure/clojure-contrib "1.2.0"]]
- :dev-dependencies [[midje "1.2-beta1"]
+ :dev-dependencies [[midje "1.2.0"]
[lein-midje "[1.0.0,)"]])
2  examples/leiningen-test/project.clj
View
@@ -2,4 +2,4 @@
:description "FIXME: write"
:dependencies [[org.clojure/clojure "[1.2.0,1.2.1]"]
[org.clojure/clojure-contrib "1.2.0"]]
- :dev-dependencies [[midje "1.2-beta1"]])
+ :dev-dependencies [[midje "1.2.0"]])
2  examples/semi-sweet-examples/project.clj
View
@@ -2,4 +2,4 @@
:description "An example of using Midje semi-sweet mocking"
:dependencies [[org.clojure/clojure "[1.2.0,1.2.1]"]
[org.clojure/clojure-contrib "1.2.0"]]
- :dev-dependencies [[midje "1.2-beta1"]])
+ :dev-dependencies [[midje "1.2.0"]])
2  examples/semi-sweet-examples/run
View
@@ -1,2 +1,2 @@
cd test
-java -cp ../lib/clojure-1.2.1.jar:../lib/clojure-contrib-1.2.0.jar:../lib/dev:../lib/dev/algo.monads-0.1.0.jar:../lib/dev/core-1.3.0-20101126.151146-4.jar:../lib/dev/def-1.3.0-20101219.140057-27.jar:../lib/dev/midje-1.2-beta1.jar:../lib/dev/ordered-0.3.0.jar:../lib/dev/ordered-set-0.2.2.jar:../lib/dev/tools.macro-0.1.0.jar:../lib/dev/unifycle-0.5.0.jar clojure.main -i semi_sweet_simple/core_test.clj -e '(ns semi-sweet-simple.core-test)(run-tests)'
+java -cp ../lib/clojure-1.2.1.jar:../lib/clojure-contrib-1.2.0.jar:../lib/dev:../lib/dev/algo.monads-0.1.0.jar:../lib/dev/core-1.3.0-20101126.151146-4.jar:../lib/dev/def-1.3.0-20101219.140057-27.jar:../lib/dev/midje-1.2.0.jar:../lib/dev/ordered-0.3.0.jar:../lib/dev/ordered-set-0.2.2.jar:../lib/dev/tools.macro-0.1.0.jar:../lib/dev/unifycle-0.5.0.jar clojure.main -i semi_sweet_simple/core_test.clj -e '(ns semi-sweet-simple.core-test)(run-tests)'
2  project.clj
View
@@ -1,4 +1,4 @@
-(defproject midje "1.2-beta1"
+(defproject midje "1.2.0"
:description "A TDD library for Clojure, with an emphasis on mocks"
:dependencies [[org.clojure/clojure "[1.2.0,1.2.1]"]
[org.clojure/clojure-contrib "1.2.0"]
14 test/behaviors/t_canary.clj
View
@@ -69,3 +69,17 @@
7 )
+(defn another-fn [arg]
+ (println (str "another-fn being called with " arg))
+ "blah")
+
+(def fn-map
+ {:foo #'another-fn})
+
+(defn some-fn [k arg]
+ ((get fn-map k) arg))
+
+(fact
+ (some-fn :foo 55) => ...something...
+ (provided
+ (another-fn 55) => ...something...))
Please sign in to comment.
Something went wrong with that request. Please try again.