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.