Permalink
Browse files

working feature for command line

and use  for build all
  • Loading branch information...
1 parent 0885fbe commit 7604104caefc3237d49f944651af7fd25bc48462 @larrycai committed Mar 11, 2012
Showing with 11 additions and 3 deletions.
  1. +3 −1 Rakefile
  2. +8 −2 features/mkbok.feature
View
@@ -13,7 +13,9 @@ RDoc::Task.new do |rd|
rd.title = 'mkbok - make book using markdown'
end
-Cucumber::Rake::Task.new(:features) do |t|
+Cucumber::Rake::Task.new(:cucumber) do |t|
t.cucumber_opts = "features --format pretty -x"
t.fork = false
end
+
+task :default => [:cucumber,:package,:gem]
View
@@ -2,6 +2,12 @@ Feature: mkbok
@announce
Scenario: help
When I run `mkbok --help`
- Then the stdout should contain "Usage: mkbok"
-
+ Then the output should contain:
+ """
+ Usage: mkbok
+ """
+ And the output should contain:
+ """
+ -c, --config CONFIG config file
+ """

0 comments on commit 7604104

Please sign in to comment.