Skip to content

Commit

Permalink
Native clojure backend. Closes #138, #265
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Mar 19, 2012
1 parent dcdcef0 commit bfeea61
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## [Git master](https://github.com/cucumber/cucumber-jvm/compare/v1.0.0.RC21...master)

* [Clojure] Native Clojure backend ([#138](https://github.com/cucumber/cucumber-jvm/pull/138) [#265](https://github.com/cucumber/cucumber-jvm/pull/265) Kevin Downey, Nils Wloka)
* [JUnit] Added `format` attribute to `@Cucumber.Options` (Aslak Hellesøy)

## [1.0.0.RC21](https://github.com/cucumber/cucumber-jvm/compare/v1.0.0.RC20...v1.0.0.RC21)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Cukes

Scenario: in the belly (list)
Given I have this many cukes in my belly:
| 13 |
| 13 |
Then there are 13 cukes in my belly

Scenario: unimplemented steps
Expand Down
12 changes: 6 additions & 6 deletions clojure/src/test/resources/cucumber/runtime/clojure/stepdefs.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
(def some-state (atom "'Before' hasn't run."))

(Before
(fn []
(do
(reset! some-state "'Before' has run.")
(println "Executing 'Before'."))))
(fn []
(do
(reset! some-state "'Before' has run.")
(println "Executing 'Before'."))))

(After
(fn []
(println (str "Executing 'After' " @some-state))))
(fn []
(println (str "Executing 'After' " @some-state))))

(Given #"^I have (\d+) cukes in my belly$"
#(eat (Float. %1)))
Expand Down

0 comments on commit bfeea61

Please sign in to comment.