Skip to content

Commit

Permalink
Use correct path separator in RSpec setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz authored and xtrasimplicity committed May 14, 2018
1 parent 9f899bf commit 8b441b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/aruba/rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/aruba/rspec_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8b441b9

Please sign in to comment.