Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Clojure

aslakhellesoy edited this page May 25, 2011 · 4 revisions

If you’re writing a Clojure application you can write Step Definitions in Clojure too. Here is an example:

(Given #"^I have entered ([\d.]+) into the calculator$"
  (fn [number]
    (push-number (Float. number))))

Just place your Clojure Step Definitions under features/step_definitions and Cuke4Duke will pick them up automatically. See the Clojure example project for a full example.

See lein-cuke for integration with Leiningen

Clone this wiki locally