aslakhellesoy edited this page May 25, 2011 · 5 revisions

Nothing is stopping you from writing Step Definitions in the Ruby language, even if your application is written in Java, Scala or some other language. This is because it’s really easy to use Java classes and objects from Ruby. This is possible when you run Cucumber with the JRuby interpreter.

An old release of Cucumber project has a little example that demostrates how to test a Java application with Ruby step definitions – running Cucumber on JRuby.

That example doesn’t even use Cuke4Duke, but you could easily use the same approach with Cuke4Duke by simply putting Ruby Step Definitions under features/step_definitions.