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 0.3.95 AND EARLIER IS DROPPED.
Class Method Summary collapse
Instance Method Summary collapse
- #run_tests(argv, stderr, stdout) ⇒ Object
-
#step_mother ⇒ Object
REMOVE WHEN SUPPORT FOR 0.3.95 AND EARLIER IS DROPPED.
Methods inherited from Spork::Server
available?, available_servers, bootstrap, bootstrapped?, #helper_file, #listen, load_preference_index, #port, port=, run, #run, #running?, server_name, supported_servers
Methods included from CustomIOStreams
Class Attribute Details
.step_mother ⇒ Object
REMOVE WHEN SUPPORT FOR 0.3.95 AND EARLIER IS DROPPED
17 18 19 |
# File 'lib/spork/server/cucumber.rb', line 17 def step_mother @step_mother end |
Class Method Details
.helper_file ⇒ Object
12 13 14 |
# File 'lib/spork/server/cucumber.rb', line 12 def helper_file CUCUMBER_HELPER_FILE end |
.port ⇒ Object
8 9 10 |
# File 'lib/spork/server/cucumber.rb', line 8 def port (ENV['CUCUMBER_DRB'] || CUCUMBER_PORT).to_i end |
Instance Method Details
#run_tests(argv, stderr, stdout) ⇒ Object
25 26 27 |
# File 'lib/spork/server/cucumber.rb', line 25 def run_tests(argv, stderr, stdout) ::Cucumber::Cli::Main.new(argv, stdout, stderr).execute!(step_mother) end |
#step_mother ⇒ Object
REMOVE WHEN SUPPORT FOR 0.3.95 AND EARLIER IS DROPPED
21 22 23 |
# File 'lib/spork/server/cucumber.rb', line 21 def step_mother self.class.step_mother end |