diff --git a/lib/aruba/rspec.rb b/lib/aruba/rspec.rb index 9f430d805..d89ac0704 100644 --- a/lib/aruba/rspec.rb +++ b/lib/aruba/rspec.rb @@ -13,7 +13,8 @@ setup_aruba # Modify PATH to include project/bin - prepend_environment_variable 'PATH', aruba.config.command_search_paths.join(':') + ':' + prepend_environment_variable 'PATH', + aruba.config.command_search_paths.join(File::PATH_SEPARATOR) + File::PATH_SEPARATOR # Use configured home directory as HOME set_environment_variable 'HOME', aruba.config.home_directory diff --git a/spec/aruba/rspec_spec.rb b/spec/aruba/rspec_spec.rb index e48e9394c..b36c3845b 100644 --- a/spec/aruba/rspec_spec.rb +++ b/spec/aruba/rspec_spec.rb @@ -19,7 +19,7 @@ end it 'includes configured command search paths in PATH' do - expect(ENV['PATH']).to include aruba.config.command_search_paths.join(':') + expect(ENV['PATH']).to include aruba.config.command_search_paths.join(File::PATH_SEPARATOR) end end end