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 Sep 13, 2010 · 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 [n]
    ; Here you would talk to your Clojure calculator. Updates coming soon!
    (println "Entered: " n)))

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.

Clone this wiki locally