features/drb_server_integration.feature in kosmas58-cucumber-0.3.95 vs features/drb_server_integration.feature in kosmas58-cucumber-0.3.96

- old
+ new

@@ -21,25 +21,37 @@ puts "I'm loading the stuff just for this run..." end """ And a file named "features/sample.feature" with: """ + # language: en Feature: Sample Scenario: this is a test Given I am just testing stuff """ + And a file named "features/essai.feature" with: + """ + # language: fr + Fonction: Essai + Scenario: ceci est un test + Soit je teste + """ And a file named "features/step_definitions/all_your_steps_are_belong_to_us.rb" with: """ Given /^I am just testing stuff$/ do # no-op end + + Soit /^je teste$/ do + # no-op + end """ Scenario: Feature Passing with --drb flag Given I am running spork in the background - When I run cucumber features/sample.feature --drb + When I run cucumber features --drb Then it should pass And STDERR should be empty And the output should contain """ 1 step (1 passed) @@ -60,11 +72,11 @@ raise "Oh noes!" end """ And I am running spork in the background - When I run cucumber features/sample.feature --drb + When I run cucumber features --drb Then it should fail And the output should contain """ 1 step (1 failed) """ @@ -80,11 +92,11 @@ Scenario: Feature Run with --drb flag with no DRb server running Cucumber will fall back on running the features locally in this case. Given I am not running a DRb server in the background - When I run cucumber features/sample.feature --drb + When I run cucumber features --drb Then it should pass And STDERR should match """ No DRb server is running. Running features locally: """ @@ -115,6 +127,47 @@ """ And the output should contain """ I'm loading all the heavy stuff... I'm loading the stuff just for this run... + """ + + Scenario: Feature Run with --drb specifying a non-standard port + + Given I am running spork in the background on port 9000 + + When I run cucumber features --drb --port 9000 + Then it should pass + And STDERR should be empty + And the output should contain + """ + 1 step (1 passed) + """ + And the output should contain + """ + I'm loading the stuff just for this run... + """ + And the output should not contain + """ + I'm loading all the heavy stuff... + """ + + Scenario: Feature Run with $CUCUMBER_DRB environment variable + + Given I have environment variable CUCUMBER_DRB set to "9000" + And I am running spork in the background on port 9000 + + When I run cucumber features/ --drb + Then it should pass + And STDERR should be empty + And the output should contain + """ + 1 step (1 passed) + """ + And the output should contain + """ + I'm loading the stuff just for this run... + """ + And the output should not contain + """ + I'm loading all the heavy stuff... """