features/support/env.rb in berkshelf-4.0.1 vs features/support/env.rb in berkshelf-4.1.0
- old
+ new
@@ -29,12 +29,12 @@
# Legacy ENV variables until we can move over to all InProcess
ENV['BERKSHELF_PATH'] = berkshelf_path.to_s
ENV['BERKSHELF_CONFIG'] = Berkshelf.config.path.to_s
ENV['BERKSHELF_CHEF_CONFIG'] = chef_config_path.to_s
- Aruba::InProcess.main_class = Berkshelf::Cli::Runner
- Aruba.process = Aruba::InProcess
+ aruba.config.command_launcher = :in_process
+ aruba.config.main_class = Berkshelf::Cli::Runner
@dirs = ["spec/tmp/aruba"] # set aruba's temporary directory
stub_kitchen!
clean_tmp_path
Berkshelf.initialize_filesystem
@@ -54,23 +54,23 @@
]
Berkshelf::RSpec::ChefServer.start(port: CHEF_SERVER_PORT)
Berkshelf::API::RSpec::Server.start(port: BERKS_API_PORT, endpoints: endpoints) unless windows?
- @aruba_io_wait_seconds = Cucumber::JRUBY ? 7 : 5
+ aruba.config.io_wait_timeout = Cucumber::JRUBY ? 7 : 5
@aruba_timeout_seconds = Cucumber::JRUBY ? 35 : 15
end
Before('@spawn') do
- Aruba.process = Aruba::SpawnProcess
+ aruba.config.command_launcher = :spawn
- set_env('BERKSHELF_PATH', berkshelf_path.to_s)
- set_env('BERKSHELF_CONFIG', Berkshelf.config.path.to_s)
- set_env('BERKSHELF_CHEF_CONFIG', chef_config_path.to_s)
+ set_environment_variable('BERKSHELF_PATH', berkshelf_path.to_s)
+ set_environment_variable('BERKSHELF_CONFIG', Berkshelf.config.path.to_s)
+ set_environment_variable('BERKSHELF_CHEF_CONFIG', chef_config_path.to_s)
end
Before('@slow_process') do
- @aruba_io_wait_seconds = Cucumber::JRUBY ? 70 : 30
+ aruba.config.io_wait_timeout = Cucumber::JRUBY ? 70 : 30
@aruba_timeout_seconds = Cucumber::JRUBY ? 140 : 60
end
end
Spork.each_run do