features-skeleton/support/launch.rb in calabash-cucumber-0.9.121 vs features-skeleton/support/launch.rb in calabash-cucumber-0.9.122

- old
+ new

@@ -41,18 +41,18 @@ ['Library', 'Documents', 'tmp'].each do |dir| FileUtils.rm_rf(File.join(sandbox, dir)) end end -def relaunch +def relaunch(args=nil) if ENV['NO_LAUNCH']!="1" sdk = ENV['SDK_VERSION'] || SimLauncher::SdkDetector.new().latest_sdk_version path = Calabash::Cucumber::SimulatorHelper.app_bundle_or_raise(app_path) if ENV['RESET_BETWEEN_SCENARIOS']=="1" reset_app_jail(sdk, path) end - Calabash::Cucumber::SimulatorHelper.relaunch(path,sdk,ENV['DEVICE'] || 'iphone') + Calabash::Cucumber::SimulatorHelper.relaunch(path,sdk,ENV['DEVICE'] || 'iphone', args) end end def app_path ENV['APP_BUNDLE_PATH'] || (defined?(APP_BUNDLE_PATH) && APP_BUNDLE_PATH)