Class: Spork::Server::Cucumber
- Inherits:
-
Spork::Server
- Object
- Spork::Server
- Spork::Server::Cucumber
- Defined in:
- lib/spork/server/cucumber.rb
Constant Summary collapse
- CUCUMBER_PORT =
8990
- CUCUMBER_HELPER_FILE =
File.join(Dir.pwd, "features/support/env.rb")
Constants inherited from Spork::Server
BOOTSTRAP_FILE, LOAD_PREFERENCE
Class Attribute Summary collapse
-
.step_mother ⇒ Object
REMOVE WHEN SUPPORT FOR PRE-0.4 IS DROPPED.
Class Method Summary collapse
Instance Method Summary collapse
- #run_tests(argv, stderr, stdout) ⇒ Object
-
#step_mother ⇒ Object
REMOVE WHEN SUPPORT FOR PRE-0.4 IS DROPPED.
Methods inherited from Spork::Server
available?, available_servers, bootstrap, bootstrapped?, #helper_file, #listen, load_preference_index, #port, run, #run, #running?, server_name, supported_servers
Methods included from CustomIOStreams
Class Attribute Details
.step_mother ⇒ Object
REMOVE WHEN SUPPORT FOR PRE-0.4 IS DROPPED
15 16 17 |
# File 'lib/spork/server/cucumber.rb', line 15 def step_mother @step_mother end |
Class Method Details
.helper_file ⇒ Object
10 11 12 |
# File 'lib/spork/server/cucumber.rb', line 10 def helper_file CUCUMBER_HELPER_FILE end |
.port ⇒ Object
6 7 8 |
# File 'lib/spork/server/cucumber.rb', line 6 def port CUCUMBER_PORT end |
Instance Method Details
#run_tests(argv, stderr, stdout) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/spork/server/cucumber.rb', line 23 def run_tests(argv, stderr, stdout) begin require 'cucumber/cli/main' ::Cucumber::Cli::Main.new(argv, stdout, stderr).execute!(::Cucumber::StepMother.new) rescue NoMethodError => pre_cucumber_0_4 # REMOVE WHEN SUPPORT FOR PRE-0.4 IS DROPPED ::Cucumber::Cli::Main.step_mother = step_mother ::Cucumber::Cli::Main.new(argv, stdout, stderr).execute!(step_mother) end end |
#step_mother ⇒ Object
REMOVE WHEN SUPPORT FOR PRE-0.4 IS DROPPED
19 20 21 |
# File 'lib/spork/server/cucumber.rb', line 19 def step_mother self.class.step_mother end |