lib/sauce/cucumber.rb in sauce-cucumber-3.1.1 vs lib/sauce/cucumber.rb in sauce-cucumber-3.2.0
- old
+ new
@@ -1,10 +1,11 @@
require 'capybara'
require 'cucumber'
require 'sauce/job'
require 'sauce/capybara'
require 'sauce/utilities'
+require 'sauce_whisk'
module Sauce
module Capybara
module Cucumber
def use_sauce_driver
@@ -115,11 +116,11 @@
job_name << " (#{browser} #{version} on #{os}" if ENV["TEST_ENV_NUMBER"]
output << job_name
puts output.join(' ')
end
- job = Sauce::Job.new('id' => session_id,
+ job = SauceWhisk::Job.new('id' => session_id,
'name' => job_name,
'custom-data' => custom_data)
job.save unless job.nil?
# This allow us to execute steps (n) times
@@ -155,9 +156,10 @@
Sauce::Capybara::Cucumber.around_hook(scenario, block)
end
at_exit do
Sauce::Utilities::Connect.close
+ Sauce::Utilities.warn_if_suspect_misconfiguration(:cucumber)
end
rescue NoMethodError # This makes me sad
end