Skip to content
Browse files

Allow to pass arguments to cucumber method

Yet another change which should be done in zeus gem to avoid monkey patching in zeus-parallel_tests ;)
  • Loading branch information...
1 parent a8f0ef0 commit 896b705956fab25f873b285110166b440c6fd131 @sevos sevos committed Apr 2, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 rubygem/lib/zeus/rails.rb
View
4 rubygem/lib/zeus/rails.rb
@@ -197,8 +197,8 @@ def cucumber_environment
@cucumber_runtime = Cucumber::Runtime.new
end
- def cucumber
- cucumber_main = Cucumber::Cli::Main.new(ARGV.dup)
+ def cucumber(argv=ARGV)
+ cucumber_main = Cucumber::Cli::Main.new(argv.dup)
had_failures = cucumber_main.execute!(@cucumber_runtime)
exit_code = had_failures ? 1 : 0
exit exit_code

0 comments on commit 896b705

Please sign in to comment.
Something went wrong with that request. Please try again.