cucumber/cucumber-jvm — pull request #248 by rplevy-draker (2012-03-08 17:10:11+00:00)
Title: Make Clojure DSL syntax cleaner

As we discussed in https://github.com/cucumber/cucumber-jvm/issues/244#issuecomment-4334239
here are some changes to make it so that it is not necessary to specify a function, just the binding form of the implied function.

I also modified the Clojure tests to demonstrate the new syntax. The tests run successfully.

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running cucumber.runtime.clojure.ClojureSnippetTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec
Running cucumber.runtime.clojure.RunCukesTest

Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.826 sec

Results :

Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar {execution: default-jar}]
[INFO] Preparing source:jar
[WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
[INFO] [enforcer:enforce {execution: enforce-maven}]
[INFO] [source:jar {execution: bind-sources}]
[INFO] cucumber already added, skipping
[INFO] cucumber/runtime already added, skipping
[INFO] cucumber/runtime/clojure already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Mar 08 11:58:04 EST 2012
[INFO] Final Memory: 31M/344M
[INFO] ------------------------------------------------------------------------