lib/sauce/cucumber.rb in sauce-cucumber-2.1.1 vs lib/sauce/cucumber.rb in sauce-cucumber-2.3.1

- old
+ new

@@ -80,11 +80,11 @@ if using_jenkins? # If we're running under Jenkins, we should dump the # `SauceOnDemandSessionID` into the Console Output for the Sauce OnDemand # Jenkins plugin. - # See: <https://github.com/saucelabs/sauce_ruby/issues/48> + # See: <https://github.com/sauce-labs/sauce_ruby/issues/48> output = [] output << "\nSauceOnDemandSessionID=#{session_id}" # The duplication in the scenario_name comes from the fact that the # JUnit formatter seems to do the same, so in order to get the sauce # OnDemand plugin for Jenkins to co-operate, we need to double it up as @@ -94,11 +94,10 @@ end block.call # Quit the driver to allow for the generation of a new session_id - driver.browser.quit - driver.instance_variable_set(:@browser, nil) + driver.finish! unless job.nil? job.passed = !scenario.failed? job.save end