Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.
aslakhellesoy edited this page May 25, 2011 · 3 revisions

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

import cuke4duke.ScalaDsl

class BellyStepDefs extends ScalaDsl {
  Given("""I have (\d+) cucumbers in my belly""") { cukes:Int =>
    // put some cukes in the belly
  }
}

See the Scala example project for a full example.

Clone this wiki locally