File tree 4 files changed +31
-2
lines changed
4 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 1
- lib
1
+ Manifest.txt
2
+ lib
3
+ classes
4
+ lein-cuke.jar
5
+ pom.xml
Original file line number Diff line number Diff line change
1
+ Feature : Show cuke in help
2
+ So that I may know how to run cucumber with leiningen
3
+ As a busy Behavior Driven Developer
4
+ I want to see the cuke task in "lein help"
5
+
6
+ Scenario : cuke should be included in help output
7
+ Given I have installed lein-cuke
8
+ When I run "lein help"
9
+ Then I should see "cuke" in the output
10
+
11
+
Original file line number Diff line number Diff line change
1
+ (require 'leiningen.core
2
+ ['clojure.contrib.shell-out :as 'shell])
3
+
4
+ (def help-output (atom " " ))
5
+
6
+ (Given #"^I have installed lein-cuke"
7
+ #())
8
+
9
+ (When #"^I run \" lein help\" "
10
+ #(reset! help-output
11
+ (shell/sh " lein" " help" )))
12
+
13
+ (Then #"^I should see \" cuke\" in the output"
14
+ #(assert (not (= (.indexOf @help-output " cuke" ) -1 ))))
Original file line number Diff line number Diff line change 15
15
" Run cucumber features"
16
16
[project]
17
17
(jruby " lib/gems/bin/cucumber" )
18
- )
18
+ )
You can’t perform that action at this time.
0 commit comments