Skip to content

Commit

Permalink
set the Cucumber step_mother
Browse files Browse the repository at this point in the history
  • Loading branch information
timcharper committed May 29, 2009
1 parent ada3eb8 commit 1e5630b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/spork/server/cucumber.rb
Expand Up @@ -10,8 +10,15 @@ def self.helper_file
CUCUMBER_HELPER_FILE
end

def self.step_mother=(value)
@step_mother = value
end

def run_tests(argv, stderr, stdout)
require 'cucumber/cli/main'
::Cucumber::Cli::Main.new(argv, stderr, stdout).execute!(self)
::Cucumber::Cli::Main.step_mother = @step_mother
::Cucumber::Cli::Main.new(argv, stderr, stdout).execute!(@step_mother)
end
end

Spork::Server::Cucumber.step_mother = self

0 comments on commit 1e5630b

Please sign in to comment.